Ignore:
Timestamp:
Nov 17, 2008, 9:58:30 PM (16 years ago)
Author:
broder
Message:

Turn on lazy loading for all tables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-database/python/database/models.py

    r1708 r1714  
    121121
    122122session.mapper(Machine, machine_table,
    123               properties={'nics': relation(NIC, backref="machine", lazy=False),
    124                           'disks': relation(Disk, backref="machine", lazy=False),
    125                           'type': relation(Type, lazy=False),
    126                           'acl': relation(MachineAccess, backref="machine", lazy=False, passive_deletes=True, cascade="all, delete-orphan")});
     123              properties={'nics': relation(NIC, backref="machine"),
     124                          'disks': relation(Disk, backref="machine"),
     125                          'type': relation(Type),
     126                          'acl': relation(MachineAccess, backref="machine", passive_deletes=True, cascade="all, delete-orphan")});
    127127session.mapper(MachineAccess, machine_access_table)
    128128session.mapper(NIC, nic_table)
Note: See TracChangeset for help on using the changeset viewer.