_apply_index with multiunion
Bug #143378 reported by
Bug Importer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Fix Released
|
Low
|
Unassigned |
Bug Description
Unindex.
for 'or' operator may be usefull
def multiunion( seq ):
if not len(seq):
return seq
return reduce( union, seq )
To post a comment you must log in.
This probably applies to the lines:
for k, set in setlist:
if isinstance(set, int):
set = IISet((set,))
r = set_func(r, set)
If this is a range search and the "if operator=="or": set_func = union" has been set, this could do a multiunion instead of a for loop and a union.