acts_as_enumerated

Hi Guys

resurrecting this old chestnut again...

I want to use this plugin for a many-many relationship with a join table, with one of the models being enumerated... does it still hold the same benefits with respect to caching??

also, if the size of the table for the enumerated model is very large (though still a defineable set), e.g. regions of each country of the world, is it still advantageous to use this system?

regards

Paul

Paul Nelligan wrote:

I want to use this plugin for a many-many relationship with a join table, with one of the models being enumerated... does it still hold the same benefits with respect to caching??

Sure. All instances will have their attributes cached, but the association will also be cached. So you'll have to reload an association if you want the latest data.

also, if the size of the table for the enumerated model is very large (though still a defineable set), e.g. regions of each country of the world, is it still advantageous to use this system?

Well, it's an easy and fast way if you think the memory usage is worth it. But if it's taking too much memory for the benefit gained, you may instead wish to use a limited-size LRU cache.