Hello.

I have found this recipe:

    http://www.sqlalchemy.org/trac/wiki/UsageRecipes/WindowedRangeQuery

I think it fits perfectly for my usecase: process potentially large result set
of ORM instances in chunks of predefined size to limit memory consumption.

I have few questions / remarks:
* I think there is a typo in the line (the comma should not be there, right?):
    intervals = [id for id, in q]
* The column supplied to windowed_query() function should be the primary key of
the table that represents the ORM instances, right?
* When are the ORM instances from the previous chunk reclaimed? I know the
session keeps them in an identity map.


Thank you,

Ladislav Lenart

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to