Commit 87b4c56
authored
REP-6503 Avoid $type in partition queries unless needed (#129)
The $type checks that REP-6129 (PR #118) added to fix type bracketing have impeded performance against 4.4 clusters.
This changeset makes partition queries use $type only when the range requires it, which should only be true for a handful of partitions anyhow. The queries are simplified, too, so that instead of ANDing together predicates like `_id >= 12 OR $type in ["string", "symbol", ...])` and `id <= 99 OR $type in ["null", "minkey"]` we just have a single $type invocation (if it’s even there, which it usually won’t be now).
The existing checks for type-bracketing accommodation are expanded a bit here as well.1 parent 1f1a5a1 commit 87b4c56
File tree
7 files changed
+572
-503
lines changed- internal
- partitions
- verifier
- mslices
7 files changed
+572
-503
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
| 88 | + | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
0 commit comments