Tag

Streaming Query

1 views collected around this technical thread.

Sohu Tech Products
Sohu Tech Products
Jun 7, 2023 · Backend Development

MyBatis Streaming Query (Cursor) Tutorial and Best Practices

This article introduces MyBatis streaming query using the Cursor interface, explains its core methods, demonstrates implementation with code examples, discusses suitable application scenarios, and outlines important considerations for efficient and safe large‑scale data processing in Java backend development.

CursorJavaMyBatis
0 likes · 11 min read
MyBatis Streaming Query (Cursor) Tutorial and Best Practices
Top Architect
Top Architect
Jun 5, 2023 · Backend Development

MyBatis Streaming Query: Concepts, Cursor API, Implementation, and Use Cases

This article introduces MyBatis streaming queries, explains the Cursor interface and its methods, provides step‑by‑step code examples for configuration and implementation, discusses practical application scenarios such as large‑scale data processing, and highlights important considerations for efficient and safe usage.

Backend DevelopmentCursorJava
0 likes · 11 min read
MyBatis Streaming Query: Concepts, Cursor API, Implementation, and Use Cases
Architect's Guide
Architect's Guide
Apr 1, 2023 · Big Data

Handling Large Data Queries in MySQL with MyBatis: Regular, Stream, and Cursor Approaches

The article explains how to efficiently retrieve and process massive MySQL result sets in Java using MyBatis, comparing regular pagination, streaming queries via Cursor, and cursor-based fetchSize techniques, and provides practical code examples and best‑practice tips to avoid OOM and improve performance.

CursorFetchSizeMyBatis
0 likes · 10 min read
Handling Large Data Queries in MySQL with MyBatis: Regular, Stream, and Cursor Approaches
Top Architect
Top Architect
Mar 15, 2023 · Databases

Handling Large Data Sets in MySQL: Regular, Streaming, and Cursor Queries with MyBatis

The article explains how to process massive MySQL data sets—covering data migration, export, and batch handling—by comparing regular pagination, streaming queries using server‑side cursors, and cursor‑based fetchSize techniques, and provides concrete MyBatis code examples for each approach.

CursorDatabase OptimizationMyBatis
0 likes · 8 min read
Handling Large Data Sets in MySQL: Regular, Streaming, and Cursor Queries with MyBatis
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
Top Architect
Top Architect
Nov 17, 2021 · Backend Development

Using MyBatis Streaming Queries with Cursor: Concepts and Implementation Options

This article explains the concept of streaming queries in MyBatis, introduces the Cursor interface, demonstrates typical usage with try‑resource, and provides three practical solutions—using SqlSessionFactory, TransactionTemplate, and @Transactional—to keep the database connection open and avoid cursor‑closed errors.

CursorDatabaseJava
0 likes · 7 min read
Using MyBatis Streaming Queries with Cursor: Concepts and Implementation Options
Selected Java Interview Questions
Selected Java Interview Questions
Oct 12, 2021 · Backend Development

Implementing MyBatis Streaming Queries with Cursor and Keeping Database Connections Open

The article explains the concept of streaming queries in MyBatis, introduces the Cursor interface, demonstrates how to use it in Spring MVC controllers, and provides three practical solutions—SqlSessionFactory, TransactionTemplate, and @Transactional—to keep the database connection open during iteration.

CursorJavaMyBatis
0 likes · 7 min read
Implementing MyBatis Streaming Queries with Cursor and Keeping Database Connections Open
Top Architect
Top Architect
Jul 21, 2021 · Databases

How to Perform Streaming Queries with MyBatis Cursor and Keep the Database Connection Open

This article explains the concept of streaming queries, introduces MyBatis' Cursor interface, demonstrates how to use it in Spring MVC controllers, and provides three practical solutions—using SqlSessionFactory, TransactionTemplate, or the @Transactional annotation—to keep the database connection alive during iteration.

CursorDatabaseJava
0 likes · 7 min read
How to Perform Streaming Queries with MyBatis Cursor and Keep the Database Connection Open
Top Architect
Top Architect
May 19, 2021 · Databases

MyBatis Streaming Query: Cursor Interface and Practical Implementations

This article explains MyBatis streaming queries using the Cursor interface, demonstrates how to define a Mapper that returns a Cursor, shows common pitfalls with closed connections, and provides three solutions—manual SqlSession handling, TransactionTemplate, and @Transactional—to keep the database connection open while iterating results.

CursorDatabaseJava
0 likes · 7 min read
MyBatis Streaming Query: Cursor Interface and Practical Implementations
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
Selected Java Interview Questions
Selected Java Interview Questions
Dec 11, 2020 · Databases

Implementing MyBatis Streaming Queries in Spring: Concepts, API, and Three Practical Solutions

This article explains the concept of streaming queries, introduces MyBatis's Cursor interface, demonstrates how to use it in Spring MVC controllers, and provides three concrete solutions—using SqlSessionFactory, TransactionTemplate, and @Transactional—to keep the database connection open and avoid cursor‑closed errors.

CursorDatabaseJava
0 likes · 7 min read
Implementing MyBatis Streaming Queries in Spring: Concepts, API, and Three Practical Solutions
Architecture Digest
Architecture Digest
Nov 28, 2020 · Databases

How to Perform Streaming Queries with MyBatis Cursor and Keep the Database Connection Open

This article explains the concept of streaming queries in MyBatis, introduces the Cursor interface, demonstrates common pitfalls with connection closure, and provides three practical solutions—using SqlSessionFactory, TransactionTemplate, or @Transactional—to safely retrieve large result sets without exhausting memory.

CursorDatabaseJava
0 likes · 7 min read
How to Perform Streaming Queries with MyBatis Cursor and Keep the Database Connection Open