Skip to content
New issue

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

Include partial index for transactions.asset (v3) #3947

Closed
sebastijankuzner opened this issue Aug 10, 2020 · 0 comments
Closed

Include partial index for transactions.asset (v3) #3947

sebastijankuzner opened this issue Aug 10, 2020 · 0 comments
Assignees

Comments

@sebastijankuzner
Copy link
Contributor

Expected Behavior

Database should save transaction with very big assets even if they are too big to be indexed.

Current Behavior

Database rejects big multi-payment transactions if asset is too big to be properly indexed, which result in error:

ERROR: Could not save 101 blocks to database : QueryFailedError: index row size 3120 exceeds btree version 4 maximum 2704 for index "transactions_asset"
    at new QueryFailedError (/home/sebastijan.kuzner/core/node_modules/typeorm/error/QueryFailedError.js:11:28)
    at Query.<anonymous> (/home/sebastijan.kuzner/core/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:176:38)
    at Query.handleError (/home/sebastijan.kuzner/core/node_modules/pg/lib/query.js:146:19)
    at Connection.connectedErrorMessageHandler (/home/sebastijan.kuzner/core/node_modules/pg/lib/client.js:233:17)
    at Connection.emit (events.js:315:20)
    at /home/sebastijan.kuzner/core/node_modules/pg/lib/connection.js:109:10
    at Parser.parse (/home/sebastijan.kuzner/core/node_modules/pg-protocol/dist/parser.js:42:17)
    at Socket.<anonymous> (/home/sebastijan.kuzner/core/node_modules/pg-protocol/dist/index.js:8:42)
    at Socket.emit (events.js:315:20)
    at addChunk (_stream_readable.js:295:12)

Possible Solution

Implement partial index for transactions assets.

@sebastijankuzner sebastijankuzner changed the title Include partial index for transactions.assets (v3) Include partial index for transactions.asset (v3) Aug 10, 2020
@sebastijankuzner sebastijankuzner self-assigned this Aug 11, 2020
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

No branches or pull requests

1 participant