-
Notifications
You must be signed in to change notification settings - Fork 333
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
Performance improvement #565
Conversation
@@ -80,7 +80,12 @@ export class IndexerManager { | |||
|
|||
let poiBlockHash: Uint8Array; | |||
try { | |||
await this.apiService.setBlockhash(block.block.hash); | |||
const isUpgraded = block.specVersion !== this.prevSpecVersion; |
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.
Just store all versios you have come across in the mem, won't be many. (call from fetch service into api service)
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.
Make another ticket to improve the structure
adjust test add type mapping minor adjustment update types in StoreOperations, tidy up tidy up mapping types fix fix types tidy up New Crowdin updates (#510) * New translations helloworld-hosted.md (Thai) * New translations helloworld-hosted.md (Thai) * New translations helloworld-hosted.md (Thai) * New translations helloworld-localhost.md (Thai) * New translations dictionary.md (Thai) * New translations dictionary.md (Thai) * New translations README.md (Thai) * New translations README.md (Indonesian) * New translations references.md (Spanish) * New translations references.md (German) * New translations references.md (Italian) * New translations references.md (Japanese) * New translations references.md (Korean) * New translations references.md (Russian) * New translations references.md (Turkish) * New translations references.md (Ukrainian) * New translations references.md (Chinese Simplified) * New translations references.md (Vietnamese) * New translations references.md (Indonesian) * New translations references.md (Thai) * New translations upgrade.md (Russian) * New translations helloworld-localhost.md (Russian) * New translations quickstart.md (Thai) * New translations upgrade.md (Russian) * New translations quickstart.md (Thai) * New translations quickstart.md (Thai) * New translations graphql.md (Turkish) * New translations graphql.md (Turkish) * New translations introduction.md (Turkish) * New translations manifest.md (Turkish) * New translations manifest.md (Turkish) * New translations mapping.md (Turkish) * New translations mapping.md (Turkish) * New translations helloworld-hosted.md (Turkish) * New translations README.md (Thai) * New translations upgrade.md (Russian) * New translations upgrade.md (Russian) * New translations upgrade.md (Russian) * New translations understanding-helloworld.md (Thai) * New translations understanding-helloworld.md (Thai) * New translations references.md (Thai) * New translations contributing.md (Thai) * New translations contributing.md (Thai) * New translations contributing.md (Thai) * New translations contributing.md (Thai) * New translations social_media.md (Thai) * New translations quickstart.md (Turkish) * New translations understanding-helloworld.md (Turkish) * New translations run.md (Turkish) * New translations README.md (Turkish) * New translations introduction.md (Turkish) * New translations run-indexer.md (Thai) * New translations social_media.md (Spanish) * New translations social_media.md (German) * New translations social_media.md (Italian) * New translations social_media.md (Japanese) * New translations social_media.md (Korean) * New translations social_media.md (Russian) * New translations social_media.md (Ukrainian) * New translations social_media.md (Chinese Simplified) * New translations social_media.md (Vietnamese) * New translations social_media.md (Indonesian) * New translations social_media.md (Turkish) * New translations social_media.md (Thai) * New translations social_media.md (Thai) * New translations run.md (Thai) * New translations run.md (Thai) * New translations run.md (Thai) * New translations sandbox.md (Russian) * New translations sandbox.md (Russian) * New translations run.md (Thai) * New translations contributing.md (Turkish) * New translations contributing.md (Turkish) * New translations publish.md (Turkish) * New translations publish.md (Turkish) * New translations README.md (Russian) * New translations README.md (Russian) * New translations social_media.md (Vietnamese) * New translations batch-size.md (Chinese Simplified) * New translations batch-size.md (Chinese Simplified) * New translations block-height.md (Chinese Simplified) * New translations block-height.md (Chinese Simplified) * New translations debug-projects.md (Chinese Simplified) * New translations run.md (Thai) * New translations run.md (Thai) * New translations dictionary.md (Chinese Simplified) * New translations run.md (Thai) * New translations dictionary.md (Chinese Simplified) * New translations dictionary.md (Chinese Simplified) * New translations introduction.md (Chinese Simplified) * New translations run.md (Chinese Simplified) * New translations social_media.md (Indonesian) * New translations run.md (Chinese Simplified) * New translations run.md (Chinese Simplified) * New translations run.md (Chinese Simplified) * New translations run.md (Chinese Simplified) * New translations sandbox.md (Chinese Simplified) * New translations graphql.md (Chinese Simplified) * New translations run-indexer.md (Chinese Simplified) * New translations sandbox.md (Turkish) * New translations debug-projects.md (Turkish) * New translations dictionary.md (Turkish) * New translations run-indexer.md (Turkish) * New translations install.md (Spanish) * New translations manifest.md (Chinese Simplified) * New translations manifest.md (Chinese Simplified) * New translations manifest.md (Chinese Simplified) * New translations manifest.md (Chinese Simplified) custom datasource processors (#512) * datasource plugin * rebase spec version v0.2.0 * remove unused dependencies * * rename plugin to processor * call validate() on custom ds * perform custom ds's ds filter * add a mock processor `jsonfy` * improve types * custom datasource processors continued (#531) * Add build command * Fix and add tests for project 0.2.0 wiht custom ds * Fix issues with ds processor, add tests * Simplify fetch.service tests, add test for custom ds * Fix fetch service error if handler.filter not defined * Improve code reuse for Sandbox and Ds Processor, introduce SandboxService to clean up indexer manager * Revert contract-processors dependency in node * Move common custom data source validation to service * Fix project validation * fix minor issues * Fix sandbox service not being found * fix failed testcases * another place for empty list check Co-authored-by: Scott Twiname <[email protected]> [SKIP CI] Prerelease Add manual github workflow for github releases (#542) [SKIP CI] remove has changed path from workflow (#543) Co-authored-by: Lachlan McCrae <[email protected]> [SKIP CI] add github actions folder (#544) Co-authored-by: Lachlan McCrae <[email protected]> [SKIP CI] fix release script issue with changelog (#545) Co-authored-by: Lachlan McCrae <[email protected]> [SKIP CI] add some information to changelogs, remove contract-processors from workflow (#546) Co-authored-by: Lachlan McCrae <[email protected]> SubQuery Academy (#549) * mvp * Add Course Outline * Delete module-2.md * Remove old files Co-authored-by: seandotau <[email protected]> Update polkadot/api to 6.4.2 (#548) [SKIP CI] Prerelease Adds Module 1 (#558) patch common export issue (#557) [SKIP CI] Prerelease Implement `publish` command to upload project to IPFS (#486) * Implement publish command to upload project to IPFS * Revert jest config change * Fix eslint issues * Fix copyright header * Minify and sort keys for yaml files when publishing * Rework publish to use manifest as entry point rather than directory * Explicitly use cid v0 * Update validator and cli command to support validating projects published to ipfs * Update publishing to support project manifest spec 0.2.0 * Update README.md * Clean up * Fix test * Update ipfs endpoints for tests * Increase cli publish test timeout * Increase timeout for db module tests * Fix build issues [SKIP CI] Prerelease Update polkadot/api to 6.5.1 (#561) * Update polkadot/api to 6.5.1 * skip test * remove unused import [SKIP CI] Prerelease Add workflow for creating releases automatically (#559) [SKIP CI] Prerelease fix dependencies in common package, in order to fix cli import issue (#563) [SKIP CI] Prerelease Update polkadot/api to 6.5.2 (#564) [SKIP CI] Prerelease Performance improvement (#565) * Update polkadot/api to 6.5.2 * Improve api.at method [SKIP CI] Prerelease [release] 20211026 (#562) * [release] 20211026 * Update CHANGELOG * Update CHANGELOG disable profiler and remove log (#569) [SKIP CI] Prerelease [release] node 0.23.1 (#570) Add Moonbeam custom datasource processor (#547) [SKIP CI] Prerelease [SKIP CI] fix release pipeline for contract-processors (#571) refactor typeInterface into TypeClass
* Update polkadot/api to 6.5.2 * Improve api.at method
No description provided.