In the particular case of a friends table I recommend to insert two records
for each relation. It's faster to read (remember 90% reads, 10% inserts) :)


<?php if (recipient.gender=='female') { echo "Besitos"; } else { echo
"Saludos"; }?>,

Pablo Viojo
[email protected]
http://pviojo.net

¿Que necesitas?
http://needish.com


On Thu, Aug 27, 2009 at 12:33 PM, Miles J <[email protected]> wrote:

>
> Not necessarily. If you are doing a friend system, the table would
> look like so:
>
> friends: id, user1_id, user2_id
>
> And 1 row would be for both user1 and user2, instead of adding 2 rows
> for each user.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to