Database Articles
2 articles about Database. Explore Spring Boot implementation, design, and operations across related topics.
-
How to Correctly Configure and Tune HikariCP Connection Pool in Spring Boot
Explains the default values and production-recommended values for HikariCP's main parameters (maximumPoolSize, connectionTimeout, maxLifetime, keepaliveTime), along with the official pool sizing formula and application.yml implementation examples. Also covers how to diagnose the causes of Connection is not available errors and how to detect connection leaks using leakDetectionThreshold.
-
Introduction to Spring Boot JPA Relationship Mapping - How to Use @OneToMany/@ManyToOne
A beginner-friendly guide to Spring Boot JPA's @OneToMany/@ManyToOne/@ManyToMany. Covers the differences between bidirectional and unidirectional mappings, mappedBy, cascade, FetchType, and the N+1 problem with code examples to resolve common pitfalls.