# Please Help what is wrong with the setting

**URL:** <https://forums.percona.com/t/please-help-what-is-wrong-with-the-setting/1196>\
**Category:** Other MySQL® Questions\
**Created:** [June 24, 2009, 3:21am UTC](https://forums.percona.com/t/please-help-what-is-wrong-with-the-setting/1196 "2009-06-24T03:21:14Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![januzi](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@januzi](https://forums.percona.com/u/januzi)\
**Post date:** [June 25, 2009, 3:39pm UTC](https://forums.percona.com/t/please-help-what-is-wrong-with-the-setting/1196/21 "2009-06-25T15:39:30Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![murtim](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@murtim](https://forums.percona.com/u/murtim)\
**Post date:** [June 26, 2009, 12:00am UTC](https://forums.percona.com/t/please-help-what-is-wrong-with-the-setting/1196/22 "2009-06-26T00:00:10Z")

</div>

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](http://amerikadanalisveris.net) Port 80

I got this error all the time on the websites…

Thank you again

---

<div class="post-metadata">

**Author:** ![murtim](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@murtim](https://forums.percona.com/u/murtim)\
**Post date:** [June 26, 2009, 12:21am UTC](https://forums.percona.com/t/please-help-what-is-wrong-with-the-setting/1196/23 "2009-06-26T00:21:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![januzi](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@januzi](https://forums.percona.com/u/januzi)\
**Post date:** [June 26, 2009, 5:10am UTC](https://forums.percona.com/t/please-help-what-is-wrong-with-the-setting/1196/24 "2009-06-26T05:10:00Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![murtim](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@murtim](https://forums.percona.com/u/murtim)\
**Post date:** [June 26, 2009, 5:12am UTC](https://forums.percona.com/t/please-help-what-is-wrong-with-the-setting/1196/25 "2009-06-26T05:12:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![januzi](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@januzi](https://forums.percona.com/u/januzi)\
**Post date:** [June 26, 2009, 5:15am UTC](https://forums.percona.com/t/please-help-what-is-wrong-with-the-setting/1196/26 "2009-06-26T05:15:27Z")

</div>

Good.

Create another debug log and post it.

---

<div class="post-metadata">

**Author:** ![murtim](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@murtim](https://forums.percona.com/u/murtim)\
**Post date:** [June 26, 2009, 5:17am UTC](https://forums.percona.com/t/please-help-what-is-wrong-with-the-setting/1196/27 "2009-06-26T05:17:53Z")

</div>

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](http://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  
(  
)

---

<div class="post-metadata">

**Author:** ![murtim](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@murtim](https://forums.percona.com/u/murtim)\
**Post date:** [June 26, 2009, 5:18am UTC](https://forums.percona.com/t/please-help-what-is-wrong-with-the-setting/1196/28 "2009-06-26T05:18:56Z")

</div>

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

regards

Lucas

---

<div class="post-metadata">

**Author:** ![januzi](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@januzi](https://forums.percona.com/u/januzi)\
**Post date:** [June 26, 2009, 5:25am UTC](https://forums.percona.com/t/please-help-what-is-wrong-with-the-setting/1196/29 "2009-06-26T05:25:27Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![murtim](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@murtim](https://forums.percona.com/u/murtim)\
**Post date:** [June 26, 2009, 5:28am UTC](https://forums.percona.com/t/please-help-what-is-wrong-with-the-setting/1196/30 "2009-06-26T05:28:32Z")

</div>

what is that mean less number of the products 15 ?

---

<div class="post-metadata">

**Author:** ![januzi](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@januzi](https://forums.percona.com/u/januzi)\
**Post date:** [June 26, 2009, 5:31am UTC](https://forums.percona.com/t/please-help-what-is-wrong-with-the-setting/1196/31 "2009-06-26T05:31:06Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![murtim](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@murtim](https://forums.percona.com/u/murtim)\
**Post date:** [June 26, 2009, 5:31am UTC](https://forums.percona.com/t/please-help-what-is-wrong-with-the-setting/1196/32 "2009-06-26T05:31:49Z")

</div>

okay thann you

---

<div class="post-metadata">

**Author:** ![januzi](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@januzi](https://forums.percona.com/u/januzi)\
**Post date:** [June 26, 2009, 5:44am UTC](https://forums.percona.com/t/please-help-what-is-wrong-with-the-setting/1196/33 "2009-06-26T05:44:05Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![murtim](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@murtim](https://forums.percona.com/u/murtim)\
**Post date:** [June 26, 2009, 5:48am UTC](https://forums.percona.com/t/please-help-what-is-wrong-with-the-setting/1196/34 "2009-06-26T05:48:37Z")

</div>

so what do you want me to do about that 😉

---

<div class="post-metadata">

**Author:** ![januzi](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@januzi](https://forums.percona.com/u/januzi)\
**Post date:** [June 26, 2009, 5:54am UTC](https://forums.percona.com/t/please-help-what-is-wrong-with-the-setting/1196/35 "2009-06-26T05:54:22Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![murtim](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@murtim](https://forums.percona.com/u/murtim)\
**Post date:** [June 26, 2009, 5:56am UTC](https://forums.percona.com/t/please-help-what-is-wrong-with-the-setting/1196/36 "2009-06-26T05:56:56Z")

</div>

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

Regards

Lucas

---

<div class="post-metadata">

**Author:** ![januzi](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@januzi](https://forums.percona.com/u/januzi)\
**Post date:** [June 26, 2009, 6:08am UTC](https://forums.percona.com/t/please-help-what-is-wrong-with-the-setting/1196/37 "2009-06-26T06:08:31Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![januzi](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@januzi](https://forums.percona.com/u/januzi)\
**Post date:** [June 26, 2009, 8:10am UTC](https://forums.percona.com/t/please-help-what-is-wrong-with-the-setting/1196/38 "2009-06-26T08:10:01Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![murtim](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@murtim](https://forums.percona.com/u/murtim)\
**Post date:** [June 26, 2009, 9:40am UTC](https://forums.percona.com/t/please-help-what-is-wrong-with-the-setting/1196/39 "2009-06-26T09:40:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![januzi](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@januzi](https://forums.percona.com/u/januzi)\
**Post date:** [June 26, 2009, 9:55am UTC](https://forums.percona.com/t/please-help-what-is-wrong-with-the-setting/1196/40 "2009-06-26T09:55:03Z")

</div>

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.

[Previous page](https://forums.percona.com/t/please-help-what-is-wrong-with-the-setting/1196.md?page=1)

[Next page](https://forums.percona.com/t/please-help-what-is-wrong-with-the-setting/1196.md?page=3)
