I'm creating a MySQL table in Rails which has about 170 boolean fields, each of which needs to be searchable and hence indexed, but when I create the indexes I get the error message:
To many keys specified; max 64 keys allowed
Is this limit hard coded or is there a config switch I can flip which wold get around it?
Or do I need to refactor the table? The obvious way to me looks to be to join multiple tables together and run a query such as
Table.find.all(:conditions => "join1.fieldx = true and join2.fieldy = true")
Are there any performance or other gotchas with such a strategy?