Author |
Topic |
|
rnp
Starting Member
11 Posts |
Posted - September 03 2014 : 01:13:22
|
Hi Folks,
we have a cart that is running 7.01, it is nearly 10 years old and has a stack of redundancy in it. The productcategories table is bloated beyond all sence, and we now have over 1.3 million entries in the products table.
Our problem is that the cart is slowing down. Unfortunately we have a stack of mods that are critical to us, so upgrading and changing is not something i am enjoying thinking about. The site is damn busy so downtime is also a tough one.
Does anyone have any tips & tricks on how to clean unused tables etc, how to remove entries from prodcategories table without loosing categories on live products (ie: is there some way to flag product by the last date they were active, and then remove the entries in the prodcat table when the product itself it deleted?) - simply doing a search on the site is taking an unreasonable amount of time. Are these searches building up in a table too?
We are facing some big issues if we cant get this one sorted.
any help will be greatly appreciated and actual solutions will be put in my will for when i become wealthy (if i dont pass from stress at running a busy ecom site first).
Thanks everyone!
Tony |
|
carfin
VP-CART Expert
United Kingdom
948 Posts |
Posted - September 08 2014 : 08:04:11
|
Hi Tony,
if you want to see all the entries in your prodcategories table which no longer relate to any records in the products table you can run the following query (without the space in S ELECT)
S ELECT prodcategories.id, prodcategories.intcategoryid, prodcategories.intcatalogid FROM prodcategories LEFT JOIN products ON prodcategories.[intcatalogid] = products.[catalogid] WHERE (((products.catalogid) Is Null));
(you may need to modify the wording depending on the type of database your site uses)
This result can then be used to create a table for a sql delete function. Create the new table in your database (I called it BadProducts) and then run the following query
DELETE * FROM prodcategories WHERE intcatalogid in (S ELECT DISTINCT intcatalogid FROM BadProducts);
No more redundant records in the prodcategories table.
As for the search table - check in cart setup that you have save xsearchcapture set to No
Hope this helps. Any questions, just ask :)
Regards, Carrol www.deanston-electrical.co.uk
|
Edited by - carfin on September 08 2014 08:44:34 |
|
|
serjtankian
VP-CART Super User
Armenia
378 Posts |
Posted - September 18 2014 : 09:50:43
|
@rnp
what''s your store dbms? sql or access? if you''re using access, compacting database would help also
*serj* |
|
|
diegomilito
VP-CART Expert
Argentina
779 Posts |
Posted - September 20 2014 : 05:37:08
|
i have no idea how to clean prodcat records that are unused... but my tip to speed up your cart, perhaps disable the left categories flyout menu or dropdowns, dont use them. control and change them via layout manager. i was also using 701 version in past and when i upgraded to 702 a bit faster. maybe you can try. diego. |
|
|
Mark Priest
VP-CART Expert
United Kingdom
580 Posts |
Posted - September 25 2014 : 16:49:28
|
Our cart was running slow, loading the orders page would take about 10 seconds. Moved it to a quadcore server with 9GB of ram and now it''s like lightning!
Regards,
Mark [URL="http://www.fireworkscrazy.co.uk"]Fireworks For Sale[/URL] |
|
|
diegomilito
VP-CART Expert
Argentina
779 Posts |
Posted - September 29 2014 : 23:50:37
|
mark, are the hardware upgrade cost a lot ?? diego |
|
|
serjtankian
VP-CART Super User
Armenia
378 Posts |
Posted - November 28 2014 : 03:52:03
|
i think it cost a lot, quadcore with 9 GB ram.. very nice if you use it only for your store
*serj* |
|
|
manilow
VP-CART New User
France
134 Posts |
Posted - November 28 2014 : 04:28:53
|
I suppose it makes sense to optimize before opting for more power. To avoid excessive memory usage, it''s very important to recycle the ASP application pool frequently, every hour for example. Another way is to specify a maximum of memory usage.
Then, to avoid loss of customer shopping carts when the application pool recycles, it''s also recommanded to save the session values in the database (xsavesession set to yes).
Erik www.aquathermia.com |
|
|
serjtankian
VP-CART Super User
Armenia
378 Posts |
|
|
Topic |
|