- Notifications
You must be signed in to change notification settings - Fork 4
@DisableSameSelectTypesWithDifferentParamValues
Verifies that the code doesn't produce the same SELECT statements with different parameter values (see the example below).
This annotation can reveal some N+1 selects. We recommend to configure it with a global scope. You can disable the annotation at method level with EnableSameSelectTypesWithDifferentParamValues annotation.
A test using the DisableSameSelectTypesWithDifferentParamValues annotation and generating the statements below will fail.
select team0_.id as id1_1_0_, team0_.name as name2_1_0_ from Team team0_ where team0_.id=? Params:[(1)]
select team0_.id as id1_1_0_, team0_.name as name2_1_0_ from Team team0_ where team0_.id=?" Params:[(2)]
π Β 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