Lunie: Improve performance of /stake/delegators/{delegatorAddr}

Created on 14 Aug 2018  Â·  12Comments  Â·  Source: luniehq/lunie

UI Version: 0.9.4

Description:

This request takes 45s!

blocked ✋ bug

All 12 comments

Cris recommended using https://github.com/cosmos/cosmos-sdk/blob/develop/x/stake/keeper/delegation.go#L44
And we need to make copies to query Undelegations and Redelegations that way.

Important is we don't loop over all candidates.

I presume you mean /stake/delegators/{delegatorAddr}?

Yes :)

Why was this removed from the sprint without clarification?

@faboweb I'm still working on that. @NodeGuy is blocked on the Pact tests only. Will finish this before the end of the sprint

I thought that's what you said you wanted during our call last week—I split the issue into a smaller scope and threw the remainder back into the backlog.

Heads up, I'm implementing Sunny's Queriers for this cosmos/cosmos-sdk#1918

See https://github.com/cosmos/voyager/issues/1193 about creating a test for this endpoint.

Blocked by a decision of the SDK team on how to handle this.

Closed by cosmos/cosmos-sdk#2249

Was this page helpful?
0 / 5 - 0 ratings