realm / realm-core

Core database component for the Realm Mobile Database SDKs
https://realm.io
Apache License 2.0
1.01k stars 158 forks source link

Add multi-process support for download progress notifications during client reset download #7978

Open sync-by-unito[bot] opened 1 month ago

sync-by-unito[bot] commented 1 month ago

Create a design and add multi-process support for download progress notifications while the fresh realm is being downloaded during a client reset.

Need to determine if this is even possible, but it may involve writing the fresh realm progress to the client history download values, unless there is somewhere else where this info can be stored and accessed by the other processes.

sync-by-unito[bot] commented 1 month ago

➤ PM Bot commented:

Jira ticket: RCORE-2237

sync-by-unito[bot] commented 1 month ago

➤ michael-wb commented:

Spoke with Thomas regarding this today: The proposed solution is to repurpose the existing downloadable and downloaded values in the client history to store the client reset fresh realm download progress and add a new function to set these values during the download:

static void set_temporary_download_progress(Transaction& tr, DownloadableProgress downloadable,
                                            uint64_t downloaded);