File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 5
5
ISSUE: https://github.com/FirebirdSQL/firebird/issues/8104
6
6
TITLE: Inefficient evaluation of expressions like rdb$db_key <= ? after mass delete
7
7
DESCRIPTION:
8
+ Test does actions described in the ticket but operates with first PP of table instead of 20th
9
+ (see variable 'chk_pp').
10
+ Following query is performed two times (see variable 'read_records_for_chk_pp'):
11
+ =========
12
+ select ...
13
+ from t1
14
+ where
15
+ rdb$db_key >= make_dbkey({rel_id}, 0, 0, {chk_pp})
16
+ and rdb$db_key < make_dbkey({rel_id}, 0, 0, {chk_pp+1})
17
+ =========
18
+ We compare number of fetches in this query before and after bulk deletion ('fetches_1', 'fetches_2').
19
+ Value 'fetches_2' must be LESS than 'fetches_1' (before fix it was much greater).
8
20
NOTES:
9
21
[08.05.2024] pzotov
10
- Confirmed problem on 6.0.0.344, 5.0.1.1394, 4.0.5.3091 (request #1: 47643; request #2: 115943).
22
+ Confirmed problem on 6.0.0.344, 5.0.1.1394, 4.0.5.3091 (fetches in request #1: 47643; in request #2: 115943).
11
23
Checked on 6.0.0.345, 5.0.1.1395, 4.0.5.3092 (fetches in req #2 LESS than in req #1).
12
24
"""
13
25
You can’t perform that action at this time.
0 commit comments