Skip to content

Conversation

kumekay
Copy link
Collaborator

@kumekay kumekay commented Oct 9, 2025

Refactor index management to use fetch-based counters instead of time-based intervals

Implementation details:

  • Replace time-based BitmapInterval with counter-based MultiPackIndexInterval and BitmapIndexInterval
  • Multi-pack index now refreshes every 10 fetches (default, configurable per repo)
  • Bitmap index now rebuilds every 50 fetches (default, configurable per repo)
  • Both intervals can be disabled by setting to 0
  • Add per-repository override support for both index intervals
  • Remove separate bitmap refresh goroutine, integrate all operations into main mirror loop
  • Add fetch counter tracking with mutex synchronization per repository

@kumekay
Copy link
Collaborator Author

kumekay commented Oct 9, 2025

@vsaltxx PTAL

@kumekay kumekay force-pushed the feat/better-index-control branch from 25270d4 to b99ac4d Compare October 10, 2025 11:27
Copy link
Collaborator Author

@kumekay kumekay left a comment

Choose a reason for hiding this comment

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

@vsaltxx Thank you so much for detailed and valuable review!

@kumekay kumekay requested a review from vsaltxx October 10, 2025 11:28
Copy link

@vsaltxx vsaltxx left a comment

Choose a reason for hiding this comment

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

@kumekay Thank you for implementing the requesting changes! I left one comment about updating the documentation, it is on you weather to implement it or not :)

@kumekay kumekay merged commit 2f0860a into master Oct 10, 2025
2 checks passed
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.

2 participants