This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Hi, I was wondering if there are any other way to insert records in the database to avoid too many joins. Ihave more than 10 tables to join, maybe 11 or 12... When constructing the query, it's just too lengty... Are there any other technniques you could suggest? Thank you.
You could denormalize your tables. But that would be a bad thing, since it would weaken your data model and open your data up to corruption. It is the sort of thing you might do if the number of joins in a query were impacting performance, but if your only gripe is it takes a long time to write SQL I wouldn't do it. [ June 09, 2006: Message edited by: Paul Sturrock ]