【发布时间】:2019-06-13 07:35:17
【问题描述】:
我遇到了一个问题,我试图找出插入缓慢的原因。我需要知道 场景 A 的插入是否会更快。
场景 A:
insert into tableA (orgid, accountid, name)
values ('abc','123','A');
// orgid abc has 10 records against it in the table.
场景 B:
insert into tableA (orgid, accountid, name)
values ('def','123','A');
// orgid def has 10000 records against it in the table.
索引位于orgid。
提前致谢。
【问题讨论】:
-
我们正在使用 oracle
-
orgid上的索引类型是什么? BITMAP 还是 B-TREE? -
老实说我不知道,但请告诉我是否有任何类型会导致上述情况?
-
表是否有任何触发器或外键约束?
-
是的,有很多。