-
Notifications
You must be signed in to change notification settings - Fork 4
@ExpectJdbcBatching
Verifies that insert, delete, and update statements are processed through JDBC batches of batchSize elements.
JDBC roundtrips can dramatically impact application performance. Batching of inserts, updates, and deletes statements allow us to reduce the roundtrip number.
You may sometimes think that you are using JDBC batching, but in fact, you are not: Article 1, Article 2.
Name | Type | Meaning | Default value |
---|---|---|---|
batchSize | int | JDBC batch size | - |
batchSize is optional. With no given batch size value, the annotation checks that insert, delete, and update statements are processed through JDBC batches without verifying the batch size.
A 0 batch size means that JDBC batching is disabled.
@ExpectJdbcBatching(batchSize = 30)
π Β Core
π Β JVM
π Β SQL
π Β Scopes
π Β Create an annotation
π Β JUnit 4
π Β JUnit 5
π Β TestNG
π Β Spring
π Β Detect and fix N+1 SELECT
π Β Maven performance
π Β Spring Boot - JUnit 4
π Β Spring Boot - JUnit 5
π Β Micronaut Data - JUnit 5
π Β Micronaut - Spring - JUnit 5
π Β Quarkus - JUnit 5
π Β FAQ
π Β QuickPerf code