Implementing Batch Jobs with Hibernate

preview_player
Показать описание
Like most Java developers, you probably use Hibernate directly or via Spring Data JPA to implement your application’s persistence layer. In general, this works very well for most use cases, but it causes some issues if you need to implement a batch job.

This is because Hibernate, like most object-relational mapping frameworks, maps each database record to an entity object. It processes each one as an independent element with its own lifecycle and its own database operations. This creates an overhead if you want to implement a batch job that works on thousands of records.

Like my channel? Subscribe!

Join the free Member Library:

Want to connect with me?

#Hibernate #BatchJobs #JPA
Рекомендации по теме
Комментарии
Автор

He @Thorben, excellent video .. a question pls ... I have a table in MySQL with AUTOINCREMENT PK, the @Id use IDENTITY strategy, I need now run operations in batch (inserts). Reading IDENTITY and Hibernate Batch are not friends. There is any option to run batch inserts with mysql without a change the table structure ?? Pls recommend me a doc or another video to read more about ... Great job, thanks

SACAViXTech