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
87fe1a95
Commit
87fe1a95
authored
Jul 24, 2010
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add todo, explaining what this function should really do
parent
33715661
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/Products/ZCatalog/CatalogReport.py
src/Products/ZCatalog/CatalogReport.py
+5
-0
No files found.
src/Products/ZCatalog/CatalogReport.py
View file @
87fe1a95
...
@@ -29,6 +29,11 @@ def determine_value_indexes(catalog):
...
@@ -29,6 +29,11 @@ def determine_value_indexes(catalog):
# This function determines all indexes whose values should be respected
# 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
# in the report key. The number of unique values for the index needs to be
# lower than the MAX_DISTINCT_VALUES watermark.
# 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.
valueindexes
=
[]
valueindexes
=
[]
for
name
,
index
in
catalog
.
indexes
.
items
():
for
name
,
index
in
catalog
.
indexes
.
items
():
if
IUniqueValueIndex
.
providedBy
(
index
):
if
IUniqueValueIndex
.
providedBy
(
index
):
...
...
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