pititis:
Hello,
I'm unable to use simple or advanced_search. I have more than 100K books. It takes forever (and 100% CPU.) Server here is a new Xeon with 8 Gb Ram and SSD disk
Commenting the lines $extra_from and $extra_where in the function insert_book_attributes_into_search_query fix the issue (obviously) returning the search queries in no more than 1.4-1.6 seconds (0.5 when cached)
Sorry I'm not a mysql guy. Any clue please?
Cheers
Not sure if you manage to improve the queries search time, but, in phpmyadmin ( or) you could add some indexes, like:
ALTER TABLE product_bookx_authors
ADD INDEX idx_bxa_author_name (author_name ASC);
This would apply to isbn, publisher name, series_name, etc...
I run into this issue on about 10k books. But I did to separate things, one was add index keys to database, other was to create a new table that I actually needed to quick access.
I think with this extra indexes, is enough.
“Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison