Project

General

Profile

« Previous | Next » 

Revision 3166

sql.py: flatten(): Don't automatically create indexes on all columns, because most columns don't need indexes and the main index used for the join is now added automatically by distinct_table()

View differences:

lib/sql.py
903 903
    items = mk_flatten_mapping(db, into, cols, as_items=True, **kw_args)
904 904
    cols = [sql_gen.NamedCol(new.name, old) for old, new in items]
905 905
    run_query_into(db, mk_select(db, joins, cols, limit=limit, start=start),
906
        into=into, add_indexes_=True)
906
        into=into)
907 907
    return dict(items)
908 908

  
909 909
##### Database structure introspection

Also available in: Unified diff