You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on BulkController on line 98, the ProcessExcelRow is overloaded:
Scenario:
A user upload a excel file, then, the function will read line by line, check if this line exist, then, will saveChanges.
Why not transaction ?
The Transaction is save all or nothing. If some line has error, i dont want to rollback. I want to save in database all succeed and return a blob of errors.
Possible solutions:
1 - Divide in chunks of inserts, and it will decrease the inserts / select commands
2 - Save the Succeded and call a new transaction to save all of them.
Based on BulkController on line 98, the ProcessExcelRow is overloaded:
Scenario:
A user upload a excel file, then, the function will read line by line, check if this line exist, then, will saveChanges.
Why not transaction ?
The Transaction is save all or nothing. If some line has error, i dont want to rollback. I want to save in database all succeed and return a blob of errors.
Possible solutions:
1 - Divide in chunks of inserts, and it will decrease the inserts / select commands
2 - Save the Succeded and call a new transaction to save all of them.
3 - First select all stored ids, before perform a Stream.
The text was updated successfully, but these errors were encountered: