At 13:13 +0200 12-08-2002, Daniel Ockeloen wrote:

<cut>

>The reason you clocked over 1500 requests is because you didn't add the
>fields in
>the query :

No, sorry. That was not the case. In the example below i just ommited
the fields to make the code snippet a little bit shorter.

><mm:list node="art_node_number" path="section,article"
>orderby="article.created" max="50">

---Regards, Andr�


>The result is that i doesn't know all the fields from section and acticle in
>the loop and will
>be forced to get the node from the database per loop entry : say you have 50
>items that would
>mean instead of 1 query that gets all the needed data it does atleast : 1+50
>(probably more
>because it has to figure out what the node is about). Allways add the fields
>you are going to
>use inside the loop to the list (this was forced in scan but not in tags).
>
><mm:list node="art_node_number" path="section,article"
>orderby="article.created" fields="aricle.created,article.title,section.name"
>max="50">
>
>for example.
>
>We will have to research if we can 'find' the needed fields on the fly and
>add them to the first query but
>the developers who made the tags say thats very hard todo.
>
>Daniel Ockeloen.


--

Andr� van Toly
CMS Developer for ilse media b.v.
[EMAIL PROTECTED]
+31-(0)20-8404559

Reply via email to