[sqlalchemy] Patch: Ordered merge of ShardedQuery results (Was: Re: [sqlalchemy] Patch: Use generators for ShardedQuery results)

2008-04-28 Thread Kyle Schaffrick
On Sun, 27 Apr 2008 23:35:06 -0400 Kyle Schaffrick [EMAIL PROTECTED] wrote: Since as I mentioned, this is kind of an interesting learning project for me to learn some SA internals, I'd like my next step to be seeing if I can write something that will make a callable/closure which, when passed

[sqlalchemy] Patch: Ordered merge of ShardedQuery results (Was: Re: [sqlalchemy] Patch: Use generators for ShardedQuery results)

2008-04-28 Thread Kyle Schaffrick
On Mon, 28 Apr 2008 16:22:44 -0400 Michael Bayer [EMAIL PROTECTED] wrote: so, lets name it _merge_ordering() to start so we have some future leeway on the name. Changes made. Well, in fact the result.close() at the end there is not really needed; when all result rows are exhausted,