Optimizing Bulk Data Movement with NHibernate StatelessSession
Stop memory bloat during bulk operations. Learn how NHibernate's IStatelessSession bypasses caching and dirty checking to provide high-throughput inserts and reads.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Stop memory bloat during bulk operations. Learn how NHibernate's IStatelessSession bypasses caching and dirty checking to provide high-throughput inserts and reads.
The goal is to stream a multi-million-row query in Hibernate ORM 6.x using ScrollableResults obtained from a StatelessSession , keeping heap usage flat while the JDBC driver batches rows according to a configured fetch size. The uncertainty sits at the Hibernate–JDBC boundary. Query#setFetchSize() and hibernate.jdbc.fetch_size are documented as hints, and dr