Please Help what is wrong with the setting

Still too big. And there are still queries with: products counter (17) and tax rate (about 50).

Please run phpmyadmin. At the sql tab put into textarea:
explain select p.products_id, pd.products_name, products_date_available as date_expected from products p, products_description pd where to_days(products_date_available) >= to_days(now()) and p.products_id = pd.products_id and pd.language_id = ‘9’ order by date_expected desc limit 10
and press button “execute”, then copy and paste table with result.

As for table locks and waits:

[B]Quote:[/B]

Lock priorities. By default MySQL treats updates as higher priority operations. You can use SELECT HIGH_PRIORITY or UPDATE LOW_PRIORITY to adjust that or you can simply set low_priority_updates option. Anyway default behavior means any UPDATE statement which is blocked by long running select will also block further selects from this table - they will have to wait until UPDATE is executing which is waiting on SELECT to complete. This is often not accounted for and people think - “OK. I write my script so it does short updates so it will not block anything” - it still may cause total block if there are long selects running.

Edit: You said “10 web sites”. We “fixed” only one of them. Or maybe other 9 web sites are the same osc scripts ?

explain select p.products_id, pd.products_name, products_date_available as date_expected from products p, products_description pd where to_days(products_date_available) >= to_days(now()) and p.products_id = pd.products_id and pd.language_id = ‘9’ order by date_expected desc limit 10

i copied this on the sgl and I said run

the result

SQL query:
EXPLAIN SELECT p.products_id, pd.products_name, products_date_available AS date_expected
FROM products p, products_description pd
WHERE to_days( products_date_available ) >= to_days( now( ) )
AND p.products_id = pd.products_id
AND pd.language_id = ‘9’
ORDER BY date_expected DESC
LIMIT 10
[ Edit ] [ Skip Explain SQL ] [ Create PHP Code ]

id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE p ALL PRIMARY NULL NULL NULL 30924 Using where; Using filesort
1 SIMPLE pd eq_ref PRIMARY PRIMARY 8 bizbulur_mupefun.p.products_id,const 1

So is it mean anything?

Thank you for all the help

Regards

Lucas

The ten web siite using the same sgl database so if i disable the one then diables all ?

and the pictures are not showing on website maybe is a poor performance I dont get it

Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.41 Server at amerikadanalisveris.net Port 80

I got this error all the time on the websites…

Thank you again

I went to admin area and deleted all the tax things
Handler_read_rnd 14 M
Handler_read_rnd_next 2,328.43 M

this are the other numbers.

thank you

regards

Lucas

uery statistics: Since its startup, 417,673,524 queries have been sent to the server.
Total ø per hour ø per minute ø per second
418 M 17.61 M 293.44 k 4.89 k
Query type ø per hour %
admin commands 3,680 155.13 0.00%
alter db 0 0.00 0.00%
alter table 0 0.00 0.00%
analyze 0 0.00 0.00%
backup table 0 0.00 0.00%
begin 3 0.00 k 0.00%
change db 2,282 k 96.19 k 0.55%
change master 0 0.00 0.00%
check 0 0.00 0.00%
checksum 0 0.00 0.00%
commit 3 0.00 k 0.00%
create db 0 0.00 0.00%
create function 0 0.00 0.00%
create index 1,438 60.62 0.00%
create table 971 40.93 0.00%
delete 167 k 7,056.13 0.04%
delete multi 2 0.00 k 0.00%
do 0 0.00 0.00%
drop db 0 0.00 0.00%
drop function 0 0.00 0.00%
drop index 0 0.00 0.00%
drop table 212 8.94 0.00%
drop user 0 0.00 0.00%
flush 5 0.00 k 0.00%
grant 8 0.00 k 0.00%
ha close 0 0.00 0.00%
ha open 0 0.00 0.00%
ha read 0 0.00 0.00%
help 0 0.00 0.00%
insert 186 k 7,823.11 0.04%
insert select 335 14.12 0.00%
kill 0 0.00 0.00%
load 0 0.00 0.00%
load master data 0 0.00 0.00%
load master table 0 0.00 0.00%
lock tables 4,452 187.67 0.00%
optimize 45 1.90 0.00%
preload keys 0 0.00 0.00%
purge 0 0.00 0.00%
purge before date 0 0.00 0.00%
rename table 0 0.00 0.00%
repair 0 0.00 0.00%
replace 30 k 1,272.83 0.01%
replace select 0 0.00 0.00%
reset 0 0.00 0.00%
Query type ø per hour %
restore table 0 0.00 0.00%
revoke 0 0.00 0.00%
revoke all 0 0.00 0.00%
rollback 0 0.00 0.00%
savepoint 0 0.00 0.00%
select 15 M 631.75 k 3.61%
set option 410 k 17.30 k 0.10%
show binlog events 0 0.00 0.00%
show binlogs 21 0.00 k 0.00%
show charsets 99 4.17 0.00%
show collations 99 4.17 0.00%
show column types 0 0.00 0.00%
show create db 652 27.48 0.00%
show create table 19 k 819.84 0.00%
show databases 113 4.76 0.00%
show errors 0 0.00 0.00%
show fields 185 k 7,798.45 0.04%
show grants 30 1.26 0.00%
show innodb status 0 0.00 0.00%
show keys 1,444 60.87 0.00%
show logs 0 0.00 0.00%
show master status 0 0.00 0.00%
show ndb status 0 0.00 0.00%
show new master 0 0.00 0.00%
show open tables 0 0.00 0.00%
show privileges 0 0.00 0.00%
show processlist 322 13.57 0.00%
show slave hosts 0 0.00 0.00%
show slave status 0 0.00 0.00%
show status 603 25.42 0.00%
show storage engines 0 0.00 0.00%
show tables 35 k 1,485.45 0.01%
show variables 1,022 43.08 0.00%
show warnings 0 0.00 0.00%
slave start 0 0.00 0.00%
slave stop 0 0.00 0.00%
stmt close 94 k 3,964.54 0.02%
stmt execute 155 k 6,524.66 0.04%
stmt prepare 99 k 4,182.65 0.02%
stmt reset 0 0.00 0.00%
stmt send long data 0 0.00 0.00%
truncate 858 36.17 0.00%
unlock tables 4,496 189.52 0.00%
update 585 k 24.65 k 0.14%
update multi 3,770 158.92 0.00%
Begin SQL query Variable Value Description
Flush_commands 1 The number of executed FLUSH statements.
Slow_queries 4 The number of queries that have taken more than long_query_time seconds.Documentation
Begin Handler Variable Value Description
Handler_commit 19 The number of internal COMMIT statements.
Handler_delete 72 k The number of times a row was deleted from a table.
Handler_discover 0 The MySQL server can ask the NDB Cluster storage engine if it knows about a table with a given name. This is called discovery. Handler_discover indicates the number of time tables have been discovered.
Handler_read_first 682 k The number of times the first entry was read from an index. If this is high, it suggests that the server is doing a lot of full index scans; for example, SELECT col1 FROM foo, assuming that col1 is indexed.
Handler_read_key 86 M The number of requests to read a row based on a key. If this is high, it is a good indication that your queries and tables are properly indexed.
Handler_read_next 831 M The number of requests to read the next row in key order. This is incremented if you are querying an index column with a range constraint or if you are doing an index scan.
Handler_read_prev 943 k The number of requests to read the previous row in key order. This read method is mainly used to optimize ORDER BY … DESC.
Handler_read_rnd 14 M 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.
Handler_read_rnd_next 2,328.43 M 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.
Handler_rollback 666 The number of internal ROLLBACK statements.
Handler_update 1,779 k The number of requests to update a row in a table.
Handler_write 22 M The number of requests to insert a row in a table.
Begin Query cache Variable Value Description
Flush query cache Documentation
Qcache_free_blocks 57 k The number of free memory blocks in query cache.
Qcache_free_memory 166 M The amount of free memory for query cache.
Qcache_hits 396 M The number of cache hits.
Qcache_inserts 14 M The number of queries added to the cache.
Qcache_lowmem_prunes 34 k The number of queries that have been removed from the cache to free up memory for caching new queries. This information can help you tune the query cache size. The query cache uses a least recently used (LRU) strategy to decide which queries to remove from the cache.
Qcache_not_cached 642 k The number of non-cached queries (not cachable, or not cached due to the query_cache_type setting).
Qcache_queries_in_cache 197 k The number of queries registered in the cache.
Qcache_total_blocks 456 k The total number of blocks in the query cache.
Begin Threads Variable Value Description
Show processes Documentation
Slow_launch_threads 0 The number of threads that have taken more than slow_launch_time seconds to create.
Threads_cached 21 The number of threads in the thread cache. The cache hit rate can be calculated as Threads_created/Connections. If this value is red you should raise your thread_cache_size.
Threads_connected 8 The number of currently open connections.
Threads_created 28 The number of threads created to handle connections. If Threads_created is big, you may want to increase the thread_cache_size value. (Normally this doesn’t give a notable performance improvement if you have a good thread implementation.)
Threads_running 1 The number of threads that are not sleeping.
Threads_cache_hitrate_% 100.00 %
Begin Binary log Variable Value Description
Documentation
Binlog_cache_disk_use 0 The number of transactions that used the temporary binary log cache but that exceeded the value of binlog_cache_size and used a temporary file to store statements from the transaction.
Binlog_cache_use 0 The number of transactions that used the temporary binary log cache.
Begin Temporary data Variable Value Description
Created_tmp_disk_tables 26 k 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.
Created_tmp_files 1,454 How many temporary files mysqld has created.
Created_tmp_tables 103 k The number of in-memory temporary tables created automatically by the server while executing statements.
Begin Delayed inserts Variable Value Description
Delayed_errors 0 The number of rows written with INSERT DELAYED for which some error occurred (probably duplicate key).
Delayed_insert_threads 1 The number of INSERT DELAYED handler threads in use. Every different table on which one uses INSERT DELAYED gets its own thread.
Delayed_writes 4,275 The number of INSERT DELAYED rows written.
Not_flushed_delayed_rows 0 The number of rows waiting to be written in INSERT DELAYED queues.
Begin Key cache Variable Value Description
Documentation
Key_blocks_not_flushed 0 The number of key blocks in the key cache that have changed but haven’t yet been flushed to disk. It used to be known as Not_flushed_key_blocks.
Key_blocks_unused 540 k The number of unused blocks in the key cache. You can use this value to determine how much of the key cache is in use.
Key_blocks_used 23 k The number of used blocks in the key cache. This value is a high-water mark that indicates the maximum number of blocks that have ever been in use at one time.
Key_read_requests 301 M The number of requests to read a key block from the cache.
Key_reads 242 k The number of physical reads of a key block from disk. If Key_reads is big, then your key_buffer_size value is probably too small. The cache miss rate can be calculated as Key_reads/Key_read_requests.
Key_write_requests 737 k The number of requests to write a key block to the cache.
Key_writes 312 k The number of physical writes of a key block to disk.
Key_buffer_fraction_% 12.11 %
Key_write_ratio_% 42.34 %
Key_read_ratio_% 0.08 %
Begin Joins Variable Value Description
Select_full_join 35 k The number of joins that do not use indexes. If this value is not 0, you should carefully check the indexes of your tables.
Select_full_range_join 55 The number of joins that used a range search on a reference table.
Select_range 35 k The number of joins that used ranges on the first table. (It’s normally not critical even if this is big.)
Select_range_check 961 The number of joins without keys that check for key usage after each row. (If this is not 0, you should carefully check the indexes of your tables.)
Select_scan 645 k The number of joins that did a full scan of the first table.
Begin Replication Variable Value Description
Show slave hosts Show slave status Documentation
Rpl_status NULL The status of failsafe replication (not yet implemented).
Slave_open_temp_tables 0 The number of temporary tables currently open by the slave SQL thread.
Slave_retried_transactions 0 Total (since startup) number of times the replication slave SQL thread has retried transactions.
Slave_running OFF This is ON if this server is a slave that is connected to a master.
Begin Sorting Variable Value Description
Sort_merge_passes 725 The number of merge passes the sort algorithm has had to do. If this value is large, you should consider increasing the value of the sort_buffer_size system variable.
Sort_range 26 k The number of sorts that were done with ranges.
Sort_rows 15 M The number of sorted rows.
Sort_scan 134 k The number of sorts that were done by scanning the table.
Begin Tables Variable Value Description
Flush (close) all tables Show open tables
Open_tables 1,024 The number of tables that are open.
Opened_tables 77 k The number of tables that have been opened. If opened tables is big, your table cache value is probably too small.
Table_locks_immediate 29 M The number of times that a table lock was acquired immediately.
Table_locks_waited 9,176 The number of times that a table lock could not be acquired immediately and a wait was needed. If this is high, and you have performance problems, you should first optimize your queries, and then either split your table or tables or use replication.
Begin Variable Value Description
Open_files 1,992 The number of files that are open.
Open_streams 0 The number of streams that are open (used mainly for logging).
Open new phpMyAdmin window

It means that mysql has to read 30924 rows before it’ll send 10 records back.

So, those are 10 web addresses to one single oscommerce ?

Yes one database and the other web page sites access to it.

Good.

Create another debug log and post it.

Copyright © 2009 Garantili Sipariş Alışveriş ve Satış Mağazası
Powered by osCommerce
Current Parse Time: 0.277 s with 136 queries
QUERY DEBUG:

Array
(
[QUERIES] => Array
(
[0] => select value from sessions where sesskey = ‘cba8f27bf720bd5da639b2996d6fb264’ and expiry > ‘1246013242’
[1] => select code, title, symbol_left, symbol_right, decimal_point, thousands_point, decimal_places, value from currencies
[2] => select languages_id, name, code, image, directory from languages order by sort_order
[3] => delete from whos_online where time_last_click < ‘1246012342’
[4] => select count() as count from whos_online where session_id = ‘cba8f27bf720bd5da639b2996d6fb264’
[5] => insert into whos_online (customer_id, full_name, session_id, ip_address, hostname, time_entry, time_last_click, last_page_url, http_referer, user_agent) values (‘0’, ‘Guest’, ‘cba8f27bf720bd5da639b2996d6fb264’, ‘24.253.35.32’, ‘ip24-253-35-32.lv.lv.cox.net’, ‘1246013242’, ‘1246013242’, ‘/’, ‘’, ‘Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)’)
[6] => select banners_id, date_scheduled from banners where date_scheduled != ‘’
[7] => select b.banners_id, b.expires_date, b.expires_impressions, sum(bh.banners_shown) as banners_shown from banners b, banners_history bh where b.status = ‘1’ and b.banners_id = bh.banners_id group by b.banners_id
[8] => select specials_id from specials where status = ‘1’ and now() >= expires_date and expires_date > 0
[9] => select featured_id from featured where status = ‘1’ and now() >= expires_date and expires_date > 0
[10] => select c.categories_id, cd.categories_name, c.parent_id from categories c, categories_description cd where c.parent_id = ‘0’ and c.categories_id = cd.categories_id and cd.language_id=‘9’ order by sort_order, cd.categories_name
[11] => select count(
) as count from categories where parent_id = ‘24’
[12] => select count() as count from categories where parent_id = ‘2’
[13] => select count(
) as count from categories where parent_id = ‘5’
[14] => select count() as count from categories where parent_id = ‘578’
[15] => select count(
) as count from categories where parent_id = ‘27’
[16] => select count() as count from categories where parent_id = ‘635’
[17] => select count(
) as count from categories where parent_id = ‘189’
[18] => select count() as count from categories where parent_id = ‘225’
[19] => select count(
) as count from categories where parent_id = ‘1’
[20] => select count() as count from categories where parent_id = ‘249’
[21] => select count(
) as count from categories where parent_id = ‘191’
[22] => select count() as count from categories where parent_id = ‘25’
[23] => select count(
) as count from categories where parent_id = ‘344’
[24] => select count() as count from categories where parent_id = ‘57’
[25] => select count(
) as count from categories where parent_id = ‘552’
[26] => select count() as count from categories where parent_id = ‘553’
[27] => select count(
) as count from categories where parent_id = ‘686’
[28] => SELECT categories_name FROM categories_description WHERE categories_id = ‘’ limit 1
[29] => SELECT p.products_id, p.products_image, p.products_tax_class_id, IF (s.status, s.specials_new_products_price, NULL) AS specials_new_products_price, p.products_price, pd.products_name FROM products p LEFT JOIN specials s ON p.products_id = s.products_id LEFT JOIN products_description pd ON p.products_id = pd.products_id AND pd.language_id = ‘9’
LEFT JOIN featured f ON p.products_id = f.products_id
WHERE p.products_status = ‘1’ AND f.status = ‘1’ order by rand(1245035068) DESC limit 27
[30] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[31] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[32] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[33] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[34] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[35] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[36] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[37] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[38] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[39] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[40] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[41] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[42] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[43] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[44] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[45] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[46] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[47] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[48] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[49] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[50] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[51] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[52] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[53] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[54] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[55] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[56] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[57] => select p.products_id, p.products_image, p.products_tax_class_id, if(s.status, s.specials_new_products_price, p.products_price) as products_price from products p left join specials s on p.products_id = s.products_id where products_status = ‘1’ order by p.products_date_added desc limit 33
[58] => select products_name from products_description where products_id = ‘191204’ and language_id = ‘9’
[59] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[60] => select products_name from products_description where products_id = ‘191202’ and language_id = ‘9’
[61] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[62] => select products_name from products_description where products_id = ‘191200’ and language_id = ‘9’
[63] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[64] => select products_name from products_description where products_id = ‘191199’ and language_id = ‘9’
[65] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[66] => select products_name from products_description where products_id = ‘191198’ and language_id = ‘9’
[67] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[68] => select products_name from products_description where products_id = ‘191197’ and language_id = ‘9’
[69] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[70] => select products_name from products_description where products_id = ‘191189’ and language_id = ‘9’
[71] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[72] => select products_name from products_description where products_id = ‘191194’ and language_id = ‘9’
[73] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[74] => select products_name from products_description where products_id = ‘191187’ and language_id = ‘9’
[75] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[76] => select products_name from products_description where products_id = ‘191192’ and language_id = ‘9’
[77] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[78] => select products_name from products_description where products_id = ‘191195’ and language_id = ‘9’
[79] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[80] => select products_name from products_description where products_id = ‘191188’ and language_id = ‘9’
[81] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[82] => select products_name from products_description where products_id = ‘191193’ and language_id = ‘9’
[83] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[84] => select products_name from products_description where products_id = ‘191196’ and language_id = ‘9’
[85] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[86] => select products_name from products_description where products_id = ‘191185’ and language_id = ‘9’
[87] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[88] => select products_name from products_description where products_id = ‘191177’ and language_id = ‘9’
[89] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[90] => select products_name from products_description where products_id = ‘191182’ and language_id = ‘9’
[91] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[92] => select products_name from products_description where products_id = ‘191179’ and language_id = ‘9’
[93] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[94] => select products_name from products_description where products_id = ‘191184’ and language_id = ‘9’
[95] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[96] => select products_name from products_description where products_id = ‘191176’ and language_id = ‘9’
[97] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[98] => select products_name from products_description where products_id = ‘191180’ and language_id = ‘9’
[99] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[100] => select products_name from products_description where products_id = ‘191170’ and language_id = ‘9’
[101] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[102] => select products_name from products_description where products_id = ‘191173’ and language_id = ‘9’
[103] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[104] => select products_name from products_description where products_id = ‘191167’ and language_id = ‘9’
[105] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[106] => select products_name from products_description where products_id = ‘191171’ and language_id = ‘9’
[107] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[108] => select products_name from products_description where products_id = ‘191174’ and language_id = ‘9’
[109] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[110] => select products_name from products_description where products_id = ‘191168’ and language_id = ‘9’
[111] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[112] => select products_name from products_description where products_id = ‘191172’ and language_id = ‘9’
[113] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[114] => select products_name from products_description where products_id = ‘191166’ and language_id = ‘9’
[115] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[116] => select products_name from products_description where products_id = ‘191161’ and language_id = ‘9’
[117] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[118] => select products_name from products_description where products_id = ‘191164’ and language_id = ‘9’
[119] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[120] => select products_name from products_description where products_id = ‘191159’ and language_id = ‘9’
[121] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[122] => select products_name from products_description where products_id = ‘191162’ and language_id = ‘9’
[123] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[124] => select p.products_id, pd.products_name, products_date_available as date_expected from products p, products_description pd where to_days(products_date_available) >= to_days(now()) and p.products_id = pd.products_id and pd.language_id = ‘9’ order by date_expected desc limit 10
[125] => select p.products_id, pd.products_name, products_date_available as date_expected from products p, products_description pd where to_days(products_date_available) >= to_days(now()) and p.products_id = pd.products_id and pd.language_id = ‘9’ order by date_expected desc limit 10
[126] => select p.products_id, pd.products_name, p.products_ordered from products p, products_description pd where p.products_status = ‘1’ and p.products_ordered > 0 and p.products_id = pd.products_id and pd.language_id = ‘9’ order by p.products_ordered DESC, pd.products_name limit 100
[127] => select products_id, products_image, products_tax_class_id, products_price from products where products_status = ‘1’ order by products_date_added desc limit 200
[128] => select products_name from products_description where products_id = ‘190948’ and language_id = ‘9’
[129] => select specials_new_products_price from specials where products_id = ‘190948’ and status
[130] => select sum(tax_rate) as tax_rate from tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = ‘0’ or za.zone_country_id = ‘223’) and (za.zone_id is null or za.zone_id = ‘0’ or za.zone_id = ‘4031’) and tr.tax_class_id = ‘0’ group by tr.tax_priority
[131] => select p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image, s.specials_new_products_price from products p, products_description pd, specials s where p.products_status = ‘1’ and p.products_id = s.products_id and pd.products_id = s.products_id and pd.language_id = ‘9’ and s.status = ‘1’ order by s.specials_date_added desc limit 10
[132] => select r.reviews_id, r.reviews_rating, p.products_id, p.products_image, pd.products_name from reviews r, reviews_description rd, products p, products_description pd where p.products_status = ‘1’ and p.products_id = r.products_id and r.reviews_id = rd.reviews_id and rd.languages_id = ‘9’ and p.products_id = pd.products_id and pd.language_id = ‘9’ order by r.reviews_id desc limit 10
[133] => select banners_id, banners_title, banners_image, banners_html_text from banners where status = ‘1’ and banners_group = ‘468x50’
[134] => select count(*) as total from sessions where sesskey = ‘cba8f27bf720bd5da639b2996d6fb264’
[135] => insert into sessions values (‘cba8f27bf720bd5da639b2996d6fb264’, ‘1246014682’, ‘cart|O:12:"shoppingcart":4:{s:8:"contents";a:0:{}s:5:\ "total";i:0;s:6:"weight";i:0;s:12:"content_type";b:0;}language|s:7:\ "english";languages_id|s:1:"9";currency|s:3:"USD";avigation|O:17:\ "navigationhistory":2:{s:4:"path";a:1:{i:0;a:4:{s:4:"page\ ";s:9:"index.php";s:4:"mode";s:6:"NONSSL";s:3:"get\ ";a:0:{}s:4:"post";a:0:{}}}s:8:"snapshot";a:0:{}}’)
)

[TIME] => Array
(
[0] => 0.000147
[1] => 0.000109
[2] => 0.000089
[3] => 0.000360
[4] => 0.000310
[5] => 0.000130
[6] => 0.000119
[7] => 0.000072
[8] => 0.000126
[9] => 0.000192
[10] => 0.000356
[11] => 0.000059
[12] => 0.000059
[13] => 0.000058
[14] => 0.000062
[15] => 0.000057
[16] => 0.000060
[17] => 0.000057
[18] => 0.000058
[19] => 0.000063
[20] => 0.000061
[21] => 0.000059
[22] => 0.000057
[23] => 0.000061
[24] => 0.000057
[25] => 0.000062
[26] => 0.000065
[27] => 0.000061
[28] => 0.000250
[29] => 0.005005
[30] => 0.000076
[31] => 0.000062
[32] => 0.000063
[33] => 0.000064
[34] => 0.000064
[35] => 0.000062
[36] => 0.000060
[37] => 0.000061
[38] => 0.000070
[39] => 0.000061
[40] => 0.000062
[41] => 0.000062
[42] => 0.000063
[43] => 0.000063
[44] => 0.000060
[45] => 0.000061
[46] => 0.000068
[47] => 0.000061
[48] => 0.000065
[49] => 0.000060
[50] => 0.000061
[51] => 0.000062
[52] => 0.000061
[53] => 0.000081
[54] => 0.000064
[55] => 0.000075
[56] => 0.000062
[57] => 0.000159
[58] => 0.000206
[59] => 0.000067
[60] => 0.000111
[61] => 0.000061
[62] => 0.000110
[63] => 0.000061
[64] => 0.002106
[65] => 0.000065
[66] => 0.001373
[67] => 0.000071
[68] => 0.000120
[69] => 0.000062
[70] => 0.000114
[71] => 0.000061
[72] => 0.000112
[73] => 0.000061
[74] => 0.000107
[75] => 0.000062
[76] => 0.000107
[77] => 0.000061
[78] => 0.000308
[79] => 0.001534
[80] => 0.000108
[81] => 0.000062
[82] => 0.000106
[83] => 0.000066
[84] => 0.000104
[85] => 0.000062
[86] => 0.000102
[87] => 0.000063
[88] => 0.000103
[89] => 0.000062
[90] => 0.000103
[91] => 0.000105
[92] => 0.000106
[93] => 0.000062
[94] => 0.000109
[95] => 0.000063
[96] => 0.000364
[97] => 0.000258
[98] => 0.000138
[99] => 0.000063
[100] => 0.000125
[101] => 0.002049
[102] => 0.000247
[103] => 0.000065
[104] => 0.000116
[105] => 0.000066
[106] => 0.000128
[107] => 0.000136
[108] => 0.000115
[109] => 0.000064
[110] => 0.000102
[111] => 0.001818
[112] => 0.000116
[113] => 0.000064
[114] => 0.000106
[115] => 0.000063
[116] => 0.000104
[117] => 0.000064
[118] => 0.000105
[119] => 0.000066
[120] => 0.000121
[121] => 0.001016
[122] => 0.000235
[123] => 0.000063
[124] => 0.044994
[125] => 0.038942
[126] => 0.039220
[127] => 0.000501
[128] => 0.000197
[129] => 0.000062
[130] => 0.000512
[131] => 0.000257
[132] => 0.000201
[133] => 0.000074
[134] => 0.000120
[135] => 0.000252
)

)

SESSION:

Array
(
[cart] => shoppingcart Object
(
[contents] => Array
(
)

[total] => 0
[weight] => 0
[content_type] =>
)

[language] => english
[languages_id] => 9
[currency] => USD
[navigation] => navigationhistory Object
(
[path] => Array
(
[0] => Array
(
[page] => index.php
[mode] => NONSSL
[get] => Array
(
)

[post] => Array
(
)

)

)

[snapshot] => Array
(
)

)

)

COOKIE:

Array
(
[__utmc] => 144052521
[__utma] => 144052521.699856297.1245994299.1245994299.1246005429.2
[__utmz] => 144052521.1245994299.1.1.utmccn=(direct)|utmcsr=(direct)|utm cmd=(none)
)

POST:

Array
(
)

GET:

Array
(
)

i don’t use the tax thing how can i disable that ?

regards

Lucas

Maybe:
Configuration - display tax rate - false

Look at the [TIME] for values bigger than 0.001
There are some queries that take long time, like 124, 125 and 126
I believe those are queries that display featured products or something like that. You “explained” one of the queries, so we know that mysql checks almost all of the products.

You could change shop configuration: less number of the products, I think that 15 will be good.

what is that mean less number of the products 15 ?

Your shop is displaying about 60-70 products on the front page. You could set it to display less products, like 15 in featured and special offers.

okay thann you

See, less products = less queries
The better result could be ~20 queries.

There are still those weak queries that read whole product table.

so what do you want me to do about that :wink:

Well, it is all You could do. Maybe You could find optimizations tips on the osc forums ? Or You could find specialist that will take a look on the scripts and rewrite them.

So are you saying there is still something wrong with the script like writing wrong or i copied from oscommerce.com so what else you think it would be.

Regards

Lucas

Osc is defected by design. See, there are 94 queries on the page. Few goes to the online counter, few for categories menu, one for configuration, one for products, one for featured. That gives about 10 queries. Where are those 84 queries ? They are in tax rate and category counters. Tax rate is constant, so why does osc check it for every product ? You disabled category counter, why does osc still counts how many products are in every category ? Why does osc count products in categories ? It should have a product counter in the menu table.
The worst thing is with featured product (as I remember). Osc is fetching one random row. That random row uses rand(), so it means that mysql is generating random numbers for EVERY row. Then mysql is sorting rows. In the end it fetches one record. It is good solution when You have got 10-20 records. When You have got 30000+ products, then You are in deep trouble.

Edit:
Go to settings and set cache to on/true. It will need valid folder for the cache files, so You’ll have to create one like ‘tmp’ in main folder (Don’t forget to 666 or 777 tmp folder).

With cache You could reduce amount of queries. The “bad” queries will be running only once per hour. Or there is an error in osc and cache won’t help.

o to settings and set cache to on/true. It will need valid folder for the cache files, so You’ll have to create one like ‘tmp’ in main folder (Don’t forget to 666 or 777 tmp folder).

where am i gonna go this ?

thank you

You could create Tmp folder by the ftp client. As for settings: configure - cache:
true
tmp

After You set this reload main page, take a look at few products, then check tmp dir. There should be new files. If yes, then everything is ok.