By analyzing your query and comments, I understood that “you mad an ajax request with ‘async : false’ and your query target huge number of data which also required performance tuning.” With above situation I suggest you can make ajax request ‘async: true’ and provide proper indexing in your query which will decrease your query response.