title: Using Spring DAO's NamedParameterJdbcTemplate to process a large data set
body: <p>Using NamedParameterJdbcTemplate, when I execute a query, it retrieves millions of documents. I need to process them all, but they dont have to be loaded in the memory all at once. How can I process the result set in batches without the application having to specify additional query clauses (i.e. without using primary_key in ())</p>