-
-
Notifications
You must be signed in to change notification settings - Fork 360
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(series): nft top collection #803
Conversation
public meta: NFTMetadata = emptyObject<NFTMetadata>() | ||
|
||
async created() { | ||
await this.fetchCollectionsRankings() |
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.
Maybe check the speed of the app with and without await
here
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.
same speed with and without ~3800ms
Should we start testing it? 👀 |
Well, problem is %7d & %30d stats seems wrong as they will always be green or null. |
I was thinking if we could make it more asynchronously, so each row would be own query to have it feel less blocking on frontend? Or Viki proposed just fetch name of collections and then fetch data for collections as separate query? |
I don't think this will resolve loading time. IMO, problem comes from the query that returns all the data, to reduce it we could sort by rank directly from graphql query and add pagination (first & offset). |
Let's experiment with that :)
Anything that could help put loading times down 👌
…On Fri, Oct 1, 2021, 17:13 roiLeo ***@***.***> wrote:
I was thinking if we could make it more asynchronously, so each row would
be own query to have it feel less blocking on frontend?
Or Viki proposed just fetch name of collections and then fetch data for
collections as separate query?
I don't think this will resolve loading time. IMO, problem comes from the
query that returns all the data, to reduce it we could sort by rank
directly from graphql query and add pagination (first & offset).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#803 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABM5POOMQ2UWBNJKUBCUEB3UEXF3HANCNFSM5EZY2RFA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Oh re: naming |
Checking on verifications, is that okayish or still needs to be checked?
Checking what's left important from issue #587 Would be good to have
Then is ready to fly, for silent update for now, so ppl can verify it is playing all right 👌 😄 |
LGTM |
Some of the code is dirty (Rankings/utils.ts) and need refatoring/rework.
I'm not sure if I got the right 7d% & 30d% formula (need some verification).
Brief
New page/component Rankings
PR type
Before submitting this PR, please make sure:
Optional
Need to test
Rework
As if t_0 (price now) & t_7 (price 7d ago) so:
price_change(%) = ((price(t_0) - price(t_24)) / price(t_0)) * 100
What's new? (may be part of changelog)
Screenshot