Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BATCH-2317 Optimized JdbcPagingItemReader configuration for process indicator pattern #352

Closed
wants to merge 1 commit into from

Conversation

jpraet
Copy link
Contributor

@jpraet jpraet commented Nov 4, 2014

Allow absence of sortKeys when saveState=false.

indicator pattern

Allow absence of sortKeys when saveState=false.
@@ -209,6 +221,7 @@ public static String generateRowNumSqlQueryWithNesting(AbstractSqlPagingQueryPro
* @return the generated query
*/
public static String generateLimitJumpToQuery(AbstractSqlPagingQueryProvider provider, String limitClause) {
Assert.notEmpty(provider.getSortKeys(), "sortKeys must be specified for generating jumpToItem queries");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generateJumpToItemQuery is actually never called from JdbcPagingItemReader, the reader repositions itself from the startAfterValues. Maybe the generateJumpToItemQuery can be removed or made deprecated in PagingQueryProvider and related classes?

@jpraet
Copy link
Contributor Author

jpraet commented Feb 13, 2015

I'm closing this because I don't think this is the right approach. I'll elaborate in the JIRA ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant