alternative to bitmap index in postgresql

后端 未结 3 877
野趣味
野趣味 2021-01-19 19:06

I have a table with hundreds of millions rows with schema like below.

tabe AA {
 id integer primay key,
 prop0 boolean not null,
 prop1 boolean not null,
 p         


        
3条回答
  •  终归单人心
    2021-01-19 19:44

    Your real problem is a bad schema design, not the index. The properties should be placed in a different table and your current table should link to that table using a many to many relation.

    The BIT datatype might also be of use, just check the manual.

提交回复
热议问题