I have a lot of boolean attribute for entities in a table and am in need to store even more of them. Currently I have 17 such attributes (Other fields are four bigint fields). I am in need of adding about dozen or so more attributes.
Should I just go ahead and create boolean columns for each of the required attributes or are there better ways? How would that impact storage?
These fields will be searched over on in multiple combinations (so multi-column indexes are not going to help).
Thought (premature) about saving storage: How about I use a 64-bit integer and use each bit as a boolean value? I can use the bit operators for matching but will such operation use indexes since scan is not based on ordering or equality of integers?