Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2008
    Posts
    49
    Plugin Contributions
    0

    help question Optimizing mySQL for Zen Cart in searches

    Hi,

    I have a site with almost 100k items. The speed when browsing is absolutely phenomenal. Sub .5 second load times are standard. However, when searching for any given item, I'm seeing obscenely large query times. For example:

    Parse Time: 7.324 - Number of Queries: 567 - Query Time: 7.10531123407

    As you can see the parse time is very very fast once it gets the results from the database.

    I have a dedicated server. I can do anything to it I want. How should I tweak mysql so it searchs faster (The large majority of our customers search instead of browse)

    The site is www.clubhobbies.com

    Thanks for any tips you might have,

    Josh

  2. #2
    Join Date
    Mar 2008
    Location
    NW Indiana
    Posts
    72
    Plugin Contributions
    0

    Default Re: Optimizing mySQL for Zen Cart

    I had the same problem (+70,000 products)
    What I did was change the code so it did not do an initial search of the descriptions.
    I have some rather large descriptions and it would take a very long time to return the results. Also the returns where not very accurate at first glance.
    Searching "grand theft auto" would return anything with a combination of the words.

    In files
    /includes/templates/template_default/sideboxes/tpl_search.php
    and
    /includes/templates/template_default/sideboxes/tpl_search_header.php

    I changed the 1 to a 0 in the line where it says:
    $content .= zen_draw_hidden_field('search_in_description', '1') . zen_hide_session_id();

    to:

    $content .= zen_draw_hidden_field('search_in_description', '0') . zen_hide_session_id();

    This stopped the header and sidebox searches from searching the descriptions.

    Ken

 

 

Similar Threads

  1. Help, mysql error when optimizing tables
    By timryc01 in forum General Questions
    Replies: 2
    Last Post: 20 Sep 2008, 02:06 PM
  2. how do I change mysql username and pw for an existing zen cart?
    By nguyenkhv in forum General Questions
    Replies: 1
    Last Post: 16 Sep 2008, 04:34 PM
  3. how much MySQL experience needed for database zen cart??
    By lieven23 in forum General Questions
    Replies: 2
    Last Post: 19 Aug 2008, 05:37 PM
  4. Which webhost and PHP/MySQL version best for Zen Cart?
    By dinosoup in forum General Questions
    Replies: 1
    Last Post: 15 May 2007, 04:50 AM
  5. MySQL optimal standard for Zen Cart??
    By cshart in forum General Questions
    Replies: 2
    Last Post: 3 Mar 2007, 09:07 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