在位串列上创建索引的最佳方法是什么?假设我有一个 type 列,bit(4)我想搜索所有设置了特定位的条目。所以如果我有条目:
bit(4)
bitfield | ... -------------- 1001 1010 0110 0010 0000
如果我试图搜索所有0010设置的条目,我可以轻松地做到这一点。但是我可以使用索引来优化搜索吗?
0010
postgresql performance index postgresql-performance
index ×1
performance ×1
postgresql ×1
postgresql-performance ×1