You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "dixitdeepak (via GitHub)" <gi...@apache.org> on 2026/05/05 12:30:50 UTC
[PR] Replace EntityListIterator.hasNext() with next()-based iteration for performance [ofbiz-framework]
dixitdeepak opened a new pull request, #1163:
URL: https://github.com/apache/ofbiz-framework/pull/1163
Improved: Updated iteration logic to avoid using EntityListIterator.hasNext(), which is inefficient due to JDBC ResultSet behavior.
- Replaced hasNext() checks with next() != null pattern
- Aligned with recommended usage in EntityListIterator JavaDoc
- Prevented unnecessary ResultSet cursor operations and warning logs
- Improved iteration performance and reduced overhead
Example:
while ((value = iterator.next()) != null) { ... }
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@ofbiz.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Replace EntityListIterator.hasNext() with next()-based iteration for performance [ofbiz-framework]
Posted by "dixitdeepak (via GitHub)" <gi...@apache.org>.
dixitdeepak merged PR #1163:
URL: https://github.com/apache/ofbiz-framework/pull/1163
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@ofbiz.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org