We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fun insert_current_coin_balances (https://github.com/aptos-labs/aptos-indexer-processors/blob/main/rust/processor/src/processors/coin_processor.rs#L216). If two+ records with the same owner_address, coin_type_hash will be in one chunk, then insertion will be impossible (ON CONFLICT DO UPDATE).
INSERT INTO current_coin_balances (owner_address, coin_type_hash, coin_type, amount, last_transaction_version, last_transaction_timestamp) VALUES ('0x1', '0x1', 'test', 1, 1, now()), ('0x1', '0x1', 'test', 1, 2, now()) ON CONFLICT (owner_address, coin_type_hash) DO UPDATE SET amount = excluded.amount, last_transaction_version = excluded.last_transaction_version WHERE current_coin_balances.last_transaction_version <= excluded.last_transaction_version;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
fun insert_current_coin_balances (https://github.com/aptos-labs/aptos-indexer-processors/blob/main/rust/processor/src/processors/coin_processor.rs#L216). If two+ records with the same owner_address, coin_type_hash will be in one chunk, then insertion will be impossible (ON CONFLICT DO UPDATE).
Repro
The text was updated successfully, but these errors were encountered: