-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When to use executeTransaction() instead of beginTransaction(); #4217
Comments
|
Like @Zhuinden hints at. You should in most cases use |
Or if you need to cancel the transaction manually at some point for some reason. |
Based on that, Does |
@aalap03 i have previously defined a helper function like
But
|
There are 2 ways to write a transaction to the realm objects which are:
executeTransaction()
and manual call withbeginTransaction();
,commitTransaction()
When should either be used?
For a more specific usecase. I have an app containing a list where the user can add many items to that list, which write method should be used here?
The text was updated successfully, but these errors were encountered: