Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
c6469f68
Commit
c6469f68
authored
Mar 25, 2009
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Launchpad #348223: optimize catalog query by breaking out early from loop
over indexes if the result set is already empty.
parent
2d4af144
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
doc/CHANGES.rst
doc/CHANGES.rst
+5
-2
src/Products/ZCatalog/Catalog.py
src/Products/ZCatalog/Catalog.py
+4
-1
No files found.
doc/CHANGES.rst
View file @
c6469f68
...
...
@@ -35,7 +35,10 @@ Restructuring
Bugs Fixed
++++++++++
- Launchpad#344098: in ``skel/etc/zope.conf.ing``, replaced commented-out
- Launchpad #348223: optimize catalog query by breaking out early from loop
over indexes if the result set is already empty.
- Launchpad #344098: in ``skel/etc/zope.conf.ing``, replaced commented-out
``read-only-database`` option, which is deprecated, with pointers to the
appropos sections of ZODB's ``component.xml``. Updated the description
of the ``zserver-read-only-mode`` directive to indicate its correct
...
...
@@ -187,7 +190,7 @@ Features added
Bugs Fixed
++++++++++
- Launchpad #
#
332168: Connection.py: do not expose DB connection strings
- Launchpad #332168: Connection.py: do not expose DB connection strings
through exceptions
- Specified height/width of icons in ZMI listings so the table doesn't
...
...
src/Products/ZCatalog/Catalog.py
View file @
c6469f68
##############################################################################
#
# Copyright (c) 2002 Zope Corporation and Contributors. All Rights Reserved.
...
...
@@ -477,7 +478,9 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base):
if
r
is
not
None
:
r
,
u
=
r
w
,
rs
=
weightedIntersection
(
rs
,
r
)
if
not
rs
:
break
if
rs
is
None
:
# None of the indexes found anything to do with the request
# We take this to mean that the query was empty (an empty filter)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment