• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

iotaledger / iota / 16738220365
65%

Build:
DEFAULT BRANCH: develop
Ran 05 Aug 2025 03:49AM UTC
Jobs 1
Files 1371
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Aug 2025 11:18AM UTC coverage: 65.553% (-0.006%) from 65.559%
16738220365

push

github

web-flow
fix(iota-indexer): Batch insert backfilled data to respect PostgreSQL's parameter limit (#8084)

# Description of change

This PR fixes an issue where backfill tasks fail due to exceeding
PostgreSQL's limit of 65,535 parameters per query.

Previously, the insertion logic didn't batch inserts, causing failures
when a checkpoint produced too many rows. The fix introduces batching
logic that splits inserts into smaller chunks, ensuring the total
parameters per query remain within the postgres limit.

## Links to any relevant issues

Fixes https://github.com/iotaledger/iota/issues/8083

## How the change has been tested

Make sure to provide instructions for the maintainer as well as any
relevant configurations.

- [X] Basic tests (linting, compilation, formatting, unit/integration
tests)
- [ ] Patch-specific tests (correctness, functionality coverage)

I was testing backfilling of the table with the failing checkpoint
(alphanet) and it can proceed as expected.

### Infrastructure QA (only required for crates that are maintained by
@iotaledger/infrastructure)

Not relevant for this patch. This PR doesn't touch migration objects or
synchronization of the indexer.

- [ ] Synchronization of the indexer from genesis for a network
including migration objects.
- [ ] Restart of indexer synchronization locally without resetting the
database.
- [ ] Restart of indexer synchronization on a production-like database.
- [ ] Deployment of services using Docker.
- [X] Verification of API backward compatibility.

### Release Notes

- [ ] Protocol:
- [ ] Nodes (Validators and Full nodes):
- [ ] Indexer:
- [ ] JSON-RPC:
- [ ] GraphQL:
- [ ] CLI:
- [ ] Rust SDK:
- [ ] REST API:

0 of 7 new or added lines in 1 file covered. (0.0%)

1565 existing lines in 28 files now uncovered.

235447 of 359173 relevant lines covered (65.55%)

2337432.54 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
7
0.0
0.0% crates/iota-indexer/src/backfill/ingestion/task.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
91.78
-1.37% crates/iota-cluster-test/src/test_case/native_transfer_test.rs
1
94.43
0.0% crates/iota-core/src/consensus_adapter.rs
1
0.0
0.0% crates/iota-indexer/src/backfill/ingestion/task.rs
1
87.94
-0.71% crates/iota-network-stack/src/grpc_timeout.rs
1
76.56
0.0% crates/iota-types/src/crypto.rs
2
80.0
0.0% crates/iota-common/src/logging.rs
5
98.26
-1.45% crates/transaction-fuzzer/src/account_universe/transfer_gen.rs
6
74.71
-3.45% crates/iota-json-rpc/src/lib.rs
7
96.68
0.9% crates/iota-core/src/authority/test_authority_builder.rs
7
70.36
-0.12% crates/iota-core/src/db_checkpoint_handler.rs
8
68.63
-15.69% crates/iota-network-stack/src/anemo_ext.rs
10
28.21
-0.21% crates/iota-tool/src/db_tool/db_dump.rs
15
80.59
-0.03% crates/iota-core/src/checkpoints/checkpoint_executor/mod.rs
16
75.53
0.86% crates/test-cluster/src/lib.rs
21
35.77
-2.51% crates/iota-core/src/execution_cache/passthrough_cache.rs
33
78.54
-4.73% crates/iota-core/src/state_accumulator.rs
34
84.93
0.02% crates/iota-config/src/node.rs
48
90.74
0.11% crates/iota-core/src/execution_cache/writeback_cache.rs
54
88.28
0.13% crates/iota-core/src/epoch/randomness.rs
74
90.11
-9.74% crates/iota-types/src/test_checkpoint_data_builder.rs
89
74.33
-3.3% crates/iota-core/src/authority/authority_store_tables.rs
112
67.89
0.02% crates/iota-core/src/checkpoints/mod.rs
135
72.61
0.13% crates/iota-core/src/authority/authority_store.rs
150
82.8
0.36% crates/iota-core/src/authority.rs
174
81.96
0.12% crates/iota-node/src/lib.rs
176
69.79
-0.13% crates/iota-core/src/execution_cache.rs
189
85.97
-0.47% crates/iota-core/src/authority/authority_per_epoch_store.rs
195
70.55
-2.19% crates/iota-core/src/authority/authority_store_pruner.rs
Jobs
ID Job ID Ran Files Coverage
1 nextest+simtest - 16738220365.1 05 Aug 2025 03:49AM UTC 1373
65.54
GitHub Action Run
Source Files on build 16738220365
  • Tree
  • List 1371
  • Changed 40
  • Source Changed 23
  • Coverage Changed 38
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #16738220365
  • 29367974 on github
  • Prev Build on develop (#16711896026)
  • Next Build on develop (#16765282075)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc