[Zope-Checkins] SVN: Zope/trunk/src/Products/ZCatalog/plan.py Obey the max line length limit
Hanno Schlichting
hannosch at hannosch.eu
Sun Aug 1 18:16:11 EDT 2010
Log message for revision 115360:
Obey the max line length limit
Changed:
U Zope/trunk/src/Products/ZCatalog/plan.py
-=-
Modified: Zope/trunk/src/Products/ZCatalog/plan.py
===================================================================
--- Zope/trunk/src/Products/ZCatalog/plan.py 2010-08-01 22:14:58 UTC (rev 115359)
+++ Zope/trunk/src/Products/ZCatalog/plan.py 2010-08-01 22:16:11 UTC (rev 115360)
@@ -50,19 +50,19 @@
@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()
More information about the Zope-Checkins
mailing list