Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2005
    Posts
    186
    Plugin Contributions
    0

    Default SQL Cache Method

    How does a person know which method to choose. The more info section says it depends on the size of your store or more importantly the products/category section. I wouldn't say our store is huge, but we do have about 200 products and probably 20 or so categories. Would this seem like a large or small store?

    Thanks,

    Kim

  2. #2
    Join Date
    Sep 2004
    Posts
    37
    Plugin Contributions
    0

    Default Re: SQL Cache Method

    I have also wondered this; and curious if it has any effect on the load times of my store. I used the sql cache method for a large store (in DB).

  3. #3
    Join Date
    Dec 2005
    Location
    My Own Fluffy Place, Pangea
    Posts
    420
    Plugin Contributions
    0

    Default Re: SQL Cache Method

    The one that has the most effect would be caching at the server level set up by your host. I do this on my servers, it cache the result directly in RAM, which really does decrease the load time significantly. You have to kinda ask around to see how much they allocate for this as it does take a bit of RAM. For a 400 items store, currently I allocate about 10MB for that store in addition to allocation for other web sites on the server. As the server run, I monitor the number of cache dump that occur, when it doesn't happen a lot, that mean results are well cached. A few hundred products make you an average store, large store would be a few thousand products at the very least.

    Between DB and file, there isn't necessarily a right answer, it depend on the load of the server you're on and the setup of your host. If their web server is overloaded but have a separate DB server then DB caching might improve performance. It could be the other way around. For the store that I manage, we don't have the condition to utilize either method for performance gain and I turned caching off in ZC. Tried both, didn't really notice a real difference.

    Caching work by remembering the result of sql queries, that help if you have an insane amount of items (say 5,000+) where the time to search for and fetch things could take a bit of time, and if you're on a kinda overloaded server where the performance time of getting result from the cache is faster than from the DB. Also, this would be where your host don't use mySQL caching in RAM, or they're not allocating enough RAM for that purpose, thereby causing a lot of cache dumping.
    Yeah! I'm small! I'm Fluffy! *Stick tongue out*

  4. #4
    Join Date
    Sep 2004
    Posts
    37
    Plugin Contributions
    0

    Default Re: SQL Cache Method

    FluffyTiger,

    Thanks, quite informative. Is there a way through, say, cpanel/phpmyadmin to find out if MySQL has caching to RAM enabled and how much is allocated?
    Last edited by irascible; 3 Oct 2006 at 07:27 AM.

  5. #5
    Join Date
    Dec 2005
    Location
    My Own Fluffy Place, Pangea
    Posts
    420
    Plugin Contributions
    0

    Default Re: SQL Cache Method

    SHOW STATUS LIKE '%qcache%'

    SHOW VARIABLES LIKE '%query_cache%'

    High number of low memory prunes are bad.
    Yeah! I'm small! I'm Fluffy! *Stick tongue out*

  6. #6
    Join Date
    Sep 2004
    Posts
    37
    Plugin Contributions
    0

    Default Re: SQL Cache Method

    Quote Originally Posted by FluffyTigger View Post
    SHOW STATUS LIKE '%qcache%'

    SHOW VARIABLES LIKE '%query_cache%'

    High number of low memory prunes are bad.

    Thanks again!

 

 

Similar Threads

  1. v154 SQL Cache Method
    By jolliejollie in forum Installing on a Windows Server
    Replies: 1
    Last Post: 27 Mar 2015, 08:57 AM
  2. v151 How to change site SQL cache method?
    By Feznizzle in forum General Questions
    Replies: 4
    Last Post: 10 Oct 2012, 05:51 PM
  3. sql cache method
    By buildingblocks in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 29 Jun 2010, 02:32 AM
  4. sql cache method
    By gsdcypher in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 7 Mar 2008, 06:30 AM
  5. Change SQL Cache Method
    By fontuna in forum Basic Configuration
    Replies: 3
    Last Post: 11 Jul 2007, 01:01 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR