Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The pain of joining tables, are there any alternatives?

 
Timothy Sam
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic