Let\'s say I have a database table that I want to filter based on a boolean attribute (for example, \"flagged\" attribute). Is it better to just add a \"flagged\" attribute
Just add column to the table, it is better and simpler.. then create a bitmap index what will speed up your queries if you use this column in WHERE