Greg Donald wrote:
[...]
> 
> Umm yeah, well.. I work in genetics research and I can tell you I have
> this exact scenario _all the time_.  

And you use this sort of data model for it?

> Genetic pathways repeat
> throughout any genome, human or other.  Your assumption that
> everyone's data is like your own is illogical.

I'm not making any assumptions about other people's data.  I am merely 
talking about what can and can't be modeled effectively with a 
particular data structure.

> 
> And like I was saying, to avoid the problem I use a join model.
> Storing an extra integer column and having an extra class in play
> costs very little when compared to the headaches of having to look up
> join table records using multiple keys and include limit statements.
> It's so much easier to just say Foo.delete( 18176236 ).

For your use case, this probably makes sense.  For a simple habtm where 
these features are not needed, I believe it is overkill.

> 
> 
> --
> Greg Donald
> http://destiney.com/

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to