-
Notifications
You must be signed in to change notification settings - Fork 17
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
feat/indexer hotfixes #1383
feat/indexer hotfixes #1383
Conversation
altergui
commented
Sep 9, 2024
- indexer: hotfix 0013_recreate_table_transactions
- indexer: optimize idx.BlockList performance
turns out, some transactions in stage were indexed twice (same hash but different ID), this likely happened during last chain upgrade. handle this situation gracefully by simply replacing the duplicate entries.
Pull Request Test Coverage Report for Build 10772047373Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
turns out, a unified query with `COUNT(*) OVER() AS total_count` is 10x slower than two separate queries `SELECT *` and `SELECT COUNT(*)` also, optimize even further (~1000x) for the most common query: when listing all blocks without filters, don't even count, just return last height the benchmark code used to test is included
631f45d
to
c3cf08a
Compare
due to how the indexer is organized, if an organization hasn't created yet any election, EntityExists returns false although the account does exist.
This PR introduces the following changes in the developer-portal documentation: diff --git a/swaggers/vocdoni-api.yaml b/swaggers/vocdoni-api.yaml
index d473e57..1994085 100644
--- a/swaggers/vocdoni-api.yaml
+++ b/swaggers/vocdoni-api.yaml
@@ -3353,6 +3353,8 @@ components:
type: object
models.NewProcessTx:
properties:
+ faucetPackage:
+ $ref: '#/components/schemas/models.FaucetPackage'
nonce:
type: integer
process:
@@ -3650,6 +3652,8 @@ components:
type: string
duration:
type: integer
+ faucetPackage:
+ $ref: '#/components/schemas/models.FaucetPackage'
nonce:
type: integer
processId:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YOLO VI FUNSIONAR