Ignore:
Timestamp:
Jun 2, 2008, 1:49:32 AM (16 years ago)
Author:
ecprice
Message:

Perform eager caching of machine properties.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-database/sipb_xen_database/models.py

    r443 r555  
    101101
    102102assign_mapper(ctx, Machine, machine_table,
    103               properties={'nics': relation(NIC, backref="machine"),
    104                           'disks': relation(Disk, backref="machine"),
    105                           'type': relation(Type),
    106                           'acl': relation(MachineAccess, backref="machine")});
     103              properties={'nics': relation(NIC, backref="machine", lazy=False),
     104                          'disks': relation(Disk, backref="machine", lazy=False),
     105                          'type': relation(Type, lazy=False),
     106                          'acl': relation(MachineAccess, backref="machine", lazy=False)});
    107107assign_mapper(ctx, MachineAccess, machine_access_table)
    108108assign_mapper(ctx, NIC, nic_table)
Note: See TracChangeset for help on using the changeset viewer.