Project: springxd
Issue XD-1671: Set fetch size when reading from database in pre-packaged jobs
When running a query against a large dataset, JDBC will attempt to load the entire result set into memory by default. If this isn't desired (which would be the case in the prepackaged jobs), you can set the fetchSize on the JdbcCursorItemReader to set the number of rows to return with each fetch. It is good practice to make this match the commit interval. If the fetch size is not set with large datasets, the stack blows with an OutOfMemoryException.
Story points: 4