Help - Search - Members - Calendar
Full Version: Filtering By Entry Tag Causing Publishing Timeout
Movable Type Community Forum > Using Movable Type > Categories and Entry Tags
othello
I have a very frustrating problem with a blog and I hope someone can help.

I'm running MT4.1 and the site in question has just over 300 entries. I have tagged about 2/3 of the entries with a @hidden private tag as I don't want them to show up in my index templates (the data for these hidden ones is used elsewhere on the site so I don't want to unpublish them).

I have 4 index templates generating php inc files, showing 4 different lists of the entries; by title, by excerpt, by category and by date.

All 4 index templates timeout on publish and I think its because I am using the following notation:

CODE
<mt:entries tag="NOT @hidden">


What I am asking MT for is a list of all entries that are not hidden.

If I remove the tag attribute the data rebuilds.

I have since tagged all the entries which should show with @show. 2 of the index templates rebuild OK (if a little slow), 1 times out but does rebuild (the data loop) and one times out and doesn't rebuild at all (the category loop).

Is using the 'tag' attribute a really bad idea?

Su-
QUOTE (othello @ Jul 28 2008, 06:24 PM) *
Is using the 'tag' attribute a really bad idea?

In and of itself, not necessarily. But "not" filters are computationally expensive. I'm pretty sure this has been fixed or at least much improved for 4.2(if it's an option for you to use pre-release code; it's pretty safe now), but I'm having trouble finding the specific bug case at the moment.
othello
QUOTE (Su- @ Jul 29 2008, 04:21 AM) *
QUOTE (othello @ Jul 28 2008, 06:24 PM) *
Is using the 'tag' attribute a really bad idea?

In and of itself, not necessarily. But "not" filters are computationally expensive. I'm pretty sure this has been fixed or at least much improved for 4.2(if it's an option for you to use pre-release code; it's pretty safe now), but I'm having trouble finding the specific bug case at the moment.


ah! thanks su.

the client is proofing the content so we can wait a few days and see if 4.2 comes out officially. otherwise we might go with the RC version.

the site in question is really small but has turned out to be very complex to build!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.