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

Turn on lazy loading for all tables

Location:
trunk/packages/invirt-database
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-database/debian/changelog

    r1708 r1714  
     1invirt-database (0.1.0) unstable; urgency=low
     2
     3  * Turn on lazy loading for all tables
     4
     5 -- Evan Broder <broder@mit.edu>  Mon, 17 Nov 2008 21:57:35 -0500
     6
    17invirt-database (0.0.6) unstable; urgency=low
    28
  • 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.