Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Part 4: Advanced Grails > Advanced GORM kung fu

13. Advanced GORM kung fu

In this chapter

  • Specialized domain class options

  • Caching, profiling, and optimizing tips

  • Dealing with multiple dataSource objects in one application

  • Legacy integration strategies


In chapter 3, you had your first exposure to Grails’ domain classes. Life was simple: we saved, we validated, and we used dynamic finds. You can go a long way with that knowledge—probably all the way to your first few publicly hosted Grails applications. But then you’ll hit the wall. As users flock to your stunning new social networking applications, you’ll wonder how you can tune your queries to run more efficiently. You’ll start to think about query-caching options. You’ll want to refactor your domain classes. And you’ll want to monitor where all your cycles are going. In short, you’ll want to take off the safety harness and get into some serious GORM kung fu. When you hit the performance and scalability wall, this is the chapter for you.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial