Commit c9c5262b authored by Vincent Pelletier's avatar Vincent Pelletier

Use a hardcoded tag to prevent avtivity merge, instead of using SQLQueue. This...

Use a hardcoded tag to prevent avtivity merge, instead of using SQLQueue. This caused a major performance hit (+10%) on unit tests execution duration.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23332 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 56c49ed3
......@@ -869,10 +869,10 @@ class ObjectTemplateItem(BaseTemplateItem):
# 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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment