parent table 上的索引是否在 child table 中插入数据时得到更新?

Does index on parent table get updated when data is inserted in child tables?

我有一个 parent table 被许多 child table 继承。我试图在插入语句上使用 EXPLAIN ANALYZE 对索引更新进行计时,但 apparently 我们不能这样做。我想提高数据库的插入率,因此想知道哪些索引会随着插入而更新。 child tables 很明显,但我不知道 parent.

中的索引

在 table 级别创建(和维护)索引。当数据进入子 table 时,只会更新 table 上的索引。当数据进入父级 table 时,只会更新那些索引。

很可能您在父 table 中没有任何数据。