-
Notifications
You must be signed in to change notification settings - Fork 2
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
Make planetary.name posts load consistently fast #138
Comments
@mixmix as the person with the most widespread domain knowledge could you take the lead on diagnosing what is slow here and what we might do to fix it? |
This comment was marked as off-topic.
This comment was marked as off-topic.
@danlatorre this is good to know but probably a different issue? I'll make on for it |
Going through the graphql queries that this page makes one at a time 1. Daniel's profile ✔️2. Loading room data, members? 🔥
Recommend : remove this query 3. Daniel's profile (AGAIN) 😢Loading Daniels' data again... but more (need followers, following) Recommendation
4. Loading 10 of Daniel's threads ✔️Looks good to me. If we wanted we could probably load 6 or 7 as we have that auto-scroll load more. 5. Load random threads 🔥Why are we getting 10 random threads? This seems like a mistake. |
I haven't looked at the Vue code @chereseeriepa , but if you're not sure where those queries are coming from, or want to pair on how to split up the Vue routing/ pages differently I'm happy to pair. Profile cachingWe should add a cache over profiles in https://github.com/planetary-social/planetary-graphql/blob/main/src/graphql/resolvers.js#L22-L30 similar to the one we have in Ahau. Needs
|
@mplorentz That's my analysis. I'll talk with @chereseeriepa about generating cards from these. |
Did some pairing with @chereseeriepa today, already seeing improvements in load times. |
Mix and I paired on this today and diagnosed one area that could be causing the issue, which is that the library that the graphql server uses has a vulnerability to DDOS attacks (see these docs ). note for later: upgrade server |
Instead of creating new tickets I'm just adding on to this existing open ticket. This post is mainly for @chereseeriepa but since this is a compound stack of issues for QA/debug it'd be good for @mplorentz @mixmix and @cooldracula to have visibility on this. Screenshare: In the screen cast I demo the 3 main UX QA issues to investigate, in a Lean timebox of a 1-2 hours for each issue. The outcome here is to determine the root issue and either fix if quick (a few hours or less) or have an estimate of the fix.
|
For the third point(profile data loads, but not the person's feed), I wonder if it on accounts that have not posted anything yet? I checked a couple of accounts, one where posts load and ones where we see the ellipsis: on https://planetary.name/graphql/, you can run queries against our graphql server, like one to get the profile for a feed id, with its threads. query {
profile: getProfile (id: $ssbID) {
id
name
image
description
ssbURI
threads {
id
text
}
}
} If you run the below, condensed query, you can see that Daniel's response has threads while yeradis' does not: # Write your query or mutation here
query {
yeradis: getProfile(
id: "@a2djG8NtXafuD7vSdymhfYd97HUr7snWfVd7gxSvXe4=.ed25519"
) {
id
name
threads {
id
}
}
daniel: getProfile(
id: "@GCSmjLHmFC8m9t0ouJ6cY4tzlQdIbBaQfI0Uifw5cZA=.ed25519"
) {
id
name
threads {
id
}
}
} Are there any cases we can find where the person has threads, but their page is only showing the ellipses? If not, maybe we'd just need a "this person has not posted yet!" style text if their threadcount is 0? |
@cooldracula wow nice find. I checked a few people I had seen ellipses on and they all have a thread count of 0. |
The message cards on Planetary.name sometimes load really fast and sometimes they take over 10 seconds. Let's make them consistently fast. Some theories to why they are slow:
The text was updated successfully, but these errors were encountered: