mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-25 18:34:32 +02:00
Don't bother with least_common if less than 10 values
This commit is contained in:
parent
d4b8d9e7a5
commit
61461b9881
1 changed files with 1 additions and 1 deletions
|
|
@ -1975,7 +1975,7 @@ class Table(Queryable):
|
|||
]
|
||||
if num_distinct <= common_limit:
|
||||
# No need to run the query if it will just return the results in revers order
|
||||
least_common = most_common[::-1]
|
||||
least_common = None
|
||||
else:
|
||||
least_common = [
|
||||
(r[0], r[1])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue