General AM Pool Configurations

8-24 Oracle Fusion Middleware Performance and Tuning Guide 9 Oracle TopLink EclipseLink JPA Performance Tuning 9-1 9 Oracle TopLink EclipseLink JPA Performance Tuning This chapter describes some of the available performance tuning features for EclipseLink, an open-source persistence framework used with Oracle TopLink. The chapter includes the following topics: ■ Section 9.1, About Oracle TopLink and EclipseLink ■ Section 9.2, Efficient SQL Statements and Queries ■ Section 9.3, Cache Configuration Tuning ■ Section 9.4, Coherence Integration ■ Section 9.5, Mapping and Descriptor Configurations ■ Section 9.6, Analyzing EclipseLink JPA Entity Performance

9.1 About Oracle TopLink and EclipseLink

Oracle TopLink includes the open source EclipseLink as the Java Persistence API JPA implementation. Oracle TopLink extends EclipseLink with advanced integration into the Oracle Application Server. The Java Persistence API JPA is a specification for persistence in Java EE and Java SE applications. In JPA, a persistent class is referred to as an entity. An entity is a plain Note: For more information on performance tuning in these areas, see the following: ■ EclipseLink Performance Tuning at http:wiki.eclipse.orgEclipseLinkPerformance ■ EclipseLink JPA Tuning Best Practices at http:wiki.eclipse.orgEclipseLinkFAQJPABestP ractices ■ Introduction to Optimization at http:wiki.eclipse.orgOptimizing_the_ EclipseLink_Application_ELUGIntroduction_to_ Optimization ■ Optimizing for a Production Environment at http:wiki.eclipse.orgOptimizing_the_ EclipseLink_Application_ELUGOptimizing_for_a_ Production_Environment . 9-2 Oracle Fusion Middleware Performance and Tuning Guide old Java object POJO class that is mapped to the database and configured for usage through JPA using annotations, persistence XML, or both. This chapter focuses on tuning JPA in the context of EJB3.0 and a Java EE environment. The information in this chapter assumes that you are familiar with the basic functionality of EclipseLink. Before you begin tuning, consider reviewing the introductory information found at the following: ■ Introduction to Java Persistence API section of the EclipseLink Developers Guide at http:wiki.eclipse.orgIntroduction_to_Java_ Persistence_API_ELUG ■ Introduction to EclipseLink JPA section of EclipseLink Developers Guide at http:wiki.eclipse.orgIntroduction_to_EclipseLink_JPA_ 28ELUG29 ■ Considering JPA Entity Architecture at http:wiki.eclipse.orgIntroduction_to_EclipseLink_ Application_Development_ELUGConsidering_JPA_Entity_ Architecture ■ Introduction to EclipseLink Queries at http:wiki.eclipse.orgIntroduction_to_EclipseLink_Queries_ ELUG ■ Introduction to Cache at http:wiki.eclipse.orgIntroduction_to_ Cache_ELUG ■ Introduction to Mapping and Configuration at http:wiki.eclipse.orgIntroduction_to_EclipseLink_Mapping_ and_Configuration_ELUG For more information on Oracle TopLink, see the TopLink page on OTN http:www.oracle.comtechnologyproductsiastoplinkindex.html . [Note that as of Oracle TopLink Release 11g, the older Toplink APIs have been deprecated. For more information, see the TopLink Release Notes at http:www.oracle.comtechnologyproductsiastoplinkdoc11110 relnotestoplink-relnotes.htmlCHDGAEDJ ]

9.2 Efficient SQL Statements and Queries

This section covers using efficient SQL statements and SQL querying. Table 9–1 and Table 9–2 show tuning parameters and performance recommendations related to SQL statements and querying. Note: This chapter serves as a quick start guide to performance tuning JPA in the context of a Java EE environment. While the chapter provides common performance tuning considerations and related documentation resources, it is not meant to be comprehensive list of areas to tune.