Skip to content
José da Cruz

Enterprise Architect, and Life Thinker

José da Cruz

Enterprise Architect, and Life Thinker

Learning Spring Boot from Zero to Cloud: Part 37 – JdbcTemplate – Batch Inserts & Updates

josedacruz, June 6, 2025June 6, 2025

In this episode, we explore how to perform batch inserts and updates using JdbcTemplate, optimize database interactions, and understand the trade-offs.

If you’re working with large datasets, ETL jobs, or high-throughput applications, mastering JdbcTemplate.batchUpdate() is a must.


📌 What You’ll Learn in This Video

✅ Introduction to JdbcTemplate
✅ Why batch operations improve performance
✅ Simple batch insert & update examples
✅ Key batchUpdate() API variants
✅ When to use vs when to avoid batching
✅ Advantages & potential pitfalls
✅ Transaction management tips
✅ Performance best practices
✅ Alternatives for large datasets


⏱️ Timestamps

00:00 – Intro & Series Overview
00:22 – What is JdbcTemplate?
01:11 – Why Batch Operations?
03:11 – Simple Batch Insert Example
04:06 – Using BatchPreparedStatementSetter
05:29 – ParameterizedPerparedStatementSetter_T_
08:12 – Controlling Batch Size
10:15 – Handling Errors
10:50 – Best Practice
13:08 – Alternatives – Big Queries
16:26 – Standard Flows
17:38 – Considerations & Summary
20:44 – Code Walkthrough

Related

spring-boot

Post navigation

Previous post
Next post

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • architecture (167)
  • artificial-intelligence (6)
  • books (2)
  • courses (4)
  • decision-frameworks (4)
  • finances (1)
  • java (8)
  • life-improvement (20)
  • metrics (3)
  • observability (2)
  • puzzles and challenges (3)
  • reviews (1)
  • security (8)
  • Soft Skills (1)
  • spring-boot (36)
  • Systems Thinking (3)
  • GitHub Weekly: AI Agent Tools Trending Right Now (November 2 – November 8, 2026)
  • Designing a Distributed Session Store: Why Sticky Sessions Break Under Load
  • Essential Reading: Release It! — Why Production Is a Different Game Than Development
  • GitHub Weekly: Top 10 Trending Repos (October 26 – November 1, 2026)
  • GitHub Weekly: Architecture & Infra Tools Worth a Look (October 19 – October 25, 2026)
©2026 José da Cruz | WordPress Theme by SuperbThemes