title: What's the point of specifying hibernate.jdbc.batch_size?
body: <p>This Hibernate configuration ostensibly should control how many objects are cached in the first level cache. The reason is easy enough to understand, we don't want to run out of memory. </p>
  
  <p>But something is confusing me. Every implementation I have seen including <a href="http://docs.jboss.org/hibernate/core/3.3/reference/en/html/batch.html#batch-inserts" rel="noreferrer">this website</a>
  has an explicit flush and clear. No problem, but then what's point of the configuration property? </p>
  
  <p>Note: I'm assuming here is that somehow Hibernate monitors the size of the cache and if the number of objects of a certain type grows to be larger than the cache size then synchronize the cache with the db. Don't know if that assumption is wrong ???</p>