ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Custom Fields performance considerations

August 03, 2010 2:35pm

Subscribe [2]
  • #1 / Aug 03, 2010 2:35pm

    Steve Hurst

    36 posts

    I have some questions on the performance implications of custom fields that don’t carry data. I’m experimenting with field groups and channel assignment, and am considering putting all custom fields in one large group, and using publish layouts to hide those that aren’t needed.

    Are there performance hits for empty, assigned custom fields when the channel entries tag is used? Or otherwise?

    Is there a performance or optimization reason to use field groups?

  • #2 / Aug 03, 2010 4:26pm

    Ingmar

    29245 posts

    No, there shouldn’t be an impact. Unless you turn them off EE with the disable= parameter EE will get all your custom fields, whether you finally need them, or not.

  • #3 / Aug 03, 2010 7:42pm

    Steve Hurst

    36 posts

    So are you saying that the entries tag pulls all custom fields into memory, regardless of what custom field variables you indicate within the entries loop?

    I’m curious if the ‘disable’ parameter stops the query into that portion of the database, but once it’s open, the extended performance hit is tied to what fields are called, or if it’s an all or nothing thing.

  • #4 / Aug 04, 2010 8:10am

    Ingmar

    29245 posts

    So are you saying that the entries tag pulls all custom fields into memory, regardless of what custom field variables you indicate within the entries loop?

    Yes, because at that time it doesn’t know which ones you’re going to use.

    I’m curious if the ‘disable’ parameter stops the query into that portion of the database

    It does. If you are disabling custom fields they won’t be queried, meaning, yes, it’s all are nothing.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases