Re: ORM performance question

2005-12-14 Thread Jacob Kaplan-Moss
On Dec 14, 2005, at 8:47 PM, Tim Keating wrote: 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

Re: ORM performance question

2005-12-14 Thread Adrian Holovaty
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_g

ORM performance question

2005-12-14 Thread Tim Keating
I have been working on a file download link, where the file is generated dynamically in the view code and returned via the mechanisms outlined in the help for generated PDFs or CSVs. This works fine, but the performance is staggeringly bad. When I prototyped the file builder in a vanilla Python sc