Skip to content

Commit

Permalink
switch off stream idx lookup join by default before 25-1 (#13737)
Browse files Browse the repository at this point in the history
  • Loading branch information
gridnevvvit authored Jan 22, 2025
1 parent ffff404 commit 239f04b
Show file tree
Hide file tree
Showing 59 changed files with 5,887 additions and 2,657 deletions.
2 changes: 1 addition & 1 deletion ydb/core/kqp/ut/perf/kqp_query_perf_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ Y_UNIT_TEST_SUITE(KqpQueryPerf) {
if (settings.AppConfig.GetTableServiceConfig().GetEnableKqpDataQueryStreamIdxLookupJoin()) {
UNIT_ASSERT_VALUES_EQUAL(stats.query_phases().size(), 1);
} else if (settings.AppConfig.GetTableServiceConfig().GetEnableKqpDataQueryStreamLookup()) {
UNIT_ASSERT_VALUES_EQUAL(stats.query_phases().size(), 3);
UNIT_ASSERT_VALUES_EQUAL(stats.query_phases().size(), 2);
} else {
UNIT_ASSERT_VALUES_EQUAL(stats.query_phases().size(), 5);
}
Expand Down
2 changes: 1 addition & 1 deletion ydb/core/protos/table_service_config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ message TTableServiceConfig {
reserved 33; // optional bool EnableKqpDataQueryStreamPointLookup = 33 [default = false];
optional bool EnablePublishKqpProxyByRM = 34 [default = true];
optional bool EnableKqpScanQueryStreamIdxLookupJoin = 35 [default = false];
optional bool EnableKqpDataQueryStreamIdxLookupJoin = 49 [default = true];
optional bool EnableKqpDataQueryStreamIdxLookupJoin = 49 [default = false];
reserved 36; //optional bool EnablePredicateExtractForScanQueries = 36 [default = true];
reserved 37; //optional bool EnablePredicateExtractForDataQueries = 37 [default = true];
reserved 38; // optional bool EnableKqpImmediateEffects = 38 [default = true];
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@
"Key1",
"Key2"
],
"lookup_by": [
"Key1"
],
"type": "Lookup"
"type": "Scan"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@
"Key1",
"Key2"
],
"lookup_by": [
"Key1"
],
"type": "Lookup"
"type": "Scan"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@
"Key2",
"Value"
],
"lookup_by": [
"Key1",
"Key2"
],
"type": "Lookup"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@
"Key1",
"Key2"
],
"lookup_by": [
"Key1",
"Key2"
],
"type": "Lookup"
}
]
Expand All @@ -45,9 +41,6 @@
"Key",
"Value"
],
"lookup_by": [
"Key"
],
"type": "Lookup"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@
"Key2",
"Value"
],
"lookup_by": [
"Key1",
"Key2"
],
"type": "Lookup"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@
"Key2",
"Value"
],
"lookup_by": [
"Key1"
],
"type": "Lookup"
"type": "Scan"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@
"Key2",
"Value"
],
"lookup_by": [
"Key1",
"Key2"
],
"type": "Lookup"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@
"Key2",
"Value"
],
"lookup_by": [
"Key1",
"Key2"
],
"type": "Lookup"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@
"Key1",
"Key2"
],
"lookup_by": [
"Key1",
"Key2"
],
"type": "Lookup"
}
]
Expand All @@ -45,9 +41,6 @@
"Key",
"Value"
],
"lookup_by": [
"Key"
],
"type": "Lookup"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@
"columns": [
"Key"
],
"lookup_by": [
"Key"
],
"type": "Lookup"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@
"Key1",
"Key2"
],
"lookup_by": [
"Key1",
"Key2"
],
"type": "Lookup"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@
"Key1",
"Value"
],
"lookup_by": [
"Key1"
],
"type": "Lookup"
"type": "Scan"
}
]
},
Expand All @@ -43,9 +40,6 @@
"Key",
"Value"
],
"lookup_by": [
"Key"
],
"type": "Lookup"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@
"columns": [
"Key1"
],
"lookup_by": [
"Key1"
],
"type": "Lookup"
"type": "Scan"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@
"columns": [
"Key1"
],
"lookup_by": [
"Key1"
],
"type": "Lookup"
"type": "Scan"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@
"Key1",
"Value"
],
"lookup_by": [
"Key1"
],
"type": "Lookup"
"type": "Scan"
}
]
},
Expand All @@ -43,9 +40,6 @@
"Key",
"Value"
],
"lookup_by": [
"Key"
],
"type": "Lookup"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@
"Key1",
"Value"
],
"lookup_by": [
"Key1"
],
"type": "Lookup"
"type": "Scan"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@
"Key2",
"Value"
],
"lookup_by": [
"Key1",
"Key2"
],
"type": "Lookup"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@
"Key2",
"Value"
],
"lookup_by": [
"Key1",
"Key2"
],
"type": "Lookup"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@
"Key2",
"Value"
],
"lookup_by": [
"Key1",
"Key2"
],
"type": "Lookup"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@
"Key2",
"Value"
],
"lookup_by": [
"Key1",
"Key2"
],
"type": "Lookup"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@
"Key2",
"Value"
],
"lookup_by": [
"Key1",
"Key2"
],
"type": "Lookup"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@
"Fk2",
"Value"
],
"lookup_by": [
"Key1",
"Key2"
],
"type": "Lookup"
}
]
Expand All @@ -43,10 +39,7 @@
"Key1",
"Key2"
],
"lookup_by": [
"Fk2"
],
"type": "Lookup"
"type": "Scan"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@
},
{
"columns": [
"Fk21",
"Fk22",
"Key",
"Value"
],
"lookup_by": [
"Key"
],
"type": "Lookup"
Expand Down
Loading

0 comments on commit 239f04b

Please sign in to comment.