Results 1 to 10 of 10
  1. #1
    Join Date
    Nov 2005
    Posts
    86
    Plugin Contributions
    1

    Default How many attributes is too many?

    I'm a bit worried about the amount of attributes I'm using using on my site.

    I currently have around 250 option values under 25 option groups.

    Is this a lot or can Zen handle more?

    How many more, before it affects the sites speed?

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: How many attributes is too many

    Each extra attribute for a product affects the speed as it means extra database queries. On a decent server though, it's likely that customer patience will expire before the server's ability to handle the load. And Zen cart 2.0 specifically aims to reduce the number of queries needed across the board, including for attributes.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: How many attributes is too many

    I currently have around 250 option values under 25 option groups.
    How exactly are those broken down?

    The way attributes work is not simply 250 times 25 - For example; let's say you have 3 option groups - color, size and style and each group has 3 options - that isn't a total of 9 option values - it is 27 possible combinations - 3x3x3

    In the current code a large number of groups with a large number of options each could result in a very large number of database queries and could potentially slow the server. The upcoming release deals with the attribute combinations in a much more efficient way and shouldn't have the downside of today's code.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  4. #4
    Join Date
    Nov 2005
    Posts
    86
    Plugin Contributions
    1

    Default Re: How many attributes is too many

    Hi Kim,
    I tried to explain it the quickest way I could without confusing myself and anyone else hence the 25 option groups and 250 option values, these numbers are from the admin pages Option Name Manager and Option Value manager.

    I understand what your are saying regarding colors, size and style, but the products I stock very rarely have more than one available option (group). Its usually a colour or a size option with roughly 6-12 values on each product.

    So with my limited understanding of the inner working of Zen, I'm thinking that a large number of lines in the Option Value Manager should not cause too much of a problem as long as the amount of options per individual products is not too many?

    Is this correct and does it make sense?


    Thank you both for your quick replies.

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

    Default Re: How many attributes is too many

    If you have 40,000 attributes in the products_attributes table ... yikes!!

    But ... you only have 20 to 100 attributes per product, then as long as you are on a good server you should not have a problem ...

    If, however, you have 1 Product that uses 25 Option Names and each Option Name has 25 Option Values on that same Product ... then you are gonna run into a problem as that is 25 x 25 and much more than 100 or so attributes on a product ...

    NOTE: you will only have a problem with the 1 Product being a monster ...

    Better the server the more you can have ...

    So, if you have an Option Name: Color and create 250 Option Values for it ... but are only adding a few to each Product ... then again not an issue as the Product still is not a monster ...
    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: v1.5.5]
    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!

  6. #6
    Join Date
    Nov 2005
    Posts
    86
    Plugin Contributions
    1

    Default Re: How many attributes is too many

    Hi Linda,
    Thanks for the info,

    40,000! no not quite, 34,203 be be exact.

    Heres how it breaks down for anyone who is interested.

    products_attributes table rows = 34,203
    products_attributes size = 4.1mb
    total site database size = 10.2mb

    7,135 products
    5200 products with options.

    The site runs fine although looking at Google analytics we don't have a lot of concurrent users.

    I couldn't really think of another way of getting our product information across without the attributes.


    I hope this information helps someone.

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

    Default Re: How many attributes is too many?

    Your products do not appear to have a lot of attributes per product ... if you are talking about the site in your signature ... granted I can only guess which products might have the most attributes ...

    Do you have any products that have a lot of attributes?

    If not, then even with 30,000+ products_attributes there is not a big load on a given product by itself ...
    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: v1.5.5]
    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!

  8. #8
    Join Date
    Dec 2008
    Location
    San Diego, CA
    Posts
    2
    Plugin Contributions
    0

    Default Re: How many attributes is too many?

    Are there any options that anybody has run into that allow many many attributes per item?

    Im trying to add ~3500 attributes per item and I dont know if the query to the server is timing out or?? but it takes about 2 mins to load, and then it doesnt load any images, descriptions or attributes. If there is a work around or something this would be friggin awesome as it would allow me to finish this project. Until then, Im searching for developers...

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

    Default Re: How many attributes is too many?

    3500 attributes to 1 Product?

    Good luck ... that is not going to happen ...

    What are you trying to make that needs 3500 attributes on 1 Product?
    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: v1.5.5]
    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!

  10. #10
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: How many attributes is too many?

    I was wondering the same thing, and how 3,500 attributes were to be presented to users for their selection?
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 

Similar Threads

  1. Too many attributes? Store too slow
    By rliddle in forum Setting Up Categories, Products, Attributes
    Replies: 40
    Last Post: 21 Mar 2013, 10:09 PM
  2. Too many items in cart? Or is it too many attributes?
    By CabinetGuy in forum Managing Customers and Orders
    Replies: 16
    Last Post: 23 Aug 2011, 07:13 PM
  3. items/products - how many is too many?
    By fishingmaniac in forum General Questions
    Replies: 1
    Last Post: 7 Jan 2010, 01:59 AM
  4. too many attributes :(
    By MachaNeko in forum General Questions
    Replies: 18
    Last Post: 15 May 2008, 03:48 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