I built an application from the ground up on INNODB due to it's ACID functionality. However, I have hit a bit of a road block. I have a products table and the categories for each product are separated by a delimiter. In total there are around 1800 unique categories and each product is associated with about 3-4 at a time. I have about 300,000 rows of unique products.
I tried doing this by the book and normalized my categories by creating a separate table for them and associated them with my products using a many to many relationship. However, the problem is that the products table itself is around 300,000 rows strong and add on to that a many to many categories association table with about 900,000 rows and we have a monster! It is next to impossible getting reasonable speeds for joins between the two tables....
What would you make of denormalizing a little in this case by storing the categories in their raw format in their own TEXT field in the products table. To filter through these products based on categories I could use fulltextsearch? What are the pros and cons of such an approach?
By the way I am on a shared server, so I can't increase the buffer size or utilize memory management to really make use of InnoDB
Solved If I could I would upvote everyone here who mocked and scoffed at my false illusions about how going by the book (normalizing) seemed to have cost me speed. In truth it's given me consistency and with a few indexes tweaked here and there I am getting lightning fast speeds. Thanks everyone.