Glement
Glement

Reputation: 401

Spring Boot Hibernate Update statement takes 7 seconds to persist 10kb entity

Hibernate persists 1 entity 7 seconds (calculated from time that it takes to run save()). Generated value annotation deleted since i never create new entity but only update existing. No relations for the table so no cascading updates performed. DB is Postgresql, indexed on primary key.

UPD Even saving entity without those two large columns (just putted there string "abc") it takes same amount of time.

Upvotes: -1

Views: 81

Answers (1)

Glement
Glement

Reputation: 401

The problem was that the id was BigInteger.

Upvotes: 0

Related Questions