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.

Weblog Query Question

November 10, 2007 5:23am

Subscribe [5]
  • #1 / Nov 10, 2007 5:23am

    Greg Freeman

    25 posts

    I haven’t looked through EE’s source code yet but I wondering if someone could answer a quick question on the weblog entries tag. Just say weblog entries contains 10 fields and you want to display only 2 of them. When using a weblog entries tag does it select all available fields or only the fields specified within the loop? This is more of a performance question then anything. I would find it a waste of resources to select all 10 fields if I only wanted to display 2 of them.

  • #2 / Nov 10, 2007 10:43am

    Boyink!

    5011 posts

    You can use parameters to disable custom fields - in addition to member data, trackbacks, pagination, and categories.  But you can’t disable on a field by field basis.

    My $0.02 - don’t worry about performance issues before they are issues…I have weblogs with dozens of custom fields and performance is fine.

  • #3 / Nov 10, 2007 5:25pm

    Stephen Slater

    366 posts

    When using a weblog entries tag does it select all available fields or only the fields specified within the loop?

    I am pretty certain that it only loops through the variables that are specified inside of the tags, so fields that aren’t being called are a nonissue.

  • #4 / Nov 10, 2007 10:17pm

    cshort

    59 posts

    Based on the queries that I’ve seen run on an average EE template page, I doubt you’re going to see any type of performance hit unless you have a large number of custom fields.  You can set the system to display all of the queries it executes in the control panel.

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

ExpressionEngine News!

#eecms, #events, #releases