Originally Posted by
marcopolo
Yes that helped, new results are below...Queries went up slightly but the Parse Time is better. What is that setting do exactly?
It seems strange that query count went up, it should still be lower then in v1.0.
The current version of Zen Cart executes A LOT of queries to get info on the same product, for example:
Code:
select products_type from products where products_id = '79'
select products_price, products_priced_by_attribute from products where products_id = '79'
select products_price, products_model, products_priced_by_attribute from products where products_id = '79'
All queries are simple and get info from the same table on the same product. It would be enough if Zen Cart executed one query that retrieves all columns
Code:
select * from products where products_id = '79'
And this setting does just that. Query Cache searches for this kind of queries and change them to "select *". Instead of executing 3 (or more) queries for each product, Zen Cart executes only one.
Unfortunately it requires some cpu time, and it has to balanced between database time and cpu time. On demo stores and few other stores it works well, but I knew from the beginning that in some cases it may not. So I introduced this switch to turn off such feature.
Originally Posted by
marcopolo
Parse Time: 4.755 - Number of Queries: 724 - Query Time: 3.0285431182251
That is still quite a lot(a lot!), both on web server side and database side.
Originally Posted by
marcopolo
I ended up with he below, you seem to know this stuff very well, does it seem right to you?
It might be fine, but I can't tell without knowing more about Your site(really, these settings can be very good, or very, very bad depending on how many products You have, how much traffic You get, how many times per day You get order etc.).
I can take a look on Your site if You want (I don't need any passwords to db ;) ). Check Your PM.
Bookmarks