When I'm conducting a search, it currently takes between 10.3s (cached) and 18.5s (uncached) to populate the dropdown menu where I can specify which resources I want to search in. The menu lists Open Resources, Collections, Tags, Ratings, and Series, but the code is clearly also reading in every book from my library to make the filtering quicker.
Looking at ProcessMonitor, pretty much all the time is spent querying catalog.db, but:
- It should only take a fraction of a second to run a query on catalog.db
- catalog.db is already cached to display the library. Cannot this cache be consulted?