Search has a huge lag

When I click search and try to perform a search, it will take up so much time to load the results, especially on queries with so many results such as “a” or blank searches. Sometimes crash the session even.