Changeset 555 for trunk/packages


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

Perform eager caching of machine properties.

Location:
trunk/packages/sipb-xen-database
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-database/debian/changelog

    r490 r555  
     1sipb-xen-database (10.8) unstable; urgency=low
     2
     3  * Eager loading of relations for better performance.
     4
     5 -- Eric Price <ecprice@pseudomyrmex.mit.edu>  Mon, 02 Jun 2008 01:39:11 -0400
     6
    17sipb-xen-database (10.8) unstable; urgency=low
    28
  • 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.