包含顺序对覆盖索引有影响吗?
Does the include order has any impact on covering indexes?
PostgreSQL中以下两个索引有什么区别吗:
CREATE INDEX my_index ON table_name (column_one, column_two)
INCLUDE (account_id, id)
和
CREATE INDEX my_index ON table_name (column_one, column_two)
INCLUDE (id, account_id)
不,这两个索引之间的行为没有区别。 INCLUDE
列表中的顺序无关紧要。
PostgreSQL中以下两个索引有什么区别吗:
CREATE INDEX my_index ON table_name (column_one, column_two)
INCLUDE (account_id, id)
和
CREATE INDEX my_index ON table_name (column_one, column_two)
INCLUDE (id, account_id)
不,这两个索引之间的行为没有区别。 INCLUDE
列表中的顺序无关紧要。