Skip to content

SetyaMeas/SpringBoot-BatchInsert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Batch Insert - Spring Boot

In this project, we are dealing with Batch Insert in 3 differrent ways:

  • Hibernate (Spring Data JPA)
  • JDBC Batch Processing
  • JDBC with Multi Threading

Tech Stack

  • Java
  • Spring Boot
  • Maven
  • Flyway
  • PostgreSQL

Project initialize

Configure your database here: application.properties and flyway.conf

  1. Install dependencies
mvn clean install -DskipTests
  1. Run Database migrations
mvn flyway:migrate
  1. Run the application
mvn spring-boot:run

API endpoints

Method Endpoint Request Parameter Description
POST /api/product/hibernate total Batch insert using JPA
POST /api/product/jdbc total Batch insert using JDBC
POST /api/product/jdbc-threading total JDBC batch insert with multithreading

HTTP Client

To test API, send the HTTP-request inside client.http file.

Referrences: medium, baeldung

About

High-performance batch insert strategies in Spring Boot using JPA, JDBC, and multithreading.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages