-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Persistence Best Practices for Java Applications
By :

The following considerations apply not only to Panache but also to JPA-based applications in general. To help identify or go through the performance tuning process, you can always rely on the framework capabilities of outputting the DDLs being executed (database SQL operations) and the database operations statistics. Hibernate, for example, offers several configuration parameters such as show_sql
, generate_statistics
, jdbc.batch_size
, default_batch_fetch_size
, and cache.use_query_cache
. In the following paragraphs, you’ll find considerations revolving around such configurations. For now, check here how some configuration could be applied to the sample Quarkus application example we just created. These properties allow the logging of DDLs and statistics:
quarkus.hibernate-orm.log.sql=truequarkus.hibernate-orm.statistics=true quarkus.hibernate-orm.metrics.enabled=true quarkus.log.level=DEBUG
Note that verbose logging configuration...