Commit f7186d99 authored by Romain Courteaud's avatar Romain Courteaud

Add some performance issue comments.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13447 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c70269a3
...@@ -149,6 +149,8 @@ class Order(Delivery): ...@@ -149,6 +149,8 @@ class Order(Delivery):
""" """
Reindex children and simulation Reindex children and simulation
""" """
# XXX Fixme: recursiveReindexObject is called during object creation
# It makes object creation slow, because it calls the catalog each time
# Now the applied rule is expanded # Now the applied rule is expanded
Delivery.recursiveReindexObject(self, activate_kw=activate_kw, *k, **kw) Delivery.recursiveReindexObject(self, activate_kw=activate_kw, *k, **kw)
self.expandAppliedRuleRelatedToOrder(activate_kw=activate_kw, **kw) self.expandAppliedRuleRelatedToOrder(activate_kw=activate_kw, **kw)
...@@ -158,6 +160,7 @@ class Order(Delivery): ...@@ -158,6 +160,7 @@ class Order(Delivery):
Expand the applied rule related Expand the applied rule related
""" """
applied_rule = None applied_rule = None
# XXX getCausalityRelatedValueList can use portal_type parameter
order_causality_list = self.getCausalityRelatedValueList() order_causality_list = self.getCausalityRelatedValueList()
for order_causality in order_causality_list: for order_causality in order_causality_list:
if order_causality.getPortalType() == 'Applied Rule': if order_causality.getPortalType() == 'Applied Rule':
......
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