Closed gordonbrander closed 1 year ago
This is expected, we list your sphere to produce the profile view, but it should happen when you first present the profile tab not on app startup.
We were accidentally triggering this listing twice, see: https://github.com/subconsciousnetwork/subconscious/pull/944
Unfortunately this explains pretty much nothing about app performance in general.
As a rule of thumb, my sense is that we should be pulling all list views, including this one, from SQLLite (index), and individual detail views from the sphere (source of truth).
@cdata do you have a sense if this kind of mass reading of own-sphere data is an ok thing to do?
@gordonbrander I think it's a little ambiguous whether the profile is a list view or a detail view overall. I think we should read the profile header from the sphere regardless, but the "Notes" tab is a different matter.
We can (should?) load the owner's posts from SQLite, we just have to be careful that we refresh after each DB mutation to keep it in sync.
Let's call this good for now.
This seems to happen before database migration, as well as occasionally afterward.
Logs:
I have a hunch this has to do with the own-profile view. Note the actions before the spamming: