Page 9 of 14 FirstFirst ... 7891011 ... LastLast
Results 81 to 90 of 136
  1. #81
    Join Date
    Feb 2005
    Location
    Italy
    Posts
    199
    Plugin Contributions
    0

    Default Re: Query Cache v1.0

    It depends on many many factors.

    Attributes are the main reason for bad performances in cart page.

    I didn't studied the growth of the number of queries but for sure, I too noticed that it increases quite in a linear way with number of products. It seemed (maybe) more than linear if there are more attributes for product.

    Then, order_total modules have a role too
    Paolo De Dionigi
    Co-maintainer of Zen Cart Italia

  2. #82
    Join Date
    Jun 2007
    Location
    Phoenix, AZ
    Posts
    69
    Plugin Contributions
    0

    Default Re: Query Cache v1.0

    Quote Originally Posted by s_p_ike View Post
    Attributes are the main reason for bad performances in cart page.
    Yes. shopping_cart->calculate and shopping_cart->get_products() both perform queries inside of a loop that iterates through each product, and then another inner loop that iterates through each attribute for each product. That design makes them both *very* expensive functions from a performance standpoint. I managed to speed this up a little by implementing some (primitive) caching code in the shopping cart class. It also appears both functions are called needlessly (probably "just to be safe"). Hopefully Zen 2.0 will address the issue by moving to an object-oriented approach to products that will store the values in memory rather than needlessly re-executing queries.

  3. #83
    Join Date
    Jan 2004
    Posts
    66,391
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Query Cache v1.0

    Quote Originally Posted by Tick View Post
    Hopefully Zen 2.0 will address the issue by moving to an object-oriented approach to products that will store the values in memory rather than needlessly re-executing queries.
    As has been stated elsewhere, it does.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #84

    Default Re: Query Cache v1.0

    Thank you for this great mod!
    I have a question......my web host has switched mySQL query cache on.
    Will this mod cause any conflict?

  5. #85
    Join Date
    Apr 2004
    Location
    Berkshire, UK
    Posts
    1,482
    Plugin Contributions
    1

    Default Re: Query Cache v1.0

    Quote Originally Posted by kelvyn View Post
    WARNING: There is a conflict between Query Cache 1.6 (download / official forum / zen support thread) and Google Base Feeder ( download / official forum / zen support thread )

    It took quite a few hours as well as support tickets to my host who gave up in the end! But starting from a clean install this morning, and putting things back one by one, I've arrived at the answer this afternoon :)
    Well, here we are a year on, has anyone had any ideas about this? What I've done now is a small script that copies the standard (works with google base feeder but inefficient) copy of query_factory over before base feeder runs, and then copies the query-cache version back.

    But this doesn't seem a very elegant way of doing things, but query cache does make a BIG difference to the store speed.

  6. #86
    Join Date
    Oct 2007
    Location
    Edinburgh, Scotland
    Posts
    243
    Plugin Contributions
    1

    Default Re: Query Cache v1.0

    Hi there,

    I have this mod installed in my store and am wondering if anyone has some information on its compatibility with 1.3.9c before I attempt an upgrade.

    Any help much appreciated.

  7. #87
    Join Date
    Jun 2007
    Posts
    72
    Plugin Contributions
    0

    Default Re: Query Cache v1.0

    I clicked through to see if there was a solution for the incompatibility between Google Base and this mod but didn't see any details. Has anyone been able to work through this?

    thanks,
    Don

  8. #88
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Query Cache v1.0

    Quote Originally Posted by fergusmacdonald View Post
    Hi there,

    I have this mod installed in my store and am wondering if anyone has some information on its compatibility with 1.3.9c before I attempt an upgrade.

    Any help much appreciated.
    i don't think this would be compatible with 139a,b,c,d , as query_factory.php has been changed in new releases .

  9. #89
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,624
    Plugin Contributions
    88

    Default Re: Query Cache v1.0

    Quote Originally Posted by tony_sar View Post
    i don't think this would be compatible with 139a,b,c,d , as query_factory.php has been changed in new releases .
    You're right ... there were changes to both query_factory.php and functions_categories between zc1.3.8a and 1.3.9c. The attached zip-file has the merged version that combines Query Cache v1.6 and the respective files from ZC 1.3.9c; there is no directory structure in the zip-file, so you need to copy the files to:

    /includes/classes/db/mysql/query_factory.php
    /includes/functions/functions_categories.php
    Attached Files Attached Files

  10. #90
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    60
    Plugin Contributions
    0

    Default Re: Query Cache v1.0

    Anybody get this working in 1.3.9d? I tried it, and it doesn't break the cart, but it also does not lower queries.

    It is a fresh install that I used my custom template from 1.3.8a.
    Mod wise it has IH2.
    It has php 5.2.11 and mysq 5.0.90

    Tried running it with query log as well. This is the output:

    QUERY DEBUG: Requested execution of: 0 queries. Executed: 7073 queries. Returned from cache: -7073 queries.

    SUM: 0


    Thanks!
    NiceBadge.com Lifetime guarantee on all badges! Free mock ups, 24 hour turn around time!

 

 
Page 9 of 14 FirstFirst ... 7891011 ... LastLast

Similar Threads

  1. v139e Query cache AND Image cache
    By ttfan in forum General Questions
    Replies: 0
    Last Post: 3 Aug 2012, 12:18 PM
  2. Query Cache Info?
    By Miff in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 13 Dec 2011, 02:07 PM
  3. Which Query Cache for version 1.3.9d
    By alx-tc in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 28 Oct 2011, 01:34 PM
  4. Re: Simple Cache vs. Query Cache
    By matteoraggi in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 12 May 2011, 11:09 AM
  5. Simple Cache vs. Query Cache vs. Magneticone Performance Mod?
    By NBordeau in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 24 May 2010, 03:55 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