JDBC from scratch: DriverManager, the three Statement types, ResultSet iteration. PreparedStatement as SQL injection prevention and batch optimisation. Why connection creation is expensive (TCP + auth + session). HikariCP's connection acquisition, the pool sizing formula (threads × (Cm-1) + 1), and leak detection configuration.
// Lessons
- 01soon
JDBC from Scratch — DriverManager, Connection and the Three Statement Types
- 02soon
ResultSet and Data Retrieval — Iteration, Column Access and Type Safety
- 03soon
PreparedStatement — SQL Injection Prevention and Parameterisation
- 04soon
Batch Operations — Sending 10,000 Rows Without 10,000 Round Trips
- 05soon
Why Connection Pooling? — The True Cost of Connection Creation
- 06soon
HikariCP Internals — Pool Sizing, Acquisition and Validation
- 07soon
HikariCP Configuration — Timeouts, Leak Detection and Production Settings