Good afternoon, I would like to ask a couple of questions regarding realm.
The first is about how a non-main thread can store data, for example background. I have thousands of records and in the main thread the app freezes.
The second is how can I get the data stored in background or another thread.
I am developing an application that receives more than 5000 records through an api and when trying to save them using the main thread, the app freezes. I tried many options to be able to store data in another thread and then be able to get it but I have not had good results. I can barely store the data, but when the realm instance gets it, it doesn’t get it.
I have an observation or curiosity. By doing the above procedure, I was checking the database with realm studio and the data is stored fine, but for some reason in the app, the query is not getting the updated data.
I would appreciate any input. Greetings.