Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    Jan 2004
    Posts
    482
    Plugin Contributions
    0

    Default Re: admin/categories.php running super slow...

    I came up with the following queries to check what you said to start checking ... i hope the logic is right....


    all master_categories_id in the products table are in the categories table ... returns 0 results (great if the query is right)

    Code:
    SELECT
    `zen_products`.`master_categories_id`
    FROM
    `zen_products`
    Inner Join `zen_categories` ON `zen_categories`.`categories_id` = `zen_products`.`master_categories_id`
    where `zen_categories`.`categories_id` is null
    all categories_id in the products_to_categories table are in the categories table ...returns 0 results (great if the query is right)

    Code:
    SELECT
    `zen_categories`.`categories_id`,
    `zen_products_to_categories`.`products_id`
    FROM
    `zen_categories`
    Inner Join `zen_products_to_categories` ON `zen_products_to_categories`.`categories_id` = `zen_categories`.`categories_id`
    where `zen_products_to_categories`.`products_id`
     is null
    all products_id in the products table are in the products_to_categories table ... returns 61 results (spot checking the first two reveals that those products have a blank entry on the products table - i need to go through and handcheck the rest of the 61 returned)

    Code:
    SELECT
    `zen_products_to_categories`.`products_id` as zptc_prodid,
    `zen_products`.`products_id` as zp_prodid,
    `zen_products_to_categories`.`categories_id` as zptc_catid
    FROM
    `zen_products_to_categories`
    right Join `zen_products` ON `zen_products_to_categories`.`products_id` = `zen_products`.`products_id`
    where `zen_products_to_categories`.`categories_id`is null
    who knew cleaning could be so fun. :)

  2. #12
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: admin/categories.php running super slow...

    These might help too:
    MATCH MISSING PRODUCTS_TO_CATEGORIES
    Code:
    SELECT * FROM products WHERE products.products_id NOT IN (SELECT products_to_categories.products_id FROM products_to_categories);
    
    SELECT * FROM products_to_categories WHERE products_to_categories.products_id NOT IN (SELECT products.products_id FROM products);

    MATCH MISSING ON master_categories_id
    Code:
    SELECT * FROM products WHERE products.master_categories_id NOT IN (SELECT products_to_categories.categories_id FROM products_to_categories);
    
    SELECT * FROM products WHERE products.master_categories_id NOT IN (SELECT categories.categories_id FROM categories);
    NOTE: these need to be edited for prefixes ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #13
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: admin/categories.php running super slow...

    ksoup ... how much did the changes speed up your Categories/Products?

    Does it need more tweaking?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #14
    Join Date
    Jan 2004
    Posts
    482
    Plugin Contributions
    0

    Default Re: admin/categories.php running super slow...

    I was just testing as you wrote... it is rockin' through now! Thank you!

    Quote Originally Posted by Ajeh View Post
    ksoup ... how much did the changes speed up your Categories/Products?

    Does it need more tweaking?

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v139h admin suddenly super slow, web store randomly slow
    By Swingin' Sparrow in forum General Questions
    Replies: 44
    Last Post: 13 Mar 2013, 07:50 AM
  2. My v1.3.8a running SUPER slow?
    By kirkbross in forum Installing on a Linux/Unix Server
    Replies: 9
    Last Post: 13 Jan 2010, 09:26 AM
  3. Jrox admin running slow
    By swamyg1 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 13 Jul 2009, 03:34 AM
  4. Site & Admin Being Super Slow Today
    By DPM in forum General Questions
    Replies: 2
    Last Post: 24 Apr 2008, 12:24 PM
  5. Site running fine, admin section extremely slow
    By swingandmiss in forum General Questions
    Replies: 8
    Last Post: 26 Jan 2008, 10:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg