apache > db
Apache DB Project
 
Font size:      

The tips

The tips

  1. Use prepared statements with substitution parameters to save on costly compilation time. Prepared statements using substitution parameters significantly improves performance in applications using standard statements.
  2. Create Indexes, and Make Sure They're Being Used. Indexes speed up queries dramatically if the table is much larger than the number of rows retrieved.
  3. Increase the Size of the Data Page Cache and prime all the caches.
  4. Tune the size of database pages. Using large database pages has provided a performance improvement of up to 50%. There are also other storage parameters worth tweaking. If you use large database pages, increase the amount of memory available to Derby.
  5. Avoid expensive queries.
  6. Use the appropriate getXXX and setXXX methods for the type.
  7. Tune database booting/class loading. System startup time can be improved by reducing the number of databases in the system directory.

These tips might solve your particular performance problem. Be sure to visit the Support section of Derby's Web site for up-to-date performance tips and tricks.


Previous Page
Next Page
Table of Contents
Index