Skip to content

Implement DynamicWriteBatchSizeEstimator #445

@fresh-borzoni

Description

@fresh-borzoni

Search before asking

  • I searched in the issues and found nothing similar.

Description

Java dynamically adjusts the batch size target per table based on observed actual batch sizes - grows 10% when batches fill past 80%, shrinks 5% when below 50%, clamped to [2 * pageSize, maxBatchSize]. This right-sizes memory reservations for tables with small rows. We currently use a fixed writer_batch_size for all tables. The impact is less critical for us than Java since our memory limiter is semaphore-based (no physical page pool), but it would still improve memory budget utilization.

Willingness to contribute

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions