What is faster has_many through or actually persisting directly

0 votes
asked Feb 3, 2016 by Several6464 (1,170 points) 1 flag
I have following models and associations:Firm has_many :namespaces :through => :usersNamespace belongs_to :userUser has_many :namespacesUser belongs_to :firmQuestion is: is it faster.

3 Answers

+1 vote
answered Feb 8, 2016 by ZnlMay (800 points)
Here is a workaround for this that I personally find quite effective
For example, https://manning-content.s3.amazonaws.com/download/2/b00e356-f176-4de8-85d9-a7520a1c1817/crichardson_ch02.pdf then gives you a zip file to download
0 votes
answered Mar 31, 2016 by silvey (560 points)
One example is JPA Entity Fields (transient, persistent, version, mapped by)
It removes only those lines that are followed by another empty line
0 votes
answered Mar 31, 2016 by Nf_7531 (1,120 points)
I need to do something like this I ended up going with the following solution

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!