[Erp5-report] r23332 - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Sep 2 11:34:14 CEST 2008
Author: vincent
Date: Tue Sep 2 11:34:13 2008
New Revision: 23332
URL: http://svn.erp5.org?rev=23332&view=rev
Log:
Use a hardcoded tag to prevent avtivity merge, instead of using SQLQueue. This caused a major performance hit (+10%) on unit tests execution duration.
Modified:
erp5/trunk/products/ERP5/Document/BusinessTemplate.py
Modified: erp5/trunk/products/ERP5/Document/BusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BusinessTemplate.py?rev=23332&r1=23331&r2=23332&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py Tue Sep 2 11:34:13 2008
@@ -869,10 +869,10 @@
# activites are finished, to make sure it is indexed in the end.
recursiveReindexObject = getattr(obj, 'recursiveReindexObject', None)
if recursiveReindexObject is not None:
- # XXX: Using SQLQueue to make sure this activity does not get
- # merged and dropped because of another existing
+ # XXX: Using an hardcoded tag to make sure this activity does not
+ # get merged and dropped because of another existing
# 'recursiveReindexObject' on same path.
- recursiveReindexObject(activate_kw={'activity': 'SQLQueue',
+ recursiveReindexObject(activate_kw={'tag': 'uid_preservation',
'after_method_id': 'unindexObject'})
# now put original order group
# we remove object not added in forms
More information about the Erp5-report
mailing list