Skip to content

Conversation

@zannis
Copy link
Contributor

@zannis zannis commented Sep 1, 2025

Changes:

Made Postgres methods bulk_insert_via_copy and bulk_insert_via_query internal to the crate now, with insert_bulk being the public API for bulk inserts
Updated all playground indexer files to use insert_bulk instead of directly calling internal methods:
erc_20_filter.rs
playground_types_filter.rs
rocket_pool_eth.rs
uniswap_v3_pool_filter.rs
Updated no_code.rs to use insert_bulk instead of manual size-based logic
Code generators: Updated template generation in events_bindings.rs and trace_bindings.rs to generate code using insert_bulk
Cleaned up some error messages based on the changes above
Added sanity check so that insert_bulk Uses COPY method if rows > 100 OR total_params > 65535 (which is the Postgres limit for maximum params)
Updated contract_address generated column to be char(42)
Updated indexed_filters slice to contain 3 items
Updated generated examples to reflect latest code
Removed playground_types from rust_playground project as they were unused in rindexer.yaml

@vercel
Copy link

vercel bot commented Sep 1, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
rindexer-documentation Ready Ready Preview Comment Sep 3, 2025 10:06am

@joshstevens19 joshstevens19 merged commit e2a6857 into joshstevens19:master Sep 3, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants