Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@bdach
Copy link
Collaborator

@bdach bdach commented Aug 18, 2025

Can't see any other cause, can reproduce the issue on master using manual db modifications via realm studio and it is not a consistent reproduction, so seems like an open-and-shut lack of refresh.

…line metadata lookup

Probably closes ppy#34716

Can't see any other cause, can reproduce the issue on master using
manual db modifications via realm studio and it is not a consistent
reproduction, so seems like an open-and-shut lack of refresh.
@bdach bdach self-assigned this Aug 18, 2025
@bdach bdach added area:online functionality Deals with online fetching / sending but don't change much on a surface UI level. area:song-select quick fix Tasks which were taken on because they take no time to fix labels Aug 18, 2025
@bdach bdach added area:beatmap change tracking sync of local-online metadata and status and removed area:online functionality Deals with online fetching / sending but don't change much on a surface UI level. labels Aug 18, 2025
@peppy peppy self-requested a review August 18, 2025 12:04
// which prevents working beatmap refetches caused by changes to the realm model of perceived low importance).
var status = realm.Run(r =>
{
r.Refresh();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important to note that refreshes will block the update thread pending all write operations, which can sometimes lead to multi-second pauses.

This is why we seldom use Refresh().

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aware. Unless I make the "online" beatmap set retrieval method also return the state of the database beatmap set model, there's not much room for maneuvering as far as I can tell.

@bdach
Copy link
Collaborator Author

bdach commented Aug 19, 2025

as per discord conversation this is apparently unacceptable due to perceived chance of resulting performance regression, closing

@bdach bdach closed this Aug 19, 2025
@bdach bdach deleted the status-updates-are-great-arent-they branch August 19, 2025 05:45
@bdach bdach restored the status-updates-are-great-arent-they branch August 22, 2025 10:04
@bdach bdach reopened this Aug 22, 2025
@bdach
Copy link
Collaborator Author

bdach commented Aug 22, 2025

Reopening after extended discussion around #34737.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:beatmap change tracking sync of local-online metadata and status area:song-select quick fix Tasks which were taken on because they take no time to fix size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

carousel status will be updated, but the wedge will not be updated

2 participants