Commit 9ab9cf67 authored by Romain Courteaud's avatar Romain Courteaud

Prevent useless JOIN

parent 6ec01db3
...@@ -1011,11 +1011,11 @@ class SlapTool(BaseTool): ...@@ -1011,11 +1011,11 @@ class SlapTool(BaseTool):
state_list.extend(portal.getPortalTransitInventoryStateList()) state_list.extend(portal.getPortalTransitInventoryStateList())
if slave_reference is not None: if slave_reference is not None:
query = ComplexQuery(Query(aggregate_reference=slave_reference), query = ComplexQuery(Query(aggregate_reference=slave_reference),
Query(aggregate_relative_url=computer_partition_document.getRelativeUrl()), Query(default_aggregate_uid=computer_partition_document.getUid()),
operator="AND") operator="AND")
else: else:
query = ComplexQuery(Query(aggregate_portal_type="Software Instance"), query = ComplexQuery(Query(aggregate_portal_type="Software Instance"),
Query(aggregate_relative_url=computer_partition_document.getRelativeUrl()), Query(default_aggregate_uid=computer_partition_document.getUid()),
operator="AND") operator="AND")
# Use getTrackingList # Use getTrackingList
......
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