Tagged articles
4 articles
Page 1 of 1
FunTester
FunTester
Jul 16, 2024 · Backend Development

Mastering JDBC: Best Practices for Secure and Efficient Java Database Access

This guide explains how to set up JDBC drivers, construct connection URLs, use PreparedStatement instead of Statement, iterate ResultSet safely, manage resources with try‑with‑resources, handle transactions, employ connection pools, and properly process SQLExceptions for robust Java database applications.

Connection PoolJDBCPreparedStatement
0 likes · 15 min read
Mastering JDBC: Best Practices for Secure and Efficient Java Database Access
FunTester
FunTester
Dec 12, 2023 · Backend Development

Understanding ResultSet Resource Release and Statement Concurrency in MySQL JDBC

This article examines how MySQL's JDBC driver manages ResultSet resource release, the internal close mechanisms, and the concurrency limitations of Statement objects, illustrated with code excerpts and a Groovy virtual‑thread demo that reveals runtime exceptions when ResultSets are accessed after implicit closure.

JDBCResultSetStatement
0 likes · 8 min read
Understanding ResultSet Resource Release and Statement Concurrency in MySQL JDBC
ITPUB
ITPUB
May 28, 2020 · Databases

How UPSQL Proxy Implements MySQL Streaming to Boost Performance

This article explains the MySQL communication protocol, result‑set structure, client library interfaces, and the difference between store‑result and streaming modes, then details how UPSQL Proxy 2.4.0 adopts streaming to reduce latency and memory usage in distributed database environments.

Database MiddlewareResultSetStreaming
0 likes · 6 min read
How UPSQL Proxy Implements MySQL Streaming to Boost Performance
ITPUB
ITPUB
Apr 29, 2016 · Databases

How to Stream Large MySQL Query Results Without Running Out of Memory

MySQL normally loads an entire query result into memory, which can cause out‑of‑memory errors on large tables, but by adding the -q option in the console, enabling useCursorFetch in JDBC URLs, and setting stmt.setFetchSize(Integer.MIN_VALUE), you can switch to a streaming mode that returns rows one at a time.

JDBCMemoryResultSet
0 likes · 3 min read
How to Stream Large MySQL Query Results Without Running Out of Memory