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

Refactor stats.lua to add pagination support #559

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

veteranbv
Copy link

This update enhances the stats.lua script by implementing pagination, enabling users to view and analyze larger datasets efficiently. Several ASF projects have monthly activity exceeding the 5000-message limit previously imposed. With pagination, users can navigate through data in manageable chunks, making the script more scalable and suitable for high-volume mailing lists.

Additionally:

  • Removed duplicate variable declarations for dhh and total_hits to improve code maintainability.
  • Refactored query logic to handle offsets and scrolling for large result sets, ensuring compatibility with Elasticsearch's MAX_RESULT_WINDOW.

These changes improve usability for larger ASF projects while maintaining backward compatibility for smaller datasets.

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