osCmax v2.5 User Manual
Results 1 to 7 of 7

Perfromance issue - looks like MySQL

This is a discussion on Perfromance issue - looks like MySQL within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; Hello All, I am having performance issues. Let me explain. It takes 9 sec parse time when I click on ...

      
  1. #1
    Member kopoba11's Avatar
    Join Date
    Jan 2005
    Posts
    49
    Rep Power
    0


    Default Perfromance issue - looks like MySQL

    Hello All, I am having performance issues. Let me explain.

    It takes 9 sec parse time when I click on some of the menu items. When in PHPadmin and I look for process, I can see that it takes 9-10 seconds to run the query, i.e copy to temp table - status message Copying to tmp table . Status message shows me this partial query “SELECT DISTINCT p.products_id, p.products_image, p.products_tax_class_id, IF (s.status, s.specials_ne “

    I have only 4000 products with 8000 attributes and 4000 specials. Looks like my problem is DB
    I am running OSCMax 1.7 on My SQL 2.5.6. Any ideas to improve performance. I have dedicated hosting environment so I am free to do anything.

    Thank you

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default Re: Perfromance issue - looks like MySQL

    Quote Originally Posted by kopoba11
    I have only 4000 products with 8000 attributes and 4000 specials. Looks like my problem is DB
    8000 attribs would be some of the reasons.... each item must have on average 2 attribs that are not use by any other item...... Is there a way to reduce the attribs? As well each item is a SPECIAL???

  3. #3
    Member kopoba11's Avatar
    Join Date
    Jan 2005
    Posts
    49
    Rep Power
    0


    Default RE: Re: Perfromance issue - looks like MySQL

    Sorry some corrections:
    I am running MySQL 3.23.58
    I have around 16 attributes. Some of my products associated to as much as 5 attributes. Therefore my products attributes table has 8000 records for 4000 products. (well about 2 attributes per product)
    I saw some performance difference going from 800 to 3000 products. It was acceptable. Ihave to note that only 800 products had specials. As soon as I gave specials to all products, performance tanked big time. I can see performance problems only when I drill down through category menu . I have only 10 categories. Each category may have only 5 sub-categories. My whole menu structure only 2-3 level deep.

    Thank you

  4. #4
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default RE: Re: Perfromance issue - looks like MySQL

    Hate to say it - one way to SPEED up MYSQL is to host on LUNIX not Windows PC....

    Also in Admin change

    * Category Counts Off
    * Cache On!

    Check mySQL setting on:

    key_buffer_size Pool for index pages; Can be made very big (default is only 8MB)
    table_cache Change if you have many tables or simultaneous connections (default 64)
    key_buffer_size (on MySQL version 4.1+ will gain some proformance)

    Use --skip-locking (default on some OSes) if possible. This will turn off external locking and will give better performance.

    For optimizing SELECT Statements and Other Queries - Using simpler MySQL permissions when you issue GRANT statements enables MySQL to reduce permission-checking overhead when clients execute statements. For example, if you don't grant any table-level or column-level privileges, the server need not ever check the contents of the tables_priv and columns_priv tables. Similarly, if you place no resource limits on any accounts, the server does not have to perform resource counting. If you have a very high query volume, it may be worth the time to use a simplified grant structure to reduce permission-checking overhead.

    MySQL can be fast - you just need to have the proper indexing set up. If you need a good MySQL reference, pick up a copy of Paul DuBois' book, which is currently the bible for MySQL. O'Reilly also recently released a reference by Monty and the MySQL AB team.

    The way to check if the indices are already there are with the SHOW INDEX command. For instance, to check the tcphdr table, you would run:

    + []mysql> show index from tcphdr;

    If you need to create the index, you can run:

    + []CREATE INDEX idx_tcp_sport ON tcphdr(tcp_sport);


    This is just some of the info out there on the subject - hopfully it will help you....
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  5. #5
    Member kopoba11's Avatar
    Join Date
    Jan 2005
    Posts
    49
    Rep Power
    0


    Default RE: Re: Perfromance issue - looks like MySQL

    Thank you. I will work on it. I will try to post any updates I will have.

  6. #6
    New Member dewed's Avatar
    Join Date
    Apr 2004
    Posts
    6
    Rep Power
    0


    Default RE: Re: Perfromance issue - looks like MySQL

    You might also look into one of the caching contributions on oscommerce.com We are using one contributed by username Chemo.

  7. #7
    Member kopoba11's Avatar
    Join Date
    Jan 2005
    Posts
    49
    Rep Power
    0


    Default RE: Re: Perfromance issue - looks like MySQL

    Thanks for all the help. Join query on products and specials was running very slow becasue of index problem. After proper index on both tables all to normal. I am sure I will have to look into perfromance more.

Similar Threads

  1. MySQL? Please help!
    By extremenewb in forum osCommerce 2.2 Installation Help
    Replies: 3
    Last Post: 09-22-2004, 07:31 AM
  2. add a new mysql table
    By Dumb_Question in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 12-14-2003, 11:37 AM
  3. mySQL database
    By mattias2 in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 10-23-2003, 06:46 PM
  4. Error with Mysql...?
    By Ambrose in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 10-28-2002, 02:53 PM

Bookmarks

Posting Permissions

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