What's happening above:
- Initialize realm model from the received array of user data.
- Write all the models at once in the realm DB in the background thread.
- Realm model is getting updated if they already exist by creating a copy.
Can anyone please guide me here about what I am doing wrong.