PullAsync - is bulk insertion available? #425
-
|
When doing a PullAsync, after fetching the actual data needed, it is doing individual inserts to the local device database for the fetched data, is there any way we can configure it to do a bulk insert into the local device database instead? what i have for PullAsync: example of what i am trying to do: Fetch a list of teams from the server which is working properly, but I inspected the logs on the client side and saw that it is doing individual insertions to my local device database. was wondering if i can configure anything for PullAsync to make this a bulk insertion? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
This logging is driven by EF Core. By default, we call SaveChangesAsync() after each HTTP call (which is up to 100 items), but we call AddAsync() on each element. The underlying driver does the work of splitting the work up. You should check out the logic in the code. |
Beta Was this translation helpful? Give feedback.
This logging is driven by EF Core. By default, we call SaveChangesAsync() after each HTTP call (which is up to 100 items), but we call AddAsync() on each element. The underlying driver does the work of splitting the work up. You should check out the logic in the code.