Tag

LargeDataExport

1 views collected around this technical thread.

Architect's Guide
Architect's Guide
May 5, 2023 · Backend Development

Exporting Millions of Records with JPA and MyBatis Using Streaming and CSV in Spring Boot

This article explains how to avoid OutOfMemoryError when exporting massive MySQL datasets by streaming data with JPA or MyBatis, writing each record directly to a CSV file, and provides complete Spring Boot code examples, performance comparisons, and deployment tips.

CSVJPALargeDataExport
0 likes · 11 min read
Exporting Millions of Records with JPA and MyBatis Using Streaming and CSV in Spring Boot