Oh yeah. I'm definitely keeping a rating field in each of the rateable
models. The load from having to go through the vote table and count
for every record would be ridiculous. A tiny bit of denormalization
never hurt anyone.
One more thing though... Is it alright to leave the vote table
denormal
Hello bakers.
I'm beginning on my second cake project and I need some advice with my
model setup. Here's the deal:
I have several models that users can vote up or down (think like
stackoverflow - how users can vote on both questions and answers), but
I would like to keep track of vote history. U
I've been searching for the best way to do this for a while and I
agree with Martin now. I really wish cake had a more elegant solution,
but this one is definitely the cleanest and fastest.
Just so it's out there, I extended this idea to take care of the
entire query string (what cake calls param