changeset 54:b535bce50626

the relationship between feed and its entries can be mapped as lazy -> fewer DB round trips
author Dirk Olmes <dirk@xanthippe.ping.de>
date Tue, 18 May 2010 03:12:00 +0200
parents 8cca4585eb33
children 0f9b3e57cff0
files Mapping.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)