注册
测试批量commit的性能
技术分享/ 文章详情 /

测试批量commit的性能

IT_Girl 2024/12/27 323 0 0

create table t_test(id int,name varchar(50));
26s 510ms
BEGIN
for i in 1…50000 LOOP
insert into t_test (id,name) values(i,dbms_random.string(‘A’,20));
commit;
end loop;
end;
image.png
create table t_test1(id int,name varchar(50));
457ms
BEGIN
for i in 1…50000 LOOP
insert into t_test1 (id,name) values(i,dbms_random.string(‘A’,20));
end loop;
commit;
end;
image.png

评论
后发表回复

作者

文章

阅读量

获赞

扫一扫
联系客服