Hi,
That is hard to pinpoint and needs a professional to profile your website. You are welcome to hire a developer to do that:
https://toolset.com/contractors/
I can suggest general options that might help:
Optimize Relevanssi Settings
- Limit Indexed Content: Ensure that only necessary post types and custom fields are indexed. Navigate to Settings > Relevanssi > Indexing and select only the relevant post types and fields.
- Disable Custom Excerpts: Generating custom excerpts can slow down searches. In Settings > Relevanssi > Excerpts and Highlights, uncheck the option for creating custom excerpts.
- Rebuild the Index: After adjusting settings, rebuild the index to apply changes. This ensures that only the selected content is indexed, improving search efficiency.
Enhance Overall Performance
- Enable AJAX Pagination: Utilize AJAX for search results to prevent full page reloads, providing a smoother user experience. In the View editor, enable AJAX updates for the search and pagination settings.
- Implement Caching: Toolset Views offer caching options. Enable caching in the View settings to store query results, reducing database load on subsequent searches.
- Limit Results Per Page: Displaying too many results can slow down the page. Set a reasonable limit (e.g., 10-20 items per page) in the View settings to improve load times.
Additional Recommendations
Database Optimization: Regularly optimize your database using plugins like WP-Optimize to clean up overhead and improve performance.
Server Resources: Ensure your hosting environment has sufficient resources (CPU, RAM) to handle search queries efficiently.
Monitor Performance: Use tools like Query Monitor to identify slow queries and optimize them accordingly.
Thanks.