Commit bee7f90
151409: opt: estimate worst-case selectivity of placeholder equalities r=mgartner a=mgartner
Previously, we calculated the selectivity of placeholder equality
filters, e.g., `x = $1`, using the distinct count of a column and total
row count. This represented an average-case selectivity.
Now, we instead estimate the worst-case selectivity using the maximum
frequency of the histogram of the constrained column. This helps avoid
choosing a generic query plan under `plan_cache_mode=auto` that performs
poorly for heavy-hitter placeholder values.
Fixes #151373
Informs #148703
Release note (performance improvement): The cost of generic query plans
is now calculated based on worst-case selectivities for placeholder
equalities (e.g., x = $1). This reduces the chance of suboptimal generic
query plans being chosen when `plan_cache_mode=auto`.
154684: backup: split up the multiregion datadriven test r=jeffswenson a=jeffswenson
This splits up the multiregion datadriven test so that each test has at most 2 clusters in it. We've been seeing some stuck server shutdowns and this should make them easier to troubleshoot.
Release note: none
Informs: #145079
154687: backup: improve datadriven test cleanup r=jeffswenson a=jeffswenson
Previously, the datadriven test harness would tear down clusters in order. This makes it difficult to troubleshoot stuck tear downs because there are goroutines for a running server mixed in with goroutines for a server with a stuck shutdown.
Release note: none
Informs: #145079
154722: kvserver: add subsume.locks_written metric r=arulajmani a=stevendanna
The new subsume.locks_written metric tracks how many locks are moved
from the in-memory lock table to the replicated lock table during a
SubsumeRequest.
While here, I updated some log lines and added some assertions to
existing tests to make sure we were seeing non-zero values for both the
new metric and lease.transfer.locks_written.
Epic: none
Release note: None
154752: sql/schemachanger: fix incorrect filter for pk index swaps r=fqazi a=fqazi
Previously, we adjusted the schema changer rules to ensure that
old secondary indexes are only dropped when the new secondary index is
usable. Unfortunately, one of the rules had an incorrect filter. To
address this, this patch fixes the filter to expect the new secondary
index, which will have the new flag. Additionally, the index recreation
logic for ALTER PRIMARY KEY was delaying when the new secondary indexes
could be made public.
Fixes: #154751
Release note: None
154870: changefeedccl: make bulk delivery of rangefeed events optional r=aerfrei a=asg0451
This is a temporary opt-out until we can properly test the performance
impact of bulk delivery.
Epic: none
Release note (general change): The changefeed bulk
delivery setting was made optional.
154883: roachtest: increase closed TS lag in copyfrom roachtest r=yuzefovich a=yuzefovich
The atomic COPY writes the whole thing as a single txn, and we've seen cases where this txn can be on the order of 2 minutes. We've already increased the closed TS target duration to 60s, but that means that the closed TS system could push the COPY txn. To avoid this kind of flake we bump the target duration to 5 minutes.
Fixes: #153927.
Release note: None
Co-authored-by: Marcus Gartner <[email protected]>
Co-authored-by: Jeff Swenson <[email protected]>
Co-authored-by: Steven Danna <[email protected]>
Co-authored-by: Faizan Qazi <[email protected]>
Co-authored-by: Miles Frankel <[email protected]>
Co-authored-by: Yahor Yuzefovich <[email protected]>
File tree
126 files changed
+4553
-3031
lines changed- docs/generated/metrics
- pkg
- backup
- testdata/backup-restore
- ccl
- changefeedccl
- changefeedbase
- kvfeed
- schemachangerccl/testdata/end_to_end/alter_table_alter_primary_key_rbr
- cmd/roachtest/tests
- kv/kvserver
- batcheval
- result
- sql
- opt
- exec/execbuilder/testdata
- memo
- testdata/stats
- ops
- props
- xform
- rules
- testdata
- coster
- external
- rules
- schemachanger
- scbuild/internal/scbuildstmt
- scplan/internal/rules/current
- testdata
- testdata/end_to_end
- alter_table_add_primary_key_drop_rowid_with_secondary_idx
- alter_table_alter_primary_key_drop_rowid_with_idx
- alter_table_alter_primary_key_using_hash
- alter_table_alter_primary_key_vanilla
- truncate
- testutils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
126 files changed
+4553
-3031
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17498 | 17498 | | |
17499 | 17499 | | |
17500 | 17500 | | |
| 17501 | + | |
| 17502 | + | |
| 17503 | + | |
| 17504 | + | |
| 17505 | + | |
| 17506 | + | |
| 17507 | + | |
| 17508 | + | |
17501 | 17509 | | |
17502 | 17510 | | |
17503 | 17511 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
94 | | - | |
| 95 | + | |
| 96 | + | |
95 | 97 | | |
96 | | - | |
97 | | - | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | 110 | | |
112 | 111 | | |
113 | 112 | | |
| |||
120 | 119 | | |
121 | 120 | | |
122 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
123 | 126 | | |
124 | 127 | | |
125 | 128 | | |
126 | 129 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
132 | 140 | | |
| 141 | + | |
| 142 | + | |
133 | 143 | | |
134 | 144 | | |
135 | 145 | | |
| |||
223 | 233 | | |
224 | 234 | | |
225 | 235 | | |
226 | | - | |
227 | 236 | | |
228 | | - | |
| 237 | + | |
229 | 238 | | |
230 | 239 | | |
231 | 240 | | |
| |||
262 | 271 | | |
263 | 272 | | |
264 | 273 | | |
265 | | - | |
| 274 | + | |
266 | 275 | | |
267 | 276 | | |
268 | 277 | | |
269 | 278 | | |
270 | 279 | | |
271 | 280 | | |
272 | 281 | | |
273 | | - | |
| 282 | + | |
274 | 283 | | |
275 | 284 | | |
276 | 285 | | |
| |||
956 | 965 | | |
957 | 966 | | |
958 | 967 | | |
959 | | - | |
| 968 | + | |
960 | 969 | | |
961 | 970 | | |
962 | 971 | | |
| |||
1037 | 1046 | | |
1038 | 1047 | | |
1039 | 1048 | | |
1040 | | - | |
| 1049 | + | |
1041 | 1050 | | |
1042 | 1051 | | |
1043 | 1052 | | |
| |||
Lines changed: 86 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
Lines changed: 57 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
0 commit comments