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
fdb6a1a7
Commit
fdb6a1a7
authored
Aug 01, 2010
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Obey the max line length limit
parent
60de6f12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
src/Products/ZCatalog/plan.py
src/Products/ZCatalog/plan.py
+10
-10
No files found.
src/Products/ZCatalog/plan.py
View file @
fdb6a1a7
...
...
@@ -50,19 +50,19 @@ class ValueIndexes(object):
@
classmethod
def
determine
(
cls
,
indexes
):
# This function determines all indexes whose values should be respected
# in the report key. The number of unique values for the index needs to
be
# lower than the MAX_DISTINCT_VALUES watermark.
# in the report key. The number of unique values for the index needs to
#
be
lower than the MAX_DISTINCT_VALUES watermark.
# TODO: Ideally who would only consider those indexes with a small
number
#
of unique values, where the number of items for each value differs a
#
lot. If the number of items per value is similar, the duration of a
# query is likely similar as well.
# TODO: Ideally who would only consider those indexes with a small
#
number of unique values, where the number of items for each value
#
differs a lot. If the number of items per value is similar, the
#
duration of a
query is likely similar as well.
value_indexes
=
cls
.
get
()
if
value_indexes
:
# Calculating all the value indexes is quite slow, so we do this
once
#
for the first query. Since this is an optimization only, slightly
#
outdated results based on index changes in the running process
# can be ignored.
# Calculating all the value indexes is quite slow, so we do this
#
once for the first query. Since this is an optimization only,
#
slightly outdated results based on index changes in the running
#
process
can be ignored.
return
value_indexes
value_indexes
=
set
()
...
...
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