I am running the 1 website on my server. That website has a search facility.
When I search for a category named "apple" at that time its showing 10 results and I am getting search result page fine and fast. [RECORDS ARE PAGINATED 10 records per page]
Now, When I search for "orange" named category at that time its giving me an internal server 500 error. It's just because it's trying to pull 300000 records from the database. [After 2 mins I am getting this error on page]
So How can I resolve this issue? I have checked queries too and its all fine. I need to record faster with no errors like internal server.
Is there any way to resolve this?
Please help! Thank you....