I currently have an app that searches through data and returns a max number of results per page to the user. It also returns the total number of results for the query. I also return subcategories from the query where a user can narrow their search.
The problem is, I want to show how many results are for each subcategory as well, but i don't want to have to do a projections.rowCount for each subcategory to get the total number of results for each of them, which to me seems like an expensive task.
Basically i want it similar to how a job site works...first you enter a keyword and location, and you get the results, and then you can click on a number of categories to narrow down your search with hte number of results per category listed.
Any know how sites like that typically do it?
|