Hi, I am currently using a background thread to generate reports and appear to have an instance where the background thread is not seeing the data saved on the UI thread.
In this scenario the user has made a bunch of changes and then soon after making the changes they run a print job which then opens the realm from a background thread, reads the data and generates the report.
Why is the background thread not seeing the recently committee changes? In this case the data seems to have been updated midway through generation of the report.
I would expect that if the app opens the realm on a background thread after the users has update the data the background thread would see these changes.
Is there some way to ‘commit’ the changes from the main thread such that any subsequent access from a background thread will see these changes ?
Does Realm do some sort of lazy write even though CommitWrite() has been called