Search page take long time to load

The standard advanced search page of my Omeka S instance takes about 10 seconds to load. I am not talking about the results page (served via Solr, so quick), but just the search form page.

I think long load time is cause by queries needed to populate the “search for class” and maybe “search for itemset” selection lists? I have 1.8M items, so these queries initially take a long time. Due to database caching (I think) a subsequent request for the search form page is loaded in about 0.2s.

Any thoughts on the the cause and a solution to make te page quick (I got a message from a users who thought the page was not working).

What do you have the “Advanced search vocabulary members” setting set to? If it’s something other than “All vocabulary members,” does changing to “All vocabulary members” improve your performance here?

Thanks @jflatnes!

I had the “Advanced search vocabulary members” setting on “Used by resources in this site”. Although I like this option, the “All vocabulary members” makes the advanced search form load fast again on my big Omeka S instance!