You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 001b112
Browse filesBrowse the repository at this point in the historyBrowse files
// Cap keys per dispatched query: each key is another operation for the db to fetch, and simply fetching all keys at once can be too much for the db to handle.
80
80
exportconstGET_ALL_KEY_VALUES_CHUNK_SIZE=100;
81
81
82
-
// Tokens a text index values lookup reads per key. The dictionary is sorted,
83
-
// so a key with more distinct values than this gets the most frequent among
84
-
// its alphabetically first ones. Keep it above "Load more"'s 10,000 values.
82
+
// Distinct values a text index values lookup reads per key. The dictionary is
83
+
// sorted, so a key with more than this gets the most frequent among its
84
+
// alphabetically first ones. Keep it above "Load more"'s 10,000 values.
85
85
constTEXT_INDEX_TOKENS_PER_KEY=20_000;
86
+
87
+
// mergeTreeTextIndex returns one row per part and token, so a value in every
88
+
// part read takes maxParts rows; scaling the LIMIT by maxParts keeps room for
89
+
// TEXT_INDEX_TOKENS_PER_KEY distinct values. A read of every part ("Load
0 commit comments