Project

General

Profile

« Previous | Next » 

Revision 3296

sql.py: flatten(): Don't sort the input tables by the pkey because it doesn't matter what order the datasource's rows are inserted in. Note that PostgreSQL doesn't guarantee the order of rows in a table, so it is possible that the rows were being inserted in an unknown order before this change, as well.

View differences:

sql.py
983 983
    '''
984 984
    items = mk_flatten_mapping(db, into, cols, as_items=True, **kw_args)
985 985
    cols = [sql_gen.NamedCol(new.name, old) for old, new in items]
986
    run_query_into(db, mk_select(db, joins, cols, limit=limit, start=start),
987
        into=into)
986
    run_query_into(db, mk_select(db, joins, cols, order_by=None, limit=limit,
987
        start=start), into=into)
988 988
    return dict(items)
989 989

  
990 990
##### Database structure introspection

Also available in: Unified diff