Prepared Statement and Statement/Query Caching
I am trying to understanding if Statement caching is useful in case of parametrized prepared statements. As per my understanding If I use caching, then query will cached based on its 'String'. In this case, if a query has different values of parameter then it is a different / new statement/string w.r.t. caching. Also, when parameters change, the results also change. Since prepared statements are parameterized, is it really useful to use caching in this case. I am using JDBC/Snaq DB Pool/ MySQL database. Statement Caching here is referred to two different cases: JAVA: Snaq DB pool provided