Commit fdb6a1a7 authored by Hanno Schlichting's avatar Hanno Schlichting

Obey the max line length limit

parent 60de6f12
...@@ -50,19 +50,19 @@ class ValueIndexes(object): ...@@ -50,19 +50,19 @@ class ValueIndexes(object):
@classmethod @classmethod
def determine(cls, indexes): def determine(cls, indexes):
# 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
# lower than the MAX_DISTINCT_VALUES watermark. # be lower than the MAX_DISTINCT_VALUES watermark.
# TODO: Ideally who would only consider those indexes with a small number # TODO: Ideally who would only consider those indexes with a small
# of unique values, where the number of items for each value differs a # number of unique values, where the number of items for each value
# lot. If the number of items per value is similar, the duration of a # differs a lot. If the number of items per value is similar, the
# query is likely similar as well. # duration of a query is likely similar as well.
value_indexes = cls.get() value_indexes = cls.get()
if value_indexes: if value_indexes:
# Calculating all the value indexes is quite slow, so we do this once # Calculating all the value indexes is quite slow, so we do this
# for the first query. Since this is an optimization only, slightly # once for the first query. Since this is an optimization only,
# outdated results based on index changes in the running process # slightly outdated results based on index changes in the running
# can be ignored. # process can be ignored.
return value_indexes return value_indexes
value_indexes = set() value_indexes = set()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment