atlas icon indicating copy to clipboard operation
atlas copied to clipboard

Revenue shares on portfolio

Open WRadoslaw opened this issue 1 year ago • 0 comments

There is a potential problem with fetching relevant revenue shares for the portfolio. The current query is pretty complex since we only want to show revenue shares that are relevant to a member. Response time on the playground is around 1,2s with very little amount of revenue shares in general, so this might take a hit on the production data scale.

Just for context the biggest problem currently is the current block height of the node, because we need to compare it with revenue share ending block.

What we can do:

  • lock the current block to the page load, this means that to refresh the feed user will need to either refresh the page or we can introduce some kind of action button that will refresh our query block height
  • leave it as it is, but we have to keep in mind that I will re-fetch the data on every page/tab re-entry

WRadoslaw avatar Dec 18 '23 13:12 WRadoslaw