May I avoid the “n+1 finder problem” using ejbHome methods instead of ejbFind methods?
Yes. ejbHome methods can be used for operations like increaseAllSallaries(). This is done instead of invoking a finder method and then using business methods on every single instance of the resulting data. With BMP this whole operation can be made with a single query and is the only way to avoid the “n+1 finder problem”.
Related Questions
- How does Graycliff avoid the "Form Over Substance" Rule, which is known in Canada as "artificial transaction" designation, on its employee-tax-saving methods [Income Tax Act, Section 245]?
- What are the basic methods used by financial professionals to help their clients avoid probate?
- What are Baggy eyes and methods to avoid them?