Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Query Help....SLOW oscommerce site!!!


lstra

Recommended Posts

Posted

Hi,

 

My oscommerce site is running incredibly slow.....I have searched and searched the forums and have installed all of Chemo's speed up contributions including page cache and MS3 tax class. So I decided to post to SLOW queries from one page and see if anyone can help:

 

ANY HELP MUCH APPRECIATED!!!!

 

1 select c.categories_id, cd.categories_name, c.parent_id from categories c, categories_description cd where c.categories_id = cd.categories_id and cd.language_id = '1' and c.parent_id = '3619' order by c.sort_order, cd.categories_name /home/****/public_html/product_info.php

 

0.600651 2007-03-09 14:16:39

 

02 select c.categories_id, cd.categories_name, c.parent_id from categories c, categories_description cd where c.categories_id = cd.categories_id and cd.language_id = '1' and c.parent_id = '3301' order by c.sort_order, cd.categories_name /home/****/public_html/product_info.php

 

0.967604 2007-03-09 14:16:35

 

03 select c.categories_id, cd.categories_name, c.parent_id from categories c, categories_description cd where c.categories_id = cd.categories_id and cd.language_id = '1' and c.parent_id = '906' order by c.sort_order, cd.categories_name /home/****/public_html/product_info.php

 

0.789489 2007-03-09 14:16:31

 

04 select c.categories_id, cd.categories_name, c.parent_id from categories c, categories_description cd where c.categories_id = cd.categories_id and cd.language_id = '1' and c.parent_id = '763' order by c.sort_order, cd.categories_name /home/****/public_html/product_info.php

 

0.810737 2007-03-09 14:16:29

 

05 select c.categories_id, cd.categories_name, c.parent_id from categories c, categories_description cd where c.categories_id = cd.categories_id and cd.language_id = '1' and c.parent_id = '2615' order by c.sort_order, cd.categories_name /home/****/public_html/product_info.php

 

0.560654 2007-03-09 14:16:24

Posted

Have you ever checked the state of your database? You might want to optimize/repair the tables. Only a proper database can work with full speed.

Posted

Istra

 

Post your web address please. I'll have a look.

 

Is your category count turned off btw because it should be.

Posted
Istra

 

Post your web address please. I'll have a look.

 

Is your category count turned off btw because it should be.

 

Hi,

 

Category count is set to false.

 

Website is www.partfinder.net

 

Thanks in advance,

 

Luke

Posted
Posted

Even the root index.php is very slow to load so its not just a slow query problem imo.

 

Get rid of crafty syntax a sec that tends to slow pages down.

Posted

Basically this seems to me a problem outside of osc.

 

Maybe a server configuration problem?

 

Have you made changes to the server or .htaccess recently?

Posted
Even the root index.php is very slow to load so its not just a slow query problem imo.

 

Get rid of crafty syntax a sec that tends to slow pages down.

 

ok....i removed crafty syntax....page load time has improved slightly!

Posted

Crafty syntax wasn't the problem (although I'd confine it to a single page e.g. contact us) try putting a simple php file in root like ..

 

phpinfo.php . containing

 

<?php

phpinfo();

?>

 

and speed test that file

Posted

Probably not the server then.

 

I don't have server access so I can't help further.

 

If it were me I'd concentrate on /includes/application_top.php initially and put a die('Got to here'); line in and keep moving it until I found the slow spot.

 

I'm sure there is a far more intelligent method, but it's all I can think of atm.

 

Got to go to bed, good luck.

 

Rob

Posted

can you check your categories and categories_description table and post the indexes on these tables.

 

I would make sure to have an index like this:

 

create index cat_parent on categories (parent_id)

 

to speed up the selection of the category.

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Posted

things you could do is to use a thumbnailer and locate where the delay comes from first before start installing modules. If you suspect the categories/products change the catalog\includes\column_left.php, comment out the categories.php box file and go to a page like shipping.php see if it still loads slow.

  • 4 months later...
Posted

I had the same problem that just began this week. My site became intolerably slow to load. I checked quite a few things including hounding my

webhost but, in the end, it came down to turning off the Display Category Counts. I must have passed some sort of threshhold this week

when adding new stock to my site as I did not have a problem before. But, when the number of items in my inventory pushed past the

9,000 mark, the display of the site slowed to worse than a crawl. It took about 30 seconds just to load and display the home page. Turning

off the Display Category Count returned the site to normal speed.

Gary

 

http://www.southweststamps.com

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...