Skip to content

Commit

Permalink
Further limit batch sizes to 50
Browse files Browse the repository at this point in the history
  • Loading branch information
hatemosphere committed Oct 13, 2023
1 parent 81fed5c commit 4e785d4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/indexer/lib/indexer/block/catchup/fetcher.ex
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ defmodule Indexer.Block.Catchup.Fetcher do
# DO NOT use them directly in the code. Get options from `state`.

@blocks_batch_size 10
@blocks_concurrency 5
@blocks_concurrency 10
@sequence_name :block_catchup_sequencer

defstruct blocks_batch_size: @blocks_batch_size,
Expand Down
2 changes: 1 addition & 1 deletion apps/indexer/lib/indexer/block/fetcher.ex
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ defmodule Indexer.Block.Fetcher do
# These are all the *default* values for options.
# DO NOT use them directly in the code. Get options from `state`.

@receipts_batch_size 250
@receipts_batch_size 50
@receipts_concurrency 10

@doc false
Expand Down
2 changes: 1 addition & 1 deletion apps/indexer/lib/indexer/fetcher/token_balance.ex
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ defmodule Indexer.Fetcher.TokenBalance do

@defaults [
flush_interval: 300,
max_batch_size: 100,
max_batch_size: 50,
max_concurrency: 10,
task_supervisor: Indexer.Fetcher.TokenBalance.TaskSupervisor
]
Expand Down
2 changes: 1 addition & 1 deletion apps/indexer/lib/indexer/temporary/uncles_without_index.ex
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ defmodule Indexer.Temporary.UnclesWithoutIndex do

@defaults [
flush_interval: :timer.seconds(3),
max_batch_size: 100,
max_batch_size: 50,
max_concurrency: 10,
task_supervisor: Indexer.Temporary.UnclesWithoutIndex.TaskSupervisor,
metadata: [fetcher: :uncles_without_index]
Expand Down

0 comments on commit 4e785d4

Please sign in to comment.