For my current app I am using Spring MVC. i have two queries
for paging purpose.
1) count query
2) result query
both are taking 5 sec each . So user should wait upto 12 sec to view the result. I need to run the count query as a sperate thread. How to run the thread from Controller class.
Any suggestions pls