Commit 5e7c07dd authored by Łukasz Nowak's avatar Łukasz Nowak

Minimise transaction size.

parent cf15c227
......@@ -70,8 +70,9 @@ portal = context.getPortalObject()\n
kw[\'portal_type\'] = portal.getPortalOpenOrderTypeList()\n
\n
portal.portal_catalog.searchAndActivate(\n
method_id=\'OpenOrder_updateSimulation\', # XXX: OpenOrder_updateSimulation can generate big transaction...\n
method_id=\'OpenOrder_updateSimulation\',\n
method_kw={\'activity\': False},\n
packet_size=1, # As OpenOrder_updateSimulation can generate big transaction separate the calls\n
activate_kw={\'tag\':tag},\n
**kw # XXX: In one query put parents of last modified lines\n
)\n
......
107
\ No newline at end of file
108
\ No newline at end of file
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