Skip to content

Conversation

@bobhan1
Copy link
Contributor

@bobhan1 bobhan1 commented Aug 20, 2025

What problem does this PR solve?

This PR let mow load use delete bitmap cache if possible when lookup row key to reduce CPU usage.

Add 2 configs enable_prefill_output_dbm_agg_cache_after_compaction/enable_prefill_all_dbm_agg_cache_after_compaction(default true) to control whether to fresh delete bitmap cache on corresponding rowsets after compaction.

Release note

None

Check List (For Author)

  • Test

    • Regression test
    • Unit Test
    • Manual test (add detailed scripts or steps below)
    • No need to test or manual test. Explain why:
      • This is a refactor/code format and no logic has been changed.
      • Previous test can cover this change.
      • No code files have been changed.
      • Other reason
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

@Thearas
Copy link
Contributor

Thearas commented Aug 20, 2025

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@bobhan1 bobhan1 force-pushed the opt-mow-load-dbm-contains branch from d98c449 to b9c5284 Compare August 20, 2025 11:00
@bobhan1
Copy link
Contributor Author

bobhan1 commented Aug 20, 2025

run buildall

dataroaring
dataroaring previously approved these changes Aug 20, 2025
Copy link
Contributor

@dataroaring dataroaring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Aug 20, 2025
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@doris-robot
Copy link

TPC-H: Total hot run time: 34339 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit b9c52849ff79bda7efd1cacd9407d69014054e40, data reload: false

------ Round 1 ----------------------------------
q1	17592	5228	5111	5111
q2	1931	297	183	183
q3	10289	1277	739	739
q4	10240	1038	535	535
q5	7501	2371	2411	2371
q6	182	161	129	129
q7	904	739	614	614
q8	9305	1327	1135	1135
q9	6954	5166	5330	5166
q10	6918	2389	1969	1969
q11	480	284	286	284
q12	351	348	222	222
q13	17785	3665	3061	3061
q14	229	237	215	215
q15	553	478	491	478
q16	412	426	382	382
q17	598	871	375	375
q18	7464	7172	7141	7141
q19	1098	948	589	589
q20	344	331	219	219
q21	4215	3393	2442	2442
q22	1092	1017	979	979
Total cold run time: 106437 ms
Total hot run time: 34339 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5197	5144	5180	5144
q2	244	324	225	225
q3	2161	2744	2314	2314
q4	1420	1832	1347	1347
q5	4301	4641	4514	4514
q6	220	172	131	131
q7	2055	1983	1742	1742
q8	2635	2593	2527	2527
q9	7504	7404	7363	7363
q10	3078	3363	2920	2920
q11	566	508	518	508
q12	669	785	625	625
q13	3836	3822	3395	3395
q14	286	295	292	292
q15	526	504	490	490
q16	462	501	443	443
q17	1232	1632	1399	1399
q18	7882	7836	7467	7467
q19	870	903	1089	903
q20	1936	1946	1893	1893
q21	4842	4368	4277	4277
q22	1078	1060	1024	1024
Total cold run time: 53000 ms
Total hot run time: 50943 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 185719 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit b9c52849ff79bda7efd1cacd9407d69014054e40, data reload: false

query1	1007	405	424	405
query2	6545	1696	1739	1696
query3	6751	218	220	218
query4	26291	23684	23371	23371
query5	4261	634	480	480
query6	302	230	216	216
query7	4631	508	292	292
query8	282	238	231	231
query9	8576	2899	2887	2887
query10	476	352	291	291
query11	16001	15037	14840	14840
query12	173	120	114	114
query13	1673	572	424	424
query14	8739	5893	5861	5861
query15	217	190	164	164
query16	7269	631	481	481
query17	1234	733	603	603
query18	1989	440	326	326
query19	200	198	177	177
query20	128	118	114	114
query21	216	121	113	113
query22	4153	4146	4078	4078
query23	34120	33290	33289	33289
query24	8144	2380	2355	2355
query25	525	481	396	396
query26	893	271	208	208
query27	2673	501	338	338
query28	4302	2233	2202	2202
query29	718	555	446	446
query30	286	242	195	195
query31	898	792	751	751
query32	85	74	76	74
query33	551	369	343	343
query34	779	852	530	530
query35	798	806	733	733
query36	956	1005	898	898
query37	123	103	84	84
query38	4132	3987	4009	3987
query39	1472	1413	1417	1413
query40	221	125	112	112
query41	60	57	56	56
query42	117	111	110	110
query43	524	508	482	482
query44	1389	861	852	852
query45	177	171	165	165
query46	883	1006	658	658
query47	1750	1800	1705	1705
query48	400	427	319	319
query49	664	460	407	407
query50	673	689	416	416
query51	4080	4090	4204	4090
query52	112	112	104	104
query53	237	274	196	196
query54	602	618	527	527
query55	91	89	89	89
query56	327	300	303	300
query57	1193	1179	1137	1137
query58	283	267	265	265
query59	2554	2677	2578	2578
query60	354	336	328	328
query61	141	119	122	119
query62	831	718	684	684
query63	230	190	191	190
query64	3503	1029	691	691
query65	4345	4252	4180	4180
query66	1028	416	324	324
query67	15430	15420	15091	15091
query68	8149	953	579	579
query69	492	320	286	286
query70	1215	1165	1153	1153
query71	468	343	315	315
query72	5775	4839	4893	4839
query73	762	643	356	356
query74	9170	8806	8911	8806
query75	3834	3103	2613	2613
query76	3635	1150	753	753
query77	786	406	330	330
query78	9700	9734	8887	8887
query79	2098	793	582	582
query80	619	535	452	452
query81	479	259	220	220
query82	448	137	109	109
query83	262	254	241	241
query84	255	109	83	83
query85	800	414	333	333
query86	342	306	308	306
query87	4296	4238	4198	4198
query88	3100	2201	2171	2171
query89	380	320	280	280
query90	1923	228	228	228
query91	145	140	113	113
query92	86	75	65	65
query93	1096	957	640	640
query94	676	402	326	326
query95	393	315	315	315
query96	486	569	275	275
query97	2639	2698	2573	2573
query98	241	214	211	211
query99	1448	1412	1282	1282
Total cold run time: 270966 ms
Total hot run time: 185719 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 32.23 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit b9c52849ff79bda7efd1cacd9407d69014054e40, data reload: false

query1	0.05	0.04	0.04
query2	0.08	0.04	0.05
query3	0.25	0.08	0.07
query4	1.61	0.11	0.12
query5	0.44	0.44	0.40
query6	1.17	0.63	0.66
query7	0.02	0.02	0.02
query8	0.05	0.04	0.04
query9	0.60	0.52	0.51
query10	0.58	0.56	0.56
query11	0.16	0.11	0.11
query12	0.15	0.11	0.11
query13	0.62	0.62	0.61
query14	0.81	0.81	0.83
query15	0.86	0.89	0.86
query16	0.39	0.38	0.39
query17	1.02	1.02	1.01
query18	0.21	0.20	0.19
query19	1.92	1.83	1.87
query20	0.02	0.01	0.01
query21	15.41	0.95	0.57
query22	0.78	1.39	0.95
query23	14.72	1.42	0.64
query24	6.94	1.02	0.34
query25	0.41	0.23	0.10
query26	0.68	0.16	0.13
query27	0.06	0.05	0.05
query28	8.66	0.94	0.43
query29	12.58	3.91	3.25
query30	3.12	2.96	2.94
query31	2.83	0.57	0.38
query32	3.24	0.56	0.48
query33	3.03	3.18	3.02
query34	16.03	5.46	4.87
query35	4.90	4.90	4.92
query36	0.69	0.51	0.50
query37	0.10	0.07	0.07
query38	0.05	0.04	0.04
query39	0.03	0.02	0.02
query40	0.17	0.14	0.14
query41	0.08	0.03	0.03
query42	0.04	0.02	0.02
query43	0.04	0.03	0.02
Total cold run time: 105.6 s
Total hot run time: 32.23 s

@hello-stephen
Copy link
Contributor

BE UT Coverage Report

Increment line coverage 17.58% (29/165) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 59.55% (16779/28177)
Line Coverage 48.48% (152649/314844)
Region Coverage 37.45% (116003/309751)
Branch Coverage 40.37% (51231/126912)

@hello-stephen
Copy link
Contributor

BE Regression && UT Coverage Report

Increment line coverage 29.09% (48/165) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 64.98% (17941/27609)
Line Coverage 54.34% (171009/314681)
Region Coverage 42.13% (132801/315219)
Branch Coverage 45.12% (57703/127875)

@bobhan1
Copy link
Contributor Author

bobhan1 commented Aug 21, 2025

run buildall

@github-actions github-actions bot removed the approved Indicates a PR has been approved by one committer. label Aug 21, 2025
@doris-robot
Copy link

TPC-H: Total hot run time: 34071 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit f3c83f8a13a1d0e0c984966ac45b9ad5202f8614, data reload: false

------ Round 1 ----------------------------------
q1	17613	5254	5088	5088
q2	1903	314	178	178
q3	10309	1264	732	732
q4	10210	1021	502	502
q5	7526	2401	2324	2324
q6	179	158	136	136
q7	923	753	604	604
q8	9289	1315	1151	1151
q9	6963	5114	5129	5114
q10	6913	2356	1955	1955
q11	475	286	261	261
q12	338	353	214	214
q13	17760	3634	3169	3169
q14	228	240	210	210
q15	543	468	495	468
q16	427	421	378	378
q17	604	862	365	365
q18	7981	7141	7181	7141
q19	1090	970	558	558
q20	335	343	219	219
q21	3722	2571	2333	2333
q22	1084	1024	971	971
Total cold run time: 106415 ms
Total hot run time: 34071 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5158	5115	5102	5102
q2	243	332	220	220
q3	2204	2710	2334	2334
q4	1350	1780	1343	1343
q5	4255	4403	4525	4403
q6	246	179	132	132
q7	2058	1946	1810	1810
q8	2649	2585	2545	2545
q9	7464	7310	7267	7267
q10	3117	3344	2893	2893
q11	582	505	500	500
q12	682	833	654	654
q13	3639	3893	3254	3254
q14	276	292	271	271
q15	517	497	476	476
q16	436	486	457	457
q17	1176	1927	1367	1367
q18	7687	7787	7694	7694
q19	832	815	806	806
q20	1901	1970	1859	1859
q21	4733	4403	4201	4201
q22	1092	1053	1006	1006
Total cold run time: 52297 ms
Total hot run time: 50594 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 184377 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit f3c83f8a13a1d0e0c984966ac45b9ad5202f8614, data reload: false

query1	1014	374	411	374
query2	6523	1763	1748	1748
query3	6745	215	224	215
query4	26272	23555	23170	23170
query5	4405	610	463	463
query6	303	199	205	199
query7	4622	496	283	283
query8	260	223	208	208
query9	8600	2848	2866	2848
query10	443	314	273	273
query11	15921	15066	14708	14708
query12	165	115	108	108
query13	1659	559	433	433
query14	8814	5916	5800	5800
query15	201	193	168	168
query16	7243	680	456	456
query17	1203	722	594	594
query18	1990	407	320	320
query19	192	192	167	167
query20	125	119	119	119
query21	215	125	106	106
query22	4128	4170	4057	4057
query23	34359	33352	33339	33339
query24	8088	2432	2349	2349
query25	537	467	397	397
query26	1244	273	160	160
query27	2728	510	341	341
query28	4367	2211	2198	2198
query29	795	554	499	499
query30	301	222	192	192
query31	892	822	699	699
query32	86	72	79	72
query33	538	386	337	337
query34	799	832	500	500
query35	777	836	739	739
query36	959	1022	918	918
query37	115	106	82	82
query38	4092	4016	3952	3952
query39	1460	1454	1383	1383
query40	214	126	119	119
query41	59	56	56	56
query42	121	107	109	107
query43	498	517	487	487
query44	1361	861	849	849
query45	180	164	170	164
query46	863	1013	634	634
query47	1752	1800	1709	1709
query48	375	417	309	309
query49	715	493	379	379
query50	641	676	390	390
query51	4067	4059	4031	4031
query52	115	109	98	98
query53	227	263	201	201
query54	607	589	533	533
query55	89	84	82	82
query56	324	309	294	294
query57	1194	1177	1104	1104
query58	284	264	271	264
query59	2753	2657	2523	2523
query60	343	336	324	324
query61	128	122	124	122
query62	815	700	657	657
query63	221	221	196	196
query64	4373	996	679	679
query65	4288	4209	4223	4209
query66	1214	405	326	326
query67	15336	15313	15031	15031
query68	8119	912	568	568
query69	475	328	286	286
query70	1269	1158	1110	1110
query71	447	320	311	311
query72	5310	4758	4629	4629
query73	708	574	355	355
query74	8956	8960	8670	8670
query75	3784	3083	2643	2643
query76	3660	1155	760	760
query77	783	416	313	313
query78	9711	9718	8823	8823
query79	2386	839	617	617
query80	592	537	548	537
query81	490	254	221	221
query82	356	132	107	107
query83	257	251	240	240
query84	252	101	88	88
query85	822	380	327	327
query86	396	319	315	315
query87	4264	4220	4135	4135
query88	3407	2285	2196	2196
query89	387	314	285	285
query90	1858	227	228	227
query91	141	139	112	112
query92	85	71	68	68
query93	1723	1021	635	635
query94	639	410	307	307
query95	401	314	305	305
query96	500	583	269	269
query97	2613	2696	2562	2562
query98	240	223	208	208
query99	1350	1392	1297	1297
Total cold run time: 272718 ms
Total hot run time: 184377 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 33.03 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit f3c83f8a13a1d0e0c984966ac45b9ad5202f8614, data reload: false

query1	0.04	0.03	0.03
query2	0.08	0.04	0.05
query3	0.23	0.07	0.08
query4	1.63	0.11	0.11
query5	0.42	0.40	0.39
query6	1.17	0.64	0.65
query7	0.02	0.01	0.02
query8	0.05	0.03	0.03
query9	0.59	0.53	0.51
query10	0.57	0.59	0.57
query11	0.16	0.11	0.11
query12	0.15	0.12	0.11
query13	0.63	0.60	0.61
query14	0.80	0.84	0.83
query15	0.86	0.86	0.86
query16	0.40	0.40	0.38
query17	1.07	1.07	1.04
query18	0.21	0.20	0.20
query19	1.90	1.90	1.86
query20	0.02	0.01	0.01
query21	15.39	0.97	0.58
query22	0.79	1.08	0.78
query23	14.93	1.36	0.63
query24	6.80	2.34	0.96
query25	0.51	0.26	0.23
query26	0.70	0.15	0.12
query27	0.07	0.05	0.05
query28	9.70	0.85	0.43
query29	12.60	3.96	3.30
query30	3.12	2.98	3.00
query31	2.82	0.58	0.39
query32	3.24	0.54	0.48
query33	3.11	3.18	3.14
query34	16.04	5.47	4.83
query35	4.92	4.90	5.02
query36	0.70	0.51	0.49
query37	0.10	0.07	0.07
query38	0.06	0.04	0.04
query39	0.03	0.03	0.02
query40	0.18	0.14	0.14
query41	0.08	0.04	0.02
query42	0.03	0.02	0.03
query43	0.04	0.03	0.03
Total cold run time: 106.96 s
Total hot run time: 33.03 s

@doris-robot
Copy link

BE UT Coverage Report

Increment line coverage 17.58% (29/165) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 59.55% (16779/28177)
Line Coverage 48.48% (152644/314844)
Region Coverage 37.45% (116015/309751)
Branch Coverage 40.36% (51228/126912)

@bobhan1
Copy link
Contributor Author

bobhan1 commented Aug 21, 2025

run p0

@bobhan1
Copy link
Contributor Author

bobhan1 commented Aug 21, 2025

run cloud_p0

@hello-stephen
Copy link
Contributor

BE Regression && UT Coverage Report

Increment line coverage 50.91% (84/165) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 81.44% (22485/27609)
Line Coverage 74.12% (233228/314681)
Region Coverage 61.86% (194997/315219)
Branch Coverage 66.02% (84426/127875)

@hello-stephen
Copy link
Contributor

BE Regression && UT Coverage Report

Increment line coverage 32.73% (54/165) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 65.47% (18075/27609)
Line Coverage 54.89% (172743/314681)
Region Coverage 42.85% (135077/315219)
Branch Coverage 45.78% (58546/127875)

1 similar comment
@hello-stephen
Copy link
Contributor

BE Regression && UT Coverage Report

Increment line coverage 32.73% (54/165) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 65.47% (18075/27609)
Line Coverage 54.89% (172743/314681)
Region Coverage 42.85% (135077/315219)
Branch Coverage 45.78% (58546/127875)

@bobhan1 bobhan1 force-pushed the opt-mow-load-dbm-contains branch from f3c83f8 to 2e85851 Compare September 2, 2025 02:56
@bobhan1
Copy link
Contributor Author

bobhan1 commented Sep 2, 2025

run buildall

@doris-robot
Copy link

TPC-H: Total hot run time: 34510 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 2e8585119e29f4094eb5a478c290c3658ba2ef99, data reload: false

------ Round 1 ----------------------------------
q1	17604	5280	5103	5103
q2	2005	372	212	212
q3	10192	1345	731	731
q4	10252	1041	527	527
q5	7550	2452	2393	2393
q6	188	174	141	141
q7	958	770	636	636
q8	9353	1343	1177	1177
q9	7037	5166	5250	5166
q10	6910	2412	1968	1968
q11	496	302	277	277
q12	354	370	253	253
q13	17767	3682	3055	3055
q14	251	253	245	245
q15	573	506	490	490
q16	440	433	377	377
q17	589	882	372	372
q18	7488	7199	7193	7193
q19	1226	959	583	583
q20	332	345	234	234
q21	3915	2547	2389	2389
q22	1086	1033	988	988
Total cold run time: 106566 ms
Total hot run time: 34510 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5169	5152	5149	5149
q2	256	334	234	234
q3	2209	2698	2317	2317
q4	1378	1805	1338	1338
q5	4255	4422	4683	4422
q6	230	182	153	153
q7	2102	1970	1844	1844
q8	2692	2681	2678	2678
q9	7643	7295	7436	7295
q10	3116	3442	2907	2907
q11	594	531	508	508
q12	707	804	664	664
q13	3504	4005	3247	3247
q14	294	307	310	307
q15	562	504	501	501
q16	479	509	452	452
q17	1216	1549	1417	1417
q18	7879	7837	7520	7520
q19	840	871	878	871
q20	1970	2093	1908	1908
q21	4993	4707	4256	4256
q22	1089	1012	1010	1010
Total cold run time: 53177 ms
Total hot run time: 50998 ms

@bobhan1 bobhan1 force-pushed the opt-mow-load-dbm-contains branch from de65dfb to 5a2c6f2 Compare September 4, 2025 11:25
@bobhan1
Copy link
Contributor Author

bobhan1 commented Sep 4, 2025

run buildall

@doris-robot
Copy link

TPC-H: Total hot run time: 34357 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 5a2c6f262dd4b3ef7cb7045e4150f2b43b8fae3a, data reload: false

------ Round 1 ----------------------------------
q1	17656	5243	5090	5090
q2	2039	347	210	210
q3	10228	1319	748	748
q4	10249	1032	535	535
q5	7539	2466	2394	2394
q6	189	170	139	139
q7	968	771	639	639
q8	9361	1346	1201	1201
q9	7061	5141	5117	5117
q10	6983	2398	1968	1968
q11	496	307	283	283
q12	383	364	227	227
q13	17779	3761	3092	3092
q14	235	237	228	228
q15	594	513	496	496
q16	439	446	398	398
q17	613	905	371	371
q18	7999	7049	7109	7049
q19	1092	961	561	561
q20	349	356	238	238
q21	3765	3228	2371	2371
q22	1071	1021	1002	1002
Total cold run time: 107088 ms
Total hot run time: 34357 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5143	5279	5122	5122
q2	260	357	229	229
q3	2226	2720	2294	2294
q4	1388	1762	1353	1353
q5	4257	4535	4692	4535
q6	218	172	137	137
q7	2035	1995	1866	1866
q8	2793	2717	2645	2645
q9	7351	7390	7328	7328
q10	3192	3349	2875	2875
q11	588	536	507	507
q12	745	862	678	678
q13	3633	4007	3442	3442
q14	303	314	274	274
q15	525	483	482	482
q16	469	520	495	495
q17	1212	1531	1421	1421
q18	7865	7808	7621	7621
q19	878	888	931	888
q20	2191	2032	1899	1899
q21	5076	4338	4440	4338
q22	1098	1031	1003	1003
Total cold run time: 53446 ms
Total hot run time: 51432 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 186808 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit 5a2c6f262dd4b3ef7cb7045e4150f2b43b8fae3a, data reload: false

query1	1040	473	407	407
query2	6597	1769	1717	1717
query3	6768	232	223	223
query4	26462	23094	23010	23010
query5	4393	648	517	517
query6	352	258	237	237
query7	4668	545	305	305
query8	314	265	256	256
query9	8664	2943	2915	2915
query10	499	392	323	323
query11	15760	15066	14770	14770
query12	180	128	129	128
query13	1687	557	440	440
query14	9170	5912	5904	5904
query15	213	191	175	175
query16	7318	684	502	502
query17	1251	775	649	649
query18	2050	454	359	359
query19	218	208	230	208
query20	136	123	122	122
query21	219	135	119	119
query22	4092	4161	4070	4070
query23	33957	33156	32973	32973
query24	8161	2407	2411	2407
query25	606	523	439	439
query26	833	278	169	169
query27	2721	518	361	361
query28	4341	2274	2258	2258
query29	739	606	492	492
query30	294	219	208	208
query31	925	808	756	756
query32	91	85	81	81
query33	581	396	358	358
query34	803	860	540	540
query35	816	824	765	765
query36	964	1016	940	940
query37	122	113	90	90
query38	4064	4044	4028	4028
query39	1549	1429	1479	1429
query40	227	134	132	132
query41	66	61	65	61
query42	128	124	119	119
query43	518	483	478	478
query44	1370	872	857	857
query45	184	174	171	171
query46	853	1052	665	665
query47	1780	1817	1733	1733
query48	397	449	322	322
query49	725	514	416	416
query50	655	691	399	399
query51	4146	4153	4078	4078
query52	122	114	110	110
query53	260	265	197	197
query54	631	600	540	540
query55	94	99	97	97
query56	345	337	328	328
query57	1213	1232	1208	1208
query58	295	286	290	286
query59	2641	2706	2605	2605
query60	359	344	350	344
query61	175	173	168	168
query62	820	735	688	688
query63	229	205	196	196
query64	3634	1169	894	894
query65	4338	4220	4209	4209
query66	1051	452	349	349
query67	15443	15228	15152	15152
query68	8788	928	597	597
query69	510	390	299	299
query70	1229	1166	1110	1110
query71	579	354	327	327
query72	5905	4988	5043	4988
query73	753	637	371	371
query74	9235	9049	8742	8742
query75	4197	3124	2630	2630
query76	3601	1175	750	750
query77	809	435	339	339
query78	9509	9684	8840	8840
query79	3384	853	577	577
query80	682	582	513	513
query81	548	254	219	219
query82	463	142	112	112
query83	293	263	245	245
query84	309	106	90	90
query85	883	460	423	423
query86	346	332	317	317
query87	4331	4396	4237	4237
query88	3024	2246	2252	2246
query89	451	332	293	293
query90	1940	227	222	222
query91	175	171	137	137
query92	91	78	71	71
query93	2496	994	632	632
query94	688	415	321	321
query95	422	336	323	323
query96	490	585	291	291
query97	2649	2700	2599	2599
query98	244	221	214	214
query99	1457	1444	1281	1281
Total cold run time: 276798 ms
Total hot run time: 186808 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 32.85 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 5a2c6f262dd4b3ef7cb7045e4150f2b43b8fae3a, data reload: false

query1	0.06	0.05	0.04
query2	0.08	0.05	0.05
query3	0.24	0.08	0.08
query4	1.60	0.11	0.12
query5	0.45	0.45	0.41
query6	1.17	0.64	0.67
query7	0.03	0.02	0.02
query8	0.06	0.05	0.04
query9	0.60	0.54	0.52
query10	0.57	0.59	0.59
query11	0.17	0.12	0.11
query12	0.16	0.12	0.12
query13	0.63	0.62	0.61
query14	0.80	0.86	0.83
query15	0.87	0.88	0.85
query16	0.41	0.40	0.39
query17	1.05	1.05	1.07
query18	0.24	0.19	0.20
query19	1.97	1.88	1.83
query20	0.02	0.02	0.01
query21	15.40	0.97	0.58
query22	0.76	1.20	0.66
query23	14.91	1.40	0.62
query24	6.43	1.84	0.94
query25	0.50	0.17	0.19
query26	0.49	0.16	0.12
query27	0.06	0.06	0.06
query28	10.50	0.91	0.43
query29	12.55	3.88	3.19
query30	3.09	3.00	2.95
query31	2.81	0.60	0.39
query32	3.24	0.57	0.47
query33	3.22	3.08	3.10
query34	15.88	5.49	4.90
query35	5.00	4.91	4.91
query36	0.70	0.52	0.50
query37	0.11	0.08	0.07
query38	0.06	0.05	0.04
query39	0.04	0.03	0.04
query40	0.18	0.15	0.15
query41	0.08	0.03	0.03
query42	0.04	0.03	0.03
query43	0.04	0.04	0.04
Total cold run time: 107.27 s
Total hot run time: 32.85 s

@hello-stephen
Copy link
Contributor

BE UT Coverage Report

Increment line coverage 17.58% (29/165) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 51.86% (17231/33224)
Line Coverage 37.27% (157223/421860)
Region Coverage 31.93% (120065/376073)
Branch Coverage 33.29% (52683/158259)

@hello-stephen
Copy link
Contributor

BE Regression && UT Coverage Report

Increment line coverage 43.64% (72/165) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 56.73% (18509/32624)
Line Coverage 42.08% (177399/421584)
Region Coverage 36.35% (138666/381460)
Branch Coverage 37.66% (59947/159159)

Copy link
Contributor

@dataroaring dataroaring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dataroaring dataroaring merged commit 2ac0f86 into apache:master Sep 5, 2025
24 of 26 checks passed
wenzhenghu pushed a commit to wenzhenghu/doris that referenced this pull request Sep 8, 2025
### What problem does this PR solve?

This PR let mow load use delete bitmap cache if possible when lookup row
key to reduce CPU usage.

Add 2 configs
`enable_prefill_output_dbm_agg_cache_after_compaction`/`enable_prefill_all_dbm_agg_cache_after_compaction`(default
true) to control whether to fresh delete bitmap cache on corresponding
rowsets after compaction.

### Release note

None

### Check List (For Author)

- Test <!-- At least one of them must be included. -->
    - [ ] Regression test
    - [ ] Unit Test
    - [ ] Manual test (add detailed scripts or steps below)
    - [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
        - [ ] Previous test can cover this change.
        - [ ] No code files have been changed.
        - [ ] Other reason <!-- Add your reason?  -->

- Behavior changed:
    - [ ] No.
    - [ ] Yes. <!-- Explain the behavior change -->

- Does this need documentation?
    - [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
apache/doris-website#1214 -->

### Check List (For Reviewer who merge this PR)

- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
wenzhenghu pushed a commit to wenzhenghu/doris that referenced this pull request Sep 8, 2025
bobhan1 added a commit to bobhan1/doris that referenced this pull request Sep 8, 2025
This PR let mow load use delete bitmap cache if possible when lookup row
key to reduce CPU usage.

Add 2 configs
`enable_prefill_output_dbm_agg_cache_after_compaction`/`enable_prefill_all_dbm_agg_cache_after_compaction`(default
true) to control whether to fresh delete bitmap cache on corresponding
rowsets after compaction.

None

- Test <!-- At least one of them must be included. -->
    - [ ] Regression test
    - [ ] Unit Test
    - [ ] Manual test (add detailed scripts or steps below)
    - [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
        - [ ] Previous test can cover this change.
        - [ ] No code files have been changed.
        - [ ] Other reason <!-- Add your reason?  -->

- Behavior changed:
    - [ ] No.
    - [ ] Yes. <!-- Explain the behavior change -->

- Does this need documentation?
    - [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
apache/doris-website#1214 -->

- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
bobhan1 added a commit to bobhan1/doris that referenced this pull request Sep 8, 2025
bobhan1 added a commit to bobhan1/doris that referenced this pull request Sep 12, 2025
This PR let mow load use delete bitmap cache if possible when lookup row
key to reduce CPU usage.

Add 2 configs
`enable_prefill_output_dbm_agg_cache_after_compaction`/`enable_prefill_all_dbm_agg_cache_after_compaction`(default
true) to control whether to fresh delete bitmap cache on corresponding
rowsets after compaction.

None

- Test <!-- At least one of them must be included. -->
    - [ ] Regression test
    - [ ] Unit Test
    - [ ] Manual test (add detailed scripts or steps below)
    - [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
        - [ ] Previous test can cover this change.
        - [ ] No code files have been changed.
        - [ ] Other reason <!-- Add your reason?  -->

- Behavior changed:
    - [ ] No.
    - [ ] Yes. <!-- Explain the behavior change -->

- Does this need documentation?
    - [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
apache/doris-website#1214 -->

- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
bobhan1 added a commit to bobhan1/doris that referenced this pull request Sep 12, 2025
dataroaring pushed a commit that referenced this pull request Sep 15, 2025
### What problem does this PR solve?

1. fix wrong tablet_id in `DeleteBitmap`
```cpp
Status CloudMetaMgr::get_tablet_meta(int64_t tablet_id, TabletMetaSharedPtr* tablet_meta) {
    // ...
    *tablet_meta = std::make_shared<TabletMeta>();
    (*tablet_meta)
            ->init_from_pb(cloud_tablet_meta_to_doris(std::move(*resp.mutable_tablet_meta())));
    VLOG_DEBUG << "get tablet meta, tablet_id: " << (*tablet_meta)->tablet_id();
    // tablet_meta._delete_bitmap._tablet_id is always 0
    return Status::OK();
}

TabletMeta::TabletMeta()
        : _tablet_uid(0, 0),
          _schema(new TabletSchema),
          _delete_bitmap(new DeleteBitmap(_tablet_id)) {}
```
2. fix #55073,
#55733 case stuck due to not sending
reply
@morrySnow morrySnow mentioned this pull request Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. dev/3.1.1-merged reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants