-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hotfix for API queries for activations (#5334)
Modify `MeshService.LayersQuery` to return ONLY the single, canonical block for each queried layer. Fixes performance issues for now by not querying any activations, proposals, etc. Modify `MeshService.AccountMeshDataQuery` not to query activations to prevent memory/CPU bomb ## Motivation Closes #5315 Closes #5006 ## Changes - Add method to mesh to return single, valid, applied block for a given layer - Modify `MeshService.LayersQuery` to use this new method - Additionally, remove query for activations (leave this empty for now) - Modify `MeshService.AccountMeshDataQuery` not to query activations ## Test Plan Tests updated ## TODO <!-- This section should be removed when all items are complete --> - [x] Explain motivation or link existing issue(s) - [x] Test changes and document test plan - [x] Update documentation as needed - [x] Update [changelog](../CHANGELOG.md) as needed Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Matthias Fasching <[email protected]> Co-authored-by: Jędrzej Nowak <[email protected]> Co-authored-by: Kacper Sawicki <[email protected]>
- Loading branch information
1 parent
61bed05
commit 813d26d
Showing
8 changed files
with
253 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.