Skip to Content
WebObjects® Developer's Guide
book

WebObjects® Developer's Guide

by Ravi Mendis
June 2002
Intermediate to advanced content levelIntermediate to advanced
400 pages
7h 48m
English
Sams
Content preview from WebObjects® Developer's Guide

Making Performance Optimizations to the Object Model

We're going to look at two methods of optimizing, the model and the fetches it performs.

Introduction to Prefetching

The first method we'll look at is a fairly simple method to use.

You might have noticed that displaying the list of Forum.moderators, on the Main page, resulted in the fetching of the moderators for each of the forums listed. This would have consisted of two fetches per forum. One for the JOIN table and the second from the USER table.

When an Enterprise Object is fetched, its related objects are not fetched along with it. This is for performance and efficiency.

Imagine if this were the case. Then an entire object graph would be pulled into memory when an Enterprise Object is ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Real World XML

Real World XML

Steven Holzner
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer

Publisher Resources

ISBN: 0672323265Purchase book