Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / General Questions / dedicated server cannot handle the database query?

dedicated server cannot handle the database query?

Locked

Started by w2e on 7 Dec 2009, 6:30 PM · Views: 901

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
7 Dec 2009, 6:30 PM
#1
w2e avatar

w2e

Zen Follower

Join Date:
Oct 2007
Posts:
103
Plugin Contributions:
0

dedicated server cannot handle the database query?

urgent help needed.
it looks like every database query goes through the entire database:
Rows_sent: 123570 Rows_examined: 371018 (see mySQL log below).

Anybody can help with this?

Query_time: 5 Lock_time: 0 Rows_sent: 123570 Rows_examined: 371018

select distinct p.products_id, p.products_image, p.products_tax_class_id, pd.products_name,
p.products_date_added, p.products_price, p.products_type, p.master_categories_id
from zen_products p, zen_products_description pd
where p.products_id = pd.products_id
and pd.language_id = '1'
and p.products_status = 1;

7 Dec 2009, 9:11 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: dedicated server cannot handle the database query?

Maybe you've done something to delete all the indexes on your tables?
Or maybe your hosting service is incapable of providing the services you require.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

7 Dec 2009, 9:29 PM
#3
w2e avatar

w2e

Zen Follower

Join Date:
Oct 2007
Posts:
103
Plugin Contributions:
0

Re: dedicated server cannot handle the database query?

how do i confirm/check?
If that is the case, how do i restore the indexes?

7 Dec 2009, 9:41 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: dedicated server cannot handle the database query?

w2e:

how do i confirm/check?
You can see the indexes via phpMyAdmin when looking at each table's structure.
Or you can export structures and compare against the original Zen Cart files.
Or you can hire a professional who handles this sort of thing all the time.

w2e:

If that is the case, how do i restore the indexes?You'll have to manually build them all based on the original Zen Cart structure, or again, hire a professional who is familiar with the process.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

24 Feb 2010, 10:07 PM
#5
w2e avatar

w2e

Zen Follower

Join Date:
Oct 2007
Posts:
103
Plugin Contributions:
0

Re: dedicated server cannot handle the database query?

update:

We have since moved the site from inmotionhosting to another, and after 1 month, we are now running our own dedicated server.

The conclusion is that the problem is not about if zen cart can handle how many items. The problem is about the hosts! All the hosting companies want is money from you - the more the better! different companies use different tactics.

The highest item count on our site so far is over 103K without a problem. The google webaster tools show our load speed at 0.7 - higher than 93% of the sites. All this has been done without making any changes to zen cart.