We have lots of places in application where we are setting list of strings for "in" operator as part of HQL/native sql.
prt.rate_plan_id in (:ratePlanArray)
For ratePlanArray named variable, list of string is set setParameterList().
Hibernate is setting query string for Query Plan Cache key as:-
prt.rate_plan_id in (:ratePlanId0_, :ratePlanId1_, :ratePlanId2_, :ratePlanId3_, :ratePlanId4_, :ratePlanId5_)
This will generate huge no of distinct queries for query Plan cache. Is there way, Hibernate does put only names variable in the queryString for ParameterList.
prt.rate_plan_id in (:ratePlanArray)
|