On 12/14/05, Tim Keating <[EMAIL PROTECTED]> wrote:
> for foo in foos.get_iterator():
>   # Pack some of the data into a binary buffer
>
> I expected to see 1 call to function_get_iterator, or, at worst, 1 call
> for every GET_ITERATOR_CHUNK_SIZE rows. Instead, I'm seeing *3* calls
> to function_get_iterator for every row, which I find perplexing. I
> intend to dig into this further but I thought perhaps someone who's
> been elbow-deep in the ORM could offer some enlightenment, rather than
> sending me in there cold turkey.

This is quite strange; I can't reproduce the problem here. I put a
"print 'In function_get_iterator'"  just after function_get_iterator()
in django/core/meta/__init__.py, and it only gets printed once.

Could you post more of your code? Does your code do anything out of
the ordinary that could be influencing this?

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com | chicagocrime.org

Reply via email to