ruby on rails - what is the maximum amount of flags flag_shih_tzu can handle? -
i'm using "flag_shih_tzu" gem , want know maximum amount of flags can handle, or depend on int. length in flags column? need handle 64 flags. can it? i maintainer of flag_shih_tzu. best practice: each column used flags should have @ 16 flags set, performance reasons. find performance suffers columns holding more 16 flags. workaround: single table can have multiple flag columns. i create design follows: class foo ... has_flags 1 => :is_a1, # ... snip ... 16 => :is_a16, :column => 'flag_col_a' has_flags 1 => :is_b1, # ... snip ... 16 => :is_b16, :column => 'flag_col_b' has_flags 1 => :is_c1, # ... snip ... 16 => :is_c16, :column => 'flag_col_c' has_flags 1 => :is_d1, # ... snip ... 16 => :is_d16, :column => 'flag_col_d' end now...