我有一个带有三个表的 OLTP 应用程序
Item Table - ItemId, CategoryId, AgeGroupId, ... 100K rows.
CategoryTable - CategoryId, ... (only 5-10 rows)
AgeGroupTable - AgeGroupId, ... (only 4-5 rows)
Item 表CategoryId的合适索引是什么?AgeGroupId最好通过它们或两者来查询Category项目Agegroup!
我在想位图索引可能由于基数低而起作用,但我不知道它们如何与每个表的多个位图索引一起工作?如果有的话,水平分区有什么帮助?