2007. augusztus 29., szerda

setPoolable - early optimization?

JDBC 4 dokó így szól:
Requests that a Statement be pooled or not pooled. The value specified is a hint to the statement pool implementation indicating whether the applicaiton wants the statement to be pooled. It is up to the statement pool manager as to whether the hint is used.
Szerintem ez egyszerűen Rossz Ötlet [TM], a pool az csak tuning, a tuningot pedig a konfigurációban jobb tartani, az alkalmazáslogikában nem, mert attól környezetfüggővé válik a kód.