I have a rather simple data model, but I have a centric entity called "item" which is associated to 7 other entities via 1-to-1 / 1-to-many relationships. Everything works smooth. But in most actions that work with the item model, I dont need any of the associations from the item Model - so mysql ends up issuing a many unnecessary queries (because of the association defined in the "item" Model class).
I'm trying to think what's the best way to minimize those unnecessary queries- I'm thinking to remove all associations from the Model classes, make all the Models Containable, and create associations in runtime where required.
Another option is to simply use bindModel / unbindModel wherever it makes sense.
I'm not really sure what's which approach is better, and if there's another, more suitable way to minimize those unnecessary mysql queries.
Any feedback would be great :)