def METHOD_NAME(q, column, windowsize):
    """"Break a Query into windows on a given column.
    Source: https://bitbucket.org/zzzeek/sqlalchemy/wiki/UsageRecipes/WindowedRangeQuery  # noqa
    If the query does not use eager loading `yield_per` can be used instead for
    native streaming.
    """
    for whereclause in column_windows(
            q.session,
            column, windowsize):
        for row in q.filter(whereclause).order_by(column):
            yield row