Skip to content

Commit

Permalink
[indexer-alt] 5X default chunk row size (#20332)
Browse files Browse the repository at this point in the history
## Description 

Increase batch size by ~5X

## Test plan 

How did you test the new or updated feature?

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
- [ ] REST API:
  • Loading branch information
lxfind authored Nov 21, 2024
1 parent 66e0221 commit 46e4390
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/sui-indexer-alt/src/pipeline/concurrent/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ pub trait Handler: Processor {

/// If there are more than this many rows pending, the committer will only commit this many in
/// one operation.
const MAX_CHUNK_ROWS: usize = 200;
const MAX_CHUNK_ROWS: usize = 1000;

/// If there are more than this many rows pending, the committer applies backpressure.
const MAX_PENDING_ROWS: usize = 1000;
const MAX_PENDING_ROWS: usize = 5000;

/// Provides a way for individual pipeline to override the write_concurrency parameter
/// from the PipelineConfig. This is used to determine the number of concurrent tasks
Expand Down

0 comments on commit 46e4390

Please sign in to comment.