Agreed with Brian.  It may seem like the table is getting huge (which
it eventually will).  But you're just keeping record of 2-3 INT data
types (depending on how you do the key), so much of it will fit into
memory anyhow.  I wouldn't worry too much about join tables being a
source of slowness (until it is; but it doesn't sound like you're
anywhere close to that right now).

On Jun 8, 9:36 am, brian <[email protected]> wrote:
> On Mon, Jun 8, 2009 at 10:03 AM, Céryl<[email protected]> wrote:
>
> > A table that holds user_id in one column, and product_id in the other,
> > maybe? But that would grow to a very large redundant table like this:
> > user product
> > 1         3
> > 1         6
> > 2         3
> > 2         4
> > 2         5
> > Etc.
>
> That's not redundant. The purpose of a join table is to associate 2
> (or more) other tables. While some fields may contain the same values,
> each row, as a whole, should be unique.
--~--~---------~--~----~------------~-------~--~----~
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