Documentation Archive Developer
Search
PATH  Documentation > WebObjects 4.5 > WebObjects Developer's Guide


Table of Contents Previous Section

Limit Database Fetches

Every database access that your application performs is a potential drag on performance. One easy way to limit trips to the database is to perform prefetching. For more information, see the chapter "Answers to Common Design Questions" in the Enterprise Objects Framework Developer's Guide.

If you have components that load images from a database, you should store the image in the WOResourceManager object's application-wide data cache if you know that the image is used more than once. To have the image stored in the cache, set the dynamic element's key attribute. When the key attribute is set, the image is stored in the cache under that key and WOResourceManager tries to retrieve the image from the cache before loading it from the database.

Table of Contents Next Section