commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

r6462 - in trunk/gnue-appserver/src: . gcd


From: johannes
Subject: r6462 - in trunk/gnue-appserver/src: . gcd
Date: Thu, 7 Oct 2004 08:07:27 -0500 (CDT)

Author: johannes
Date: 2004-10-07 08:07:26 -0500 (Thu, 07 Oct 2004)
New Revision: 6462

Modified:
   trunk/gnue-appserver/src/data.py
   trunk/gnue-appserver/src/gcd/readgcd.py
Log:
Use the primarykey attribute to speed up UPDATEs (this fixes some interbase 
issues too)


Modified: trunk/gnue-appserver/src/data.py
===================================================================
--- trunk/gnue-appserver/src/data.py    2004-10-07 12:24:07 UTC (rev 6461)
+++ trunk/gnue-appserver/src/data.py    2004-10-07 13:07:26 UTC (rev 6462)
@@ -261,6 +261,7 @@
   attributes ['name']      = ''
   attributes ['database']  = database
   attributes ['table']     = string.join (tables, ', ')
+  attributes ['primarykey'] = 'gnue_id'
 
   # give the backend a hint that it's working for appserver :)
   datacon = connections.getConnection (database)

Modified: trunk/gnue-appserver/src/gcd/readgcd.py
===================================================================
--- trunk/gnue-appserver/src/gcd/readgcd.py     2004-10-07 12:24:07 UTC (rev 
6461)
+++ trunk/gnue-appserver/src/gcd/readgcd.py     2004-10-07 13:07:26 UTC (rev 
6462)
@@ -413,9 +413,10 @@
 
   def __openSource (self, classname, fieldList):
     return GDataSource.DataSourceWrapper (connections = self.connections,
-        attributes = {'name': "dts_%s" % classname,
-                      'database': self.OPTIONS ['connection'],
-                      'table': classname},
+        attributes = {'name'      : "dts_%s" % classname,
+                      'database'  : self.OPTIONS ['connection'],
+                      'table'     : classname,
+                      'primarykey': 'gnue_id'},
         fields = fieldList, unicodeMode = True)
 
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]