Skip to content

Implement Batching for Performance #12

Description

@mgazza

Overview

Improve existing batching mechanism with configurable limits and performance monitoring.

Current State

We already have essential batching for sync operations:

  • GetLatestChanges: Caps at 100k changes total (prevents memory/network overload)
  • MergeChanges: Processes in 10k transaction batches (avoids DB transaction size limits)

Improvements Needed

  • Make batch sizes configurable instead of hardcoded constants
  • Add batch performance metrics - track batch utilization and timing
  • Evaluate optimal batch sizes - are 100k/10k appropriate defaults?
  • Consider adaptive batching - adjust sizes based on system performance
  • Add batch size validation - ensure configured values are reasonable

Priority

Phase 2: Performance at Scale - Optimize existing foundation

Labels

enhancement, performance, batching

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions