Tag

database-connection

2 views collected around this technical thread.

Architect's Guide
Architect's Guide
Apr 6, 2025 · Databases

Analyzing MySQL Connection Latency in Java Applications

This article investigates the time cost of establishing and closing MySQL connections in Java web applications, using Wireshark packet captures and code examples to demonstrate that a single connection can take over 200 ms, highlighting the importance of connection pooling and performance optimizations.

JavaMySQLWireshark
0 likes · 7 min read
Analyzing MySQL Connection Latency in Java Applications
Architect's Guide
Architect's Guide
Feb 12, 2025 · Databases

Analyzing MySQL Database Connection Latency in Java Applications

This article investigates the time cost of establishing and closing a MySQL connection from a Java web application, using Wireshark packet captures and simple code examples to quantify latency and illustrate why connection pooling is essential for high‑traffic services.

JavaMySQLconnection pooling
0 likes · 7 min read
Analyzing MySQL Database Connection Latency in Java Applications
Top Architecture Tech Stack
Top Architecture Tech Stack
Jan 14, 2025 · Databases

Analyzing MySQL Connection Latency in Java Web Applications

This article investigates the detailed steps and time consumption of establishing and closing a MySQL connection from a Java web application, using Wireshark packet captures and code examples to demonstrate why connection pooling is essential for high‑traffic services.

JavaMySQLWireshark
0 likes · 7 min read
Analyzing MySQL Connection Latency in Java Web Applications
Architect's Guide
Architect's Guide
Nov 24, 2024 · Databases

Analyzing the Time Cost of Establishing MySQL Database Connections in Java Applications

This article examines how a Java web application connects to a MySQL database, measuring each step of the TCP handshake, authentication, and setup with Wireshark, and demonstrates that a single connection can take over 200 ms, highlighting the importance of connection pooling.

JavaMySQLconnection pooling
0 likes · 6 min read
Analyzing the Time Cost of Establishing MySQL Database Connections in Java Applications
Architecture Digest
Architecture Digest
Jul 21, 2024 · Databases

Analyzing the Cost of Establishing MySQL Database Connections in Java Applications

This article examines the detailed steps and timing of establishing a MySQL database connection using Java, measures the latency of the TCP handshake and authentication phases, and demonstrates why connection pooling is essential for high‑traffic web applications.

JavaMySQLWireshark
0 likes · 7 min read
Analyzing the Cost of Establishing MySQL Database Connections in Java Applications
Selected Java Interview Questions
Selected Java Interview Questions
Jul 19, 2024 · Databases

Analyzing the Cost of Establishing a MySQL Database Connection in Java

This article investigates the time consumption of creating and closing a MySQL connection from a Java application, measuring each network and protocol step with Wireshark and code examples, and demonstrates why connection pooling is essential for high‑traffic web services.

JavaMySQLWireshark
0 likes · 6 min read
Analyzing the Cost of Establishing a MySQL Database Connection in Java
php中文网 Courses
php中文网 Courses
Apr 24, 2024 · Backend Development

How to Connect to a Database Using PHP

This tutorial explains how to connect PHP to databases using both mysqli and PDO, covering connection setup, error handling, executing queries, and properly closing the connection, with complete code examples for each method.

MySQLPDOPHP
0 likes · 4 min read
How to Connect to a Database Using PHP
Architecture Digest
Architecture Digest
Mar 29, 2024 · Databases

Analyzing the Cost of Establishing MySQL Database Connections in Java Applications

This article examines the detailed steps and performance impact of creating a MySQL connection from a Java web application, measures the latency of the handshake and authentication using Wireshark, and demonstrates why connection pooling is essential for high‑traffic services.

JavaMySQLconnection pooling
0 likes · 6 min read
Analyzing the Cost of Establishing MySQL Database Connections in Java Applications
Java Captain
Java Captain
Mar 28, 2024 · Databases

Analyzing the Cost of Establishing MySQL Database Connections in Java Applications

This article investigates the time overhead of establishing MySQL database connections in Java web applications, detailing the TCP handshake, authentication steps, and measured latency using Wireshark, and demonstrates why connection pooling is essential to avoid hundreds of milliseconds per request.

JavaMySQLWireshark
0 likes · 7 min read
Analyzing the Cost of Establishing MySQL Database Connections in Java Applications
Code Ape Tech Column
Code Ape Tech Column
Nov 28, 2022 · Backend Development

Resolving Long Transactions and Connection‑Closed Issues in Spring with Druid

This article analyzes why a Spring service encounters "connection closed" errors during long‑running transactions, explains how MyBatis and Druid manage connections, and provides a programmatic‑transaction solution that splits large operations into smaller units to prevent connection leaks and timeouts.

DruidLong TransactionSpring
0 likes · 11 min read
Resolving Long Transactions and Connection‑Closed Issues in Spring with Druid
Architect
Architect
Aug 5, 2022 · Databases

Understanding Object Pooling in Java: Commons Pool 2, HikariCP, and Performance Benchmarks

This article explains Java object pooling concepts, introduces the Commons Pool 2 library and its usage with Redis's Jedis client, compares it with the high‑performance HikariCP database connection pool, and presents JMH benchmark results demonstrating significant throughput gains, while also covering configuration parameters and interview questions.

Commons PoolHikariCPJMH
0 likes · 15 min read
Understanding Object Pooling in Java: Commons Pool 2, HikariCP, and Performance Benchmarks
Top Architect
Top Architect
Jul 1, 2022 · Databases

Analyzing the Time Cost of Establishing MySQL Database Connections in Java Web Applications

This article examines how a MySQL connection is created from a Java web application, breaking down the TCP handshake, authentication, and variable‑setting steps with Wireshark captures, measuring latency, and demonstrating why connection pooling is essential to avoid hundreds of milliseconds of overhead per request.

Connection PoolJavaMySQL
0 likes · 7 min read
Analyzing the Time Cost of Establishing MySQL Database Connections in Java Web Applications
Top Architect
Top Architect
Apr 14, 2022 · Databases

Analyzing the Cost of Establishing MySQL Database Connections in Java

This article investigates how much time a simple Java program spends establishing and closing a MySQL connection, measures the latency of each TCP and MySQL handshake step with Wireshark, and demonstrates why connection pooling is essential for high‑traffic web services.

JavaMySQLconnection pooling
0 likes · 8 min read
Analyzing the Cost of Establishing MySQL Database Connections in Java
Top Architect
Top Architect
Mar 13, 2022 · Backend Development

Using MyBatis Cursor for Streaming Queries and Managing Database Connections in Spring

This article explains how MyBatis streaming queries work via the Cursor interface, why keeping the database connection open is essential, and presents three practical solutions—using SqlSessionFactory, TransactionTemplate, or @Transactional—to correctly handle streaming data in Spring applications.

CursorJavaMyBatis
0 likes · 9 min read
Using MyBatis Cursor for Streaming Queries and Managing Database Connections in Spring
php中文网 Courses
php中文网 Courses
Mar 9, 2021 · Databases

Troubleshooting PHP PDO MySQL Connection Issues on Windows

This guide explains how to enable the PDO extension, configure php.ini, write connection code with proper error handling, and debug SQL statement errors to resolve common MySQL connection problems in PHP on Windows environments.

MySQLTroubleshootingWindows
0 likes · 3 min read
Troubleshooting PHP PDO MySQL Connection Issues on Windows
Top Architect
Top Architect
Jan 27, 2021 · Databases

MyBatis Streaming Query (Cursor) – Keeping the Database Connection Open

This article explains what a streaming query is, introduces MyBatis's Cursor interface and its methods, demonstrates common pitfalls such as the cursor being closed prematurely, and provides three practical solutions using SqlSessionFactory, TransactionTemplate, and @Transactional to keep the database connection alive during streaming reads.

CursorJavaMyBatis
0 likes · 7 min read
MyBatis Streaming Query (Cursor) – Keeping the Database Connection Open
Architect's Tech Stack
Architect's Tech Stack
Sep 19, 2020 · Databases

Getting Started with DBeaver: Installation, Database Connections, and ER Diagram Generation

This article introduces DBeaver, a free open‑source Java‑based database management tool, covering its cross‑platform installation, JDBC support for a wide range of relational and NoSQL databases, step‑by‑step connection setup, and how to generate ER diagrams from existing schemas.

DBeaverDatabase ManagementER diagram
0 likes · 6 min read
Getting Started with DBeaver: Installation, Database Connections, and ER Diagram Generation
DevOps Cloud Academy
DevOps Cloud Academy
Sep 25, 2019 · Databases

How to Connect MySQL and Oracle Databases with JMeter

This guide walks through configuring JMeter to connect to MySQL and Oracle databases via JDBC, covering driver installation, JMeter component setup, request creation, result verification, and troubleshooting common connection errors for performance testing.

JDBCJMeterMySQL
0 likes · 4 min read
How to Connect MySQL and Oracle Databases with JMeter