girish created Bug HHH-7639
Issue Type: Bug Bug
Affects Versions: 3.3.1
Assignee: Unassigned
Attachments: Country1.hbm.xml, TestOutput.txt, testSimpleOverflow.java
Components: caching (L2)
Created: 24/Sep/12 10:50 AM
Description:

Cache Overflow makes single select query call to DB.
EhCache.xml:
<cache name="Country1"
maxEntriesLocalHeap="200"
eternal="false"
overflowToDisk="false"
diskPersistent="false"
timeToLiveSeconds="800"
/>

Total Row count of table Country=229

.java file fires same simple SELECT query for 10times

1st query goes to DB and get cached.
2nd query checks cache and here in this case cache-limit reached(200),i.e. cache overflow happened ,
single select query fired per row(output attached).

Expected behaviour:
There should be some configuration to control the no. of queries / or it should fire the single query for non-cached elements.
Tried batch-size option but has limitation of only 1000 keys in 'IN' Clause

Environment: hibernate 3.3.1ga, ehcache 2.5,oracle 10g
Project: Hibernate ORM
Labels: ehcache
Priority: Major Major
Reporter: girish
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira