Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[improvement](partial-update) make partial-update on agg table use less memory #32200

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hust-hhb
Copy link
Contributor

Proposed changes

This pr make fe only send the specific column to be when using partial_columns= true header in streamload or set enable_agg_key_partial_update=true when using insert into on agg table, which can use less memory, in my test, it can reduce about 60% memory when insert 1000 columns table to 5000 columns table.

Issue Number: close #xxx

Further comments

If this is a relatively large or complex change, kick off the discussion at [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...

@doris-robot
Copy link

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

@hust-hhb
Copy link
Contributor Author

run buildall

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 35.01% (8576/24499)
Line Coverage: 26.76% (69482/259653)
Region Coverage: 26.03% (36080/138630)
Branch Coverage: 22.98% (18425/80170)
Coverage Report: http://coverage.selectdb-in.cc/coverage/34bea84c610179d2ca042d8934c701d280b2eb4a_34bea84c610179d2ca042d8934c701d280b2eb4a/report/index.html

@hust-hhb hust-hhb changed the title [improvement](partial-update) make partial-update on agg table use less memory [draft][improvement](partial-update) make partial-update on agg table use less memory Mar 14, 2024
@@ -1486,6 +1488,9 @@ public void setEnableLeftZigZag(boolean enableLeftZigZag) {
@VariableMgr.VarAttr(name = ENABLE_UNIQUE_KEY_PARTIAL_UPDATE, needForward = true)
public boolean enableUniqueKeyPartialUpdate = false;

@VariableMgr.VarAttr(name = ENABLE_AGG_KEY_PARTIAL_UPDATE, needForward = true)
public boolean enableAggregateKeyPartialUpdate = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

what's different between enableUniqueKeyPartialUpdate and enableAggregateKeyPartialUpdate? why not use one variable to control them?
In LogicalPlanBuilder and BindSink, we cannot distinguish them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For users, this is a new feature that should be controlled by a separate variable. If only use one variable to control them, may be the variable ENABLE_UNIQUE_KEY_PARTIAL_UPDATE should be change to ENABLE_PARTIAL_UPDATE, our documentation needs to be updated accordingly, and it may cause compatibility issues for users as their codes also need to be changed accordingly.

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@hust-hhb
Copy link
Contributor Author

run buildall

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 35.27% (8728/24746)
Line Coverage: 27.08% (71447/263795)
Region Coverage: 26.33% (37084/140844)
Branch Coverage: 23.23% (18958/81610)
Coverage Report: http://coverage.selectdb-in.cc/coverage/087224f595807aa6ac23b46a738d6a1d1201f145_087224f595807aa6ac23b46a738d6a1d1201f145/report/index.html

@hust-hhb
Copy link
Contributor Author

run buildall

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17640	4331	4144	4144
q2	2036	155	152	152
q3	10697	1144	1152	1144
q4	10300	829	767	767
q5	7464	2994	2963	2963
q6	205	129	124	124
q7	1131	574	562	562
q8	9337	2009	1981	1981
q9	7047	6530	6440	6440
q10	8427	3446	3492	3446
q11	440	226	237	226
q12	393	201	201	201
q13	17822	2866	2900	2866
q14	236	203	206	203
q15	501	458	462	458
q16	467	376	369	369
q17	971	520	531	520
q18	7411	6497	6482	6482
q19	6187	1456	1405	1405
q20	555	255	249	249
q21	3514	3017	2907	2907
q22	356	300	348	300
Total cold run time: 113137 ms
Total hot run time: 37909 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4217	4092	4080	4080
q2	319	228	225	225
q3	3024	2904	2813	2813
q4	1848	1532	1559	1532
q5	5217	5267	5263	5263
q6	201	114	115	114
q7	2278	1924	1903	1903
q8	3164	3340	3302	3302
q9	8645	8580	8616	8580
q10	3697	3761	3736	3736
q11	537	436	445	436
q12	724	552	561	552
q13	16916	2859	2847	2847
q14	280	242	268	242
q15	499	444	445	444
q16	455	412	430	412
q17	1758	1501	1474	1474
q18	7444	7304	7057	7057
q19	1628	1579	1540	1540
q20	1928	1713	1753	1713
q21	4911	4778	4637	4637
q22	493	430	452	430
Total cold run time: 70183 ms
Total hot run time: 53332 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 181604 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 2d31b8c390b6cbe8baa1aed65199df14c43ee247, data reload: false

query1	926	367	358	358
query2	7504	2046	2026	2026
query3	6720	221	219	219
query4	31347	20859	20738	20738
query5	4359	419	399	399
query6	269	179	180	179
query7	4626	300	295	295
query8	235	170	175	170
query9	9898	2259	2228	2228
query10	456	238	255	238
query11	14647	14287	14200	14200
query12	143	87	88	87
query13	1619	419	411	411
query14	11403	10687	10421	10421
query15	257	218	196	196
query16	8061	258	258	258
query17	1942	592	555	555
query18	2052	292	293	292
query19	219	169	162	162
query20	92	88	84	84
query21	197	133	137	133
query22	4678	4482	4409	4409
query23	31689	31161	31092	31092
query24	10741	2917	2844	2844
query25	629	376	405	376
query26	1220	161	161	161
query27	2866	358	353	353
query28	7990	1905	1884	1884
query29	876	632	609	609
query30	302	145	148	145
query31	965	726	720	720
query32	100	59	56	56
query33	773	272	267	267
query34	1091	477	490	477
query35	828	605	611	605
query36	1000	870	858	858
query37	127	78	78	78
query38	3505	3494	3511	3494
query39	1419	1366	1386	1366
query40	213	117	116	116
query41	50	58	47	47
query42	105	95	96	95
query43	509	452	439	439
query44	1110	738	694	694
query45	267	252	263	252
query46	1091	686	672	672
query47	1655	1581	1607	1581
query48	448	349	340	340
query49	1121	323	328	323
query50	756	372	371	371
query51	6836	6607	6612	6607
query52	104	84	92	84
query53	344	268	273	268
query54	300	253	251	251
query55	91	78	84	78
query56	243	231	228	228
query57	1047	1017	1021	1017
query58	222	198	202	198
query59	2834	2671	2621	2621
query60	269	237	260	237
query61	97	96	102	96
query62	581	394	390	390
query63	303	278	278	278
query64	5635	3943	3900	3900
query65	3112	3034	3017	3017
query66	1433	338	336	336
query67	15134	14676	14310	14310
query68	6198	519	512	512
query69	611	368	378	368
query70	1230	1194	1210	1194
query71	470	278	284	278
query72	6708	2816	2646	2646
query73	731	321	326	321
query74	7247	6557	6631	6557
query75	4103	2908	3054	2908
query76	4081	945	965	945
query77	636	276	281	276
query78	10432	9531	9683	9531
query79	8888	519	508	508
query80	1796	411	420	411
query81	546	218	213	213
query82	1591	201	203	201
query83	291	151	153	151
query84	298	88	85	85
query85	1703	333	317	317
query86	492	278	325	278
query87	3773	3528	3551	3528
query88	5117	2296	2292	2292
query89	530	374	369	369
query90	1938	183	177	177
query91	163	136	133	133
query92	61	47	48	47
query93	7188	508	492	492
query94	1214	176	177	176
query95	444	328	339	328
query96	618	270	269	269
query97	3051	2850	2867	2850
query98	228	212	208	208
query99	1228	757	746	746
Total cold run time: 307286 ms
Total hot run time: 181604 ms

@doris-robot
Copy link

Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'

Load test result on commit 2d31b8c390b6cbe8baa1aed65199df14c43ee247 with default session variables
Stream load json:         18 seconds loaded 2358488459 Bytes, about 124 MB/s
Stream load orc:          59 seconds loaded 1101869774 Bytes, about 17 MB/s
Stream load parquet:      32 seconds loaded 861443392 Bytes, about 25 MB/s
Insert into select:       21.8 seconds inserted 10000000 Rows, about 458K ops/s

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 35.28% (8732/24753)
Line Coverage: 27.09% (71531/264037)
Region Coverage: 26.33% (37116/140938)
Branch Coverage: 23.23% (18982/81702)
Coverage Report: http://coverage.selectdb-in.cc/coverage/2d31b8c390b6cbe8baa1aed65199df14c43ee247_2d31b8c390b6cbe8baa1aed65199df14c43ee247/report/index.html

@hust-hhb hust-hhb changed the title [draft][improvement](partial-update) make partial-update on agg table use less memory [improvement](partial-update) make partial-update on agg table use less memory Mar 25, 2024
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Contributor

@zhannngchen zhannngchen left a comment

Choose a reason for hiding this comment

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

please add regression cases for your patch

@hust-hhb
Copy link
Contributor Author

run buildall

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@hust-hhb
Copy link
Contributor Author

@zhannngchen update the patch, take a look please

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17614	4263	4090	4090
q2	2109	153	156	153
q3	10589	1178	1198	1178
q4	10232	784	822	784
q5	7475	2950	2925	2925
q6	204	125	123	123
q7	1049	601	572	572
q8	9335	2018	1990	1990
q9	7116	6351	6338	6338
q10	8482	3492	3587	3492
q11	435	228	221	221
q12	412	205	201	201
q13	17806	2857	2855	2855
q14	230	221	206	206
q15	513	474	453	453
q16	490	374	373	373
q17	956	558	605	558
q18	7179	6501	6477	6477
q19	1941	1479	1487	1479
q20	568	245	264	245
q21	3662	2985	2839	2839
q22	340	295	305	295
Total cold run time: 108737 ms
Total hot run time: 37847 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4153	4103	4078	4078
q2	333	226	225	225
q3	3010	2878	2827	2827
q4	1803	1498	1577	1498
q5	5246	5257	5263	5257
q6	193	116	118	116
q7	2195	1810	1778	1778
q8	3155	3297	3314	3297
q9	8434	8413	8400	8400
q10	3762	3837	3993	3837
q11	562	476	477	476
q12	770	585	593	585
q13	17194	3032	3041	3032
q14	302	263	301	263
q15	533	483	481	481
q16	498	459	459	459
q17	1763	1541	1547	1541
q18	8085	7528	7500	7500
q19	2206	1550	1623	1550
q20	2019	1771	1860	1771
q21	4939	4917	4857	4857
q22	532	442	472	442
Total cold run time: 71687 ms
Total hot run time: 54270 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 182329 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 9c273d8cd642b22112baba736a966d48fa5953b1, data reload: false

query1	925	354	353	353
query2	6393	2132	1907	1907
query3	6703	211	216	211
query4	31874	21375	21276	21276
query5	4352	437	426	426
query6	285	189	183	183
query7	4623	293	300	293
query8	232	172	166	166
query9	9008	2264	2248	2248
query10	432	252	268	252
query11	14885	14201	14177	14177
query12	132	88	84	84
query13	1619	439	423	423
query14	10414	7469	7928	7469
query15	256	184	182	182
query16	8176	268	265	265
query17	1935	584	549	549
query18	2110	290	293	290
query19	349	156	154	154
query20	92	89	93	89
query21	200	126	127	126
query22	4953	4805	4755	4755
query23	33670	33051	33335	33051
query24	11015	2962	2959	2959
query25	640	400	407	400
query26	1137	161	159	159
query27	2706	371	365	365
query28	7602	1930	1927	1927
query29	931	671	636	636
query30	311	160	158	158
query31	1036	753	783	753
query32	99	57	56	56
query33	806	268	260	260
query34	1255	508	524	508
query35	912	720	732	720
query36	1078	937	915	915
query37	131	67	67	67
query38	3710	3658	3639	3639
query39	1643	1603	1558	1558
query40	179	112	110	110
query41	54	48	46	46
query42	108	107	108	107
query43	490	451	446	446
query44	1236	764	762	762
query45	280	270	285	270
query46	1129	725	707	707
query47	2072	1934	1960	1934
query48	458	371	359	359
query49	940	352	365	352
query50	773	384	389	384
query51	6944	6771	6878	6771
query52	102	102	91	91
query53	352	279	281	279
query54	298	234	255	234
query55	90	81	79	79
query56	254	243	247	243
query57	1252	1234	1167	1167
query58	229	211	207	207
query59	3077	2744	2597	2597
query60	263	232	239	232
query61	93	88	91	88
query62	604	430	435	430
query63	303	271	271	271
query64	5373	4075	3939	3939
query65	3062	3010	3012	3010
query66	783	347	348	347
query67	15705	14993	14805	14805
query68	9215	536	536	536
query69	675	379	370	370
query70	1429	1125	1120	1120
query71	514	264	267	264
query72	6588	2526	2323	2323
query73	1668	335	328	328
query74	8477	6349	6412	6349
query75	3753	2246	2282	2246
query76	5606	916	879	879
query77	613	270	266	266
query78	11086	10162	10010	10010
query79	11441	536	532	532
query80	2093	378	374	374
query81	515	210	215	210
query82	428	86	83	83
query83	212	143	148	143
query84	283	79	72	72
query85	1094	324	302	302
query86	376	308	318	308
query87	3751	3551	3508	3508
query88	4771	2386	2370	2370
query89	485	369	366	366
query90	1965	178	173	173
query91	171	130	133	130
query92	56	46	49	46
query93	6663	490	498	490
query94	1184	174	177	174
query95	418	303	309	303
query96	610	268	273	268
query97	2667	2500	2479	2479
query98	230	213	215	213
query99	1076	818	843	818
Total cold run time: 315246 ms
Total hot run time: 182329 ms

@hust-hhb
Copy link
Contributor Author

hust-hhb commented Apr 2, 2024

run buildall

Copy link
Contributor

github-actions bot commented Apr 2, 2024

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 35.57% (8851/24880)
Line Coverage: 27.28% (72552/265961)
Region Coverage: 26.48% (37556/141844)
Branch Coverage: 23.27% (19142/82260)
Coverage Report: http://coverage.selectdb-in.cc/coverage/e80c8cd7e4e8ca2f5a78349f7faa8564c78dc4e0_e80c8cd7e4e8ca2f5a78349f7faa8564c78dc4e0/report/index.html

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17608	4150	4133	4133
q2	2013	187	188	187
q3	10481	1246	1415	1246
q4	10210	872	978	872
q5	7987	3030	2924	2924
q6	219	138	133	133
q7	1117	618	609	609
q8	9418	2057	2042	2042
q9	6704	6225	6175	6175
q10	8452	3545	3501	3501
q11	424	252	252	252
q12	389	219	213	213
q13	17777	2910	2907	2907
q14	269	246	243	243
q15	545	489	479	479
q16	502	405	379	379
q17	971	919	924	919
q18	7343	6571	6399	6399
q19	1587	1534	1537	1534
q20	592	319	307	307
q21	3523	3108	3065	3065
q22	388	320	307	307
Total cold run time: 108519 ms
Total hot run time: 38826 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4105	4177	4095	4095
q2	325	214	220	214
q3	2948	2973	2962	2962
q4	1883	1869	1844	1844
q5	5230	5236	5232	5232
q6	206	125	125	125
q7	2259	1824	1807	1807
q8	3227	3362	3297	3297
q9	8522	8489	8490	8489
q10	3768	4031	4015	4015
q11	574	477	485	477
q12	769	626	649	626
q13	16880	3169	3143	3143
q14	324	301	282	282
q15	531	484	498	484
q16	501	436	442	436
q17	1770	1765	1778	1765
q18	8196	7742	7741	7741
q19	1694	1687	1667	1667
q20	1970	1802	1849	1802
q21	5214	4929	5010	4929
q22	515	438	452	438
Total cold run time: 71411 ms
Total hot run time: 55870 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 183192 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 e80c8cd7e4e8ca2f5a78349f7faa8564c78dc4e0, data reload: false

query1	1204	1126	1097	1097
query2	6204	1959	1916	1916
query3	6666	214	208	208
query4	24686	21508	21472	21472
query5	4211	400	406	400
query6	276	200	189	189
query7	4594	308	308	308
query8	232	186	180	180
query9	8454	2295	2267	2267
query10	456	255	259	255
query11	15040	14435	14437	14435
query12	140	95	92	92
query13	1651	390	391	390
query14	8417	7132	6930	6930
query15	206	178	180	178
query16	6428	284	284	284
query17	951	600	578	578
query18	1756	300	279	279
query19	207	165	164	164
query20	101	98	94	94
query21	198	131	134	131
query22	5042	4866	4809	4809
query23	33511	32823	32787	32787
query24	13210	3308	3196	3196
query25	724	443	436	436
query26	1867	176	167	167
query27	3250	380	392	380
query28	7031	1952	1928	1928
query29	1155	620	602	602
query30	306	174	176	174
query31	1066	756	754	754
query32	103	60	60	60
query33	688	263	261	261
query34	1258	509	545	509
query35	829	740	739	739
query36	1000	889	875	875
query37	230	91	85	85
query38	3772	3642	3667	3642
query39	1636	1579	1645	1579
query40	237	139	138	138
query41	49	44	42	42
query42	125	101	107	101
query43	459	403	419	403
query44	1128	734	724	724
query45	287	257	267	257
query46	1137	837	809	809
query47	2006	1935	1952	1935
query48	397	327	323	323
query49	943	353	388	353
query50	827	423	421	421
query51	6936	7020	6957	6957
query52	108	100	102	100
query53	379	305	291	291
query54	295	241	237	237
query55	90	76	74	74
query56	251	239	237	237
query57	1310	1203	1219	1203
query58	252	223	233	223
query59	2756	2439	2391	2391
query60	269	248	249	248
query61	110	108	109	108
query62	686	455	458	455
query63	306	280	285	280
query64	6034	3588	3281	3281
query65	3107	3015	3016	3015
query66	1308	320	322	320
query67	15351	14810	14973	14810
query68	8139	600	600	600
query69	561	332	336	332
query70	1204	1083	1077	1077
query71	497	282	275	275
query72	6400	2557	2414	2414
query73	802	332	326	326
query74	6759	6287	6344	6287
query75	3451	2287	2329	2287
query76	4834	1136	1225	1136
query77	566	244	251	244
query78	10909	10184	10168	10168
query79	9023	541	538	538
query80	1443	424	416	416
query81	503	230	241	230
query82	726	115	104	104
query83	203	160	163	160
query84	271	90	87	87
query85	1369	290	278	278
query86	444	278	309	278
query87	3671	3492	3472	3472
query88	4455	2355	2375	2355
query89	556	381	376	376
query90	1902	177	178	177
query91	133	107	107	107
query92	64	50	52	50
query93	7126	535	536	535
query94	1042	197	190	190
query95	440	328	331	328
query96	613	284	272	272
query97	2670	2492	2549	2492
query98	229	221	210	210
query99	1313	825	841	825
Total cold run time: 298217 ms
Total hot run time: 183192 ms

@doris-robot
Copy link

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

query1	0.04	0.03	0.03
query2	0.08	0.04	0.04
query3	0.24	0.04	0.04
query4	1.70	0.06	0.06
query5	0.49	0.48	0.50
query6	1.13	0.65	0.66
query7	0.02	0.01	0.01
query8	0.06	0.05	0.05
query9	0.56	0.52	0.51
query10	0.56	0.58	0.56
query11	0.15	0.11	0.11
query12	0.14	0.11	0.11
query13	0.62	0.60	0.60
query14	0.76	0.79	0.80
query15	0.86	0.84	0.85
query16	0.36	0.36	0.36
query17	0.99	0.97	0.96
query18	0.26	0.25	0.25
query19	1.80	1.73	1.72
query20	0.01	0.01	0.01
query21	15.41	0.77	0.68
query22	3.25	5.08	1.94
query23	17.61	1.36	1.15
query24	1.44	0.23	0.23
query25	0.15	0.09	0.08
query26	0.27	0.18	0.19
query27	0.08	0.08	0.09
query28	13.76	0.98	0.95
query29	12.70	3.44	3.37
query30	0.25	0.06	0.05
query31	2.87	0.39	0.38
query32	3.27	0.48	0.47
query33	2.83	2.90	2.88
query34	15.49	4.32	4.32
query35	4.42	4.38	4.35
query36	0.67	0.47	0.48
query37	0.20	0.17	0.17
query38	0.16	0.17	0.16
query39	0.04	0.04	0.04
query40	0.18	0.15	0.15
query41	0.10	0.05	0.06
query42	0.06	0.05	0.05
query43	0.05	0.04	0.04
Total cold run time: 106.09 s
Total hot run time: 30.42 s

@doris-robot
Copy link

Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'

Load test result on commit e80c8cd7e4e8ca2f5a78349f7faa8564c78dc4e0 with default session variables
Stream load json:         18 seconds loaded 2358488459 Bytes, about 124 MB/s
Stream load orc:          58 seconds loaded 1101869774 Bytes, about 18 MB/s
Stream load parquet:      32 seconds loaded 861443392 Bytes, about 25 MB/s
Insert into select:       16.1 seconds inserted 10000000 Rows, about 621K ops/s

@hust-hhb
Copy link
Contributor Author

hust-hhb commented Apr 8, 2024

run buildall

Copy link
Contributor

github-actions bot commented Apr 8, 2024

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 35.62% (8887/24948)
Line Coverage: 27.36% (73010/266845)
Region Coverage: 26.54% (37753/142251)
Branch Coverage: 23.34% (19239/82422)
Coverage Report: http://coverage.selectdb-in.cc/coverage/39a2555cd606882dfd8afd946d335dd008e35ee3_39a2555cd606882dfd8afd946d335dd008e35ee3/report/index.html

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17640	4140	4101	4101
q2	2017	183	175	175
q3	10613	1255	1334	1255
q4	10353	855	1010	855
q5	7516	2917	2937	2917
q6	218	131	129	129
q7	1104	637	609	609
q8	9413	1964	2021	1964
q9	6798	6241	6198	6198
q10	8493	3514	3514	3514
q11	428	238	240	238
q12	377	215	202	202
q13	17785	2913	2905	2905
q14	270	227	243	227
q15	514	479	482	479
q16	519	382	370	370
q17	971	921	896	896
q18	7217	6547	6372	6372
q19	2149	1555	1526	1526
q20	549	330	287	287
q21	3485	3044	3107	3044
q22	364	303	307	303
Total cold run time: 108793 ms
Total hot run time: 38566 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4148	4026	4028	4026
q2	327	220	220	220
q3	2932	2957	2948	2948
q4	1856	1850	1863	1850
q5	5227	5250	5232	5232
q6	205	123	123	123
q7	2253	1842	1822	1822
q8	3222	3281	3291	3281
q9	8518	8466	8455	8455
q10	3786	4014	3989	3989
q11	567	468	460	460
q12	784	630	616	616
q13	17398	3149	3125	3125
q14	325	271	268	268
q15	530	478	489	478
q16	467	430	408	408
q17	1759	1725	1709	1709
q18	8221	7897	7715	7715
q19	1695	1703	1691	1691
q20	2087	1722	1709	1709
q21	5274	5023	5033	5023
q22	510	421	424	421
Total cold run time: 72091 ms
Total hot run time: 55569 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 181770 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 39a2555cd606882dfd8afd946d335dd008e35ee3, data reload: false

query1	1237	1121	1118	1118
query2	6184	1938	1987	1938
query3	6675	212	203	203
query4	24059	21428	21582	21428
query5	4191	398	405	398
query6	275	188	186	186
query7	4613	297	298	297
query8	236	180	181	180
query9	8493	2218	2225	2218
query10	444	247	241	241
query11	15025	14508	14405	14405
query12	145	92	89	89
query13	1642	378	377	377
query14	8402	6932	6805	6805
query15	216	173	174	173
query16	6576	258	264	258
query17	1005	576	547	547
query18	1770	270	265	265
query19	191	147	150	147
query20	92	86	87	86
query21	196	124	126	124
query22	5049	4801	4834	4801
query23	33362	32700	32589	32589
query24	11309	3186	3151	3151
query25	704	383	404	383
query26	1913	165	150	150
query27	3181	358	360	358
query28	7543	1918	1885	1885
query29	1217	629	603	603
query30	328	181	183	181
query31	1005	739	733	733
query32	96	57	56	56
query33	641	262	250	250
query34	1249	496	513	496
query35	855	723	714	714
query36	990	890	899	890
query37	243	81	82	81
query38	3582	3643	3563	3563
query39	1671	1624	1595	1595
query40	227	135	132	132
query41	48	46	45	45
query42	116	100	102	100
query43	481	435	415	415
query44	1180	735	723	723
query45	274	277	274	274
query46	1131	859	817	817
query47	1968	1900	1905	1900
query48	375	303	314	303
query49	948	366	392	366
query50	833	397	397	397
query51	7096	6956	6916	6916
query52	101	97	93	93
query53	353	299	284	284
query54	272	233	239	233
query55	83	79	74	74
query56	255	233	239	233
query57	1278	1203	1201	1201
query58	243	221	212	212
query59	2752	2600	2552	2552
query60	260	242	235	235
query61	114	105	111	105
query62	664	440	453	440
query63	303	275	274	274
query64	5772	3165	3136	3136
query65	3057	2989	2979	2979
query66	1298	305	312	305
query67	15785	14926	14821	14821
query68	9166	565	585	565
query69	592	296	293	293
query70	1449	1088	1132	1088
query71	495	267	269	267
query72	6382	2558	2424	2424
query73	1575	318	314	314
query74	6644	6301	6333	6301
query75	3637	2258	2282	2258
query76	6018	1190	1215	1190
query77	627	241	238	238
query78	10869	10156	10038	10038
query79	9874	533	522	522
query80	1447	410	406	406
query81	522	242	235	235
query82	413	91	92	91
query83	219	162	162	162
query84	265	85	86	85
query85	905	277	268	268
query86	356	291	301	291
query87	3674	3466	3456	3456
query88	3855	2270	2269	2269
query89	561	367	354	354
query90	1992	176	181	176
query91	132	100	103	100
query92	60	47	48	47
query93	6366	529	528	528
query94	1202	176	176	176
query95	418	311	314	311
query96	596	277	277	277
query97	2680	2507	2477	2477
query98	225	210	214	210
query99	1158	853	826	826
Total cold run time: 298246 ms
Total hot run time: 181770 ms

@doris-robot
Copy link

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

query1	0.04	0.03	0.03
query2	0.08	0.04	0.04
query3	0.24	0.04	0.05
query4	1.68	0.06	0.07
query5	0.48	0.48	0.49
query6	1.15	0.65	0.66
query7	0.02	0.01	0.01
query8	0.05	0.04	0.04
query9	0.56	0.51	0.51
query10	0.56	0.56	0.56
query11	0.15	0.12	0.11
query12	0.14	0.11	0.12
query13	0.62	0.59	0.59
query14	0.77	0.77	0.82
query15	0.84	0.85	0.83
query16	0.36	0.36	0.36
query17	0.95	1.04	0.99
query18	0.25	0.25	0.25
query19	1.82	1.69	1.68
query20	0.02	0.01	0.01
query21	15.40	0.65	0.64
query22	4.46	8.42	1.04
query23	17.76	1.25	1.24
query24	1.51	0.19	0.20
query25	0.15	0.07	0.08
query26	0.26	0.16	0.15
query27	0.08	0.08	0.08
query28	13.85	0.96	0.94
query29	12.51	3.23	3.29
query30	0.26	0.06	0.05
query31	2.89	0.40	0.39
query32	3.25	0.47	0.49
query33	2.92	2.87	2.92
query34	15.50	4.35	4.32
query35	4.39	4.39	4.41
query36	0.67	0.48	0.48
query37	0.18	0.16	0.15
query38	0.14	0.14	0.14
query39	0.04	0.03	0.03
query40	0.17	0.15	0.14
query41	0.10	0.05	0.05
query42	0.05	0.05	0.05
query43	0.04	0.04	0.04
Total cold run time: 107.36 s
Total hot run time: 29.27 s

@doris-robot
Copy link

Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'

Load test result on commit 39a2555cd606882dfd8afd946d335dd008e35ee3 with default session variables
Stream load json:         19 seconds loaded 2358488459 Bytes, about 118 MB/s
Stream load orc:          58 seconds loaded 1101869774 Bytes, about 18 MB/s
Stream load parquet:      31 seconds loaded 861443392 Bytes, about 26 MB/s
Insert into select:       16.2 seconds inserted 10000000 Rows, about 617K ops/s

Copy link
Contributor

github-actions bot commented Apr 9, 2024

clang-tidy review says "All clean, LGTM! 👍"

@hust-hhb
Copy link
Contributor Author

run buildall

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 35.37% (8916/25210)
Line Coverage: 27.09% (73330/270709)
Region Coverage: 26.23% (37892/144437)
Branch Coverage: 23.03% (19290/83760)
Coverage Report: http://coverage.selectdb-in.cc/coverage/e97a8f78bdbab4d5b522d35f04739b681b0d2479_e97a8f78bdbab4d5b522d35f04739b681b0d2479/report/index.html

Copy link
Contributor

github-actions bot commented Jul 4, 2024

clang-tidy review says "All clean, LGTM! 👍"

@hust-hhb
Copy link
Contributor Author

hust-hhb commented Jul 4, 2024

run buildall

Copy link
Contributor

github-actions bot commented Jul 4, 2024

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17611	4400	4293	4293
q2	2032	214	193	193
q3	10433	1195	1111	1111
q4	10190	722	759	722
q5	7508	2664	2761	2664
q6	234	141	141	141
q7	986	599	605	599
q8	9242	2124	2060	2060
q9	8943	6519	6499	6499
q10	9005	3726	3666	3666
q11	452	240	236	236
q12	581	235	230	230
q13	17777	2976	2999	2976
q14	275	234	221	221
q15	520	481	481	481
q16	521	374	375	374
q17	984	665	682	665
q18	8154	7491	7525	7491
q19	7657	1455	1526	1455
q20	660	319	329	319
q21	5388	3745	3879	3745
q22	397	336	338	336
Total cold run time: 119550 ms
Total hot run time: 40477 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4391	4230	4194	4194
q2	379	262	256	256
q3	3109	2838	2947	2838
q4	2013	1738	1758	1738
q5	5511	5504	5473	5473
q6	226	131	140	131
q7	2252	1839	1840	1839
q8	3319	3420	3396	3396
q9	8777	8946	8760	8760
q10	4083	3787	3895	3787
q11	609	510	492	492
q12	803	635	643	635
q13	17044	3141	3176	3141
q14	301	260	288	260
q15	564	477	493	477
q16	488	437	429	429
q17	1819	1516	1580	1516
q18	8152	8000	7731	7731
q19	1791	1542	1616	1542
q20	2227	1882	1907	1882
q21	5254	4726	4890	4726
q22	630	544	588	544
Total cold run time: 73742 ms
Total hot run time: 55787 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 172832 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 603b50b76c4035c61ce1046125dbc3ee1f618405, data reload: false

query1	908	376	394	376
query2	6418	2456	2400	2400
query3	6632	203	206	203
query4	18906	17621	17353	17353
query5	3657	472	474	472
query6	263	165	162	162
query7	4598	299	293	293
query8	313	299	290	290
query9	8475	2406	2369	2369
query10	589	319	291	291
query11	10813	10310	10230	10230
query12	114	87	81	81
query13	1645	380	372	372
query14	10064	6329	7615	6329
query15	226	190	190	190
query16	7868	313	319	313
query17	1801	569	530	530
query18	2029	279	273	273
query19	201	158	159	158
query20	90	85	82	82
query21	215	144	130	130
query22	4626	4290	4237	4237
query23	33943	33695	33594	33594
query24	10705	2947	2884	2884
query25	619	394	405	394
query26	711	159	160	159
query27	2216	328	319	319
query28	5726	2166	2164	2164
query29	912	640	658	640
query30	276	166	158	158
query31	1002	791	753	753
query32	101	57	58	57
query33	678	333	314	314
query34	905	487	503	487
query35	785	656	656	656
query36	1140	995	953	953
query37	130	80	79	79
query38	2936	2879	2811	2811
query39	880	849	838	838
query40	213	133	125	125
query41	57	56	54	54
query42	121	98	99	98
query43	607	544	540	540
query44	1101	745	727	727
query45	194	163	157	157
query46	1065	721	713	713
query47	1863	1787	1794	1787
query48	380	295	303	295
query49	854	501	402	402
query50	760	377	388	377
query51	6867	6771	6744	6744
query52	99	88	84	84
query53	364	284	284	284
query54	906	451	430	430
query55	73	71	74	71
query56	280	271	270	270
query57	1124	1059	1049	1049
query58	250	243	244	243
query59	3300	3031	3246	3031
query60	294	286	291	286
query61	96	93	93	93
query62	618	448	445	445
query63	322	282	288	282
query64	8740	2237	1743	1743
query65	3293	3096	3064	3064
query66	799	338	341	338
query67	15782	15118	15083	15083
query68	8687	549	558	549
query69	749	446	354	354
query70	1408	1061	1065	1061
query71	514	272	272	272
query72	9163	4948	5197	4948
query73	2229	331	323	323
query74	6025	5559	5612	5559
query75	5216	2630	2655	2630
query76	5133	937	922	922
query77	759	302	297	297
query78	9711	9118	9191	9118
query79	7745	509	505	505
query80	1867	484	465	465
query81	552	223	224	223
query82	261	100	111	100
query83	285	170	165	165
query84	272	84	88	84
query85	951	277	319	277
query86	370	294	303	294
query87	3289	3125	3106	3106
query88	4295	2354	2350	2350
query89	494	376	388	376
query90	2012	184	179	179
query91	127	99	100	99
query92	65	51	46	46
query93	5370	513	511	511
query94	1371	210	219	210
query95	402	312	306	306
query96	600	270	262	262
query97	3184	3027	3081	3027
query98	213	197	192	192
query99	1085	852	813	813
Total cold run time: 288942 ms
Total hot run time: 172832 ms

@doris-robot
Copy link

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

query1	0.04	0.03	0.03
query2	0.08	0.04	0.04
query3	0.22	0.05	0.05
query4	1.67	0.07	0.07
query5	0.51	0.49	0.49
query6	1.14	0.71	0.72
query7	0.02	0.01	0.01
query8	0.06	0.05	0.05
query9	0.54	0.49	0.49
query10	0.55	0.53	0.55
query11	0.15	0.12	0.11
query12	0.14	0.12	0.13
query13	0.58	0.59	0.59
query14	0.77	0.78	0.78
query15	0.84	0.81	0.83
query16	0.36	0.34	0.38
query17	1.02	0.96	1.04
query18	0.24	0.25	0.24
query19	1.89	1.70	1.81
query20	0.02	0.01	0.01
query21	15.39	0.76	0.66
query22	4.13	7.68	2.27
query23	18.24	1.52	1.30
query24	2.08	0.23	0.22
query25	0.16	0.08	0.08
query26	0.28	0.17	0.17
query27	0.07	0.08	0.08
query28	13.28	1.02	1.00
query29	12.63	3.31	3.30
query30	0.25	0.06	0.05
query31	2.85	0.40	0.37
query32	3.27	0.49	0.47
query33	2.95	2.90	2.94
query34	16.94	4.43	4.42
query35	4.47	4.43	4.54
query36	0.65	0.48	0.50
query37	0.19	0.15	0.16
query38	0.15	0.14	0.15
query39	0.04	0.04	0.03
query40	0.17	0.15	0.14
query41	0.10	0.05	0.04
query42	0.06	0.04	0.05
query43	0.04	0.04	0.03
Total cold run time: 109.23 s
Total hot run time: 30.9 s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants