In the view, we have one table. We want to know the total results found for that particular search. So we used one more search on button click with the same query to get the count of the results using stats command and displaying it in a label using html javascript. Since 2 queries are running on the same time on click of search button, the performance is worse.
Is there any way to get the count of the results without using any queries?
↧