>Ah, interesting -- I hadn't thought about that situation.  So
>essentially a Query is a curried lookup until you iterate it, yes?

Yep.

>What happens to a query after it's been iterated?  For example, how
>does the following behave?

I'd say it  should memoize it's result - so it is only queried once per
request to reduce database hits. But there should maybe a .reset()
method on a manager to reset the memoized data, so you can rerun your
query if you need to (won't happen that often in web code, but might be
needed in batch code).

bye, Georg

Reply via email to