New Zenner
- Join Date:
- Mar 2006
- Posts:
- 25
- Plugin Contributions:
- 0
Post #1 by immunecology
I have 10 products with 4 attributes each which I am using for display only.
The main problem is that the MySQL access is slowing the store to a halt.
Indications are that I do not have proper indexing or proper code to do MySQL access that takes advantage of the indexing.
There is a lot of talk about how fast ZenCart can be when well configured and a lot of talk about how slow it can get when not. I need specific answers, not just a suggestion to talk to my hosting service or 'check my indexing'. I've added indexes to tables and played with the cache, but nothing is working.
The site is delivering pages on the order of 7-8 seconds generally, but can go out to 50, 60, 70 seconds on occasion for no apparent reason.
If this is not a bug, I need to know what I have to fix to make the MySQL access reasonable.
Site store root:
http://www.immunecology.com/store/
Typical single product page results:
Parse Time: 16.838 - Number of Queries: 305 - Query Time: 0.233942500412
Parse Time: 15.381 - Number of Queries: 311 - Query Time: 0.750096514328
Parse Time: 16.380 - Number of Queries: 305 - Query Time: 0.240793095871
Occasionally:
Parse Time: 9.559 - Number of Queries: 309 - Query Time: 0.276353042328
Category page:
Parse Time: 12.011 - Number of Queries: 146 - Query Time: 0.256347579498
Simple pages that do not hit the SQL base leap into my browser in 2-3 seconds, depending upon graphics from the same server through the same connection.
Here are the specifics:
Server OS: Darwin 8.8.0
PHP Version: 4.4.2 (Zend: 1.3.0)
Database: MySQL 5.0.24a-standard
Zen Cart 1.3.7
I've already arrested the usual suspects.
Manufactures Sideox off
Category counts are off
Category counts in Admin are off
Images are optimized.
Gzip compression off so page starts to appear during rendering and does not wait
Session Cache is file based.
Cookie Domain True
Force Cookie Use True
Check SSL Session ID True
Check User Agent False
Check IP Address True
Prevent Spider Sessions False
Recreate Session True
IP to Host Conversion Status false
User Tracking Mod
Super Orders Mod
Admin Profiles Mod
Order Info Mod
There are some very interesting Red numbers on the Runtime
Information page for phpMyAdmin, followed by the error message/explaination
27 Slow_queries
27 Innodb_buffer_pool_reads
The number of logical reads that InnoDB could not satisfy from buffer
pool and had to do a single-page read.
791 k Handler_read_rnd
The number of requests to read a row based on a fixed position. This
is high if you are doing a lot of queries that require sorting of the
result. You probably have a lot of queries that require MySQL to scan
whole tables or you have joins that don't use keys properly.
69 M Handler_read_rnd_next <==!!!
The number of requests to read the next row in the data file. This is
high if you are doing a lot of table scans. Generally this suggests
that your tables are not properly indexed or that your queries are
not written to take advantage of the indexes you have.
2,023 Created_tmp_disk_tables
The number of temporary tables on disk created automatically by the
server while executing statements. If Created_tmp_disk_tables is big,
you may want to increase the tmp_table_size value to cause temporary
tables to be memory-based instead of disk-based.
450 Select_full_join
The number of joins that do not use indexes. If this value is not 0,
you should carefully check the indexes of your tables.
1,309 Opened_tables
The number of tables that have been opened. If opened tables is big,
your table cache value is probably too small.
-- Relevant Threads:
http://www.zen-cart.com/forum/showthread.php?t=15869
Linda says:
On my server I have sites with 1000-40,000+ products and 1,000-50,000 attributes with 50-70 attributes per product.
turns down SQL help and blames server configuration. What, specifically, constitutes a 'correct' server configuration? My host is willing to work with me, but his system is blazing fast for other apps.
There are lots of threads that discuss the issue and it seems that using attributes is potentially a factor, but I suspect it is poor table indexing in mods or the same in the ZenCart code itself.
If this is not a bug, then someone please help me resolve this issue.
I'll buy a cup of coffee to the zenner who knows how to make ZenCart run fast--which it apparently can--and can tell me.
Thanks in advance
Larry Lowe
https://www.immunecology.com