# HG changeset patch # User Dirk Olmes # Date 1274145120 -7200 # Node ID b535bce50626dd5808c4733fc9d60360d94c7e5b # Parent 8cca4585eb33424eca6fb65637baacc9d425e3f1 the relationship between feed and its entries can be mapped as lazy -> fewer DB round trips diff -r 8cca4585eb33 -r b535bce50626 Mapping.py --- a/Mapping.py Tue May 18 02:58:31 2010 +0200 +++ b/Mapping.py Tue May 18 03:12:00 2010 +0200 @@ -62,7 +62,7 @@ mapper(FeedEntry, feedEntryTable) mapper(Feed, feedTable, properties = { - "entries" : relation(FeedEntry, backref="feed") + "entries" : relation(FeedEntry, backref="feed", lazy=True) } ) mapper(Preference, preferencesTable)