Re: [sqlalchemy] [ANN] Modified WindowedRangeQuery recipe

2013-06-17 Thread Ladislav Lenart
Hello. This is the current version of our windowed query: from sqlalchemy.sql.expression import distinct def windowed_query(query, column, options_or_callback, window_size=100): Perform (a correct) yield_per() operation. See WindowedQuery.yield_per() for more. EXAMPLE: q

[sqlalchemy] [ANN] Modified WindowedRangeQuery recipe

2013-06-07 Thread Ladislav Lenart
Hello. I modified the recipe at http://www.sqlalchemy.org/trac/wiki/UsageRecipes/WindowedRangeQuery to better suit my needs. Perhaps someone else will find this useful: CODE BEGIN from sqlalchemy.orm import subqueryload from

[sqlalchemy] [ANN] Modified WindowedRangeQuery recipe

2013-06-07 Thread Ladislav Lenart
Hello. Resending because the original e-mail does not seem to make it to the mailing list. Apologise for any duplicates. Here we go... Hello. I modified the recipe at http://www.sqlalchemy.org/trac/wiki/UsageRecipes/WindowedRangeQuery to better suit my needs. Perhaps someone else will