Replies: 3 comments 5 replies
-
Hi @jesuslpm Bulk Insert does not support retrying, you would have to start a new one yourself. There are certain limitations when it comes to this operation that you should take into account: https://ravendb.net/docs/article-page/5.3/csharp/client-api/bulk-insert/how-to-work-with-bulk-insert-operation#limitations Also 'SkipOverwriteIfUnchanged' option might be interesting for you: https://ravendb.net/docs/article-page/5.3/csharp/client-api/bulk-insert/how-to-work-with-bulk-insert-operation#skipoverwriteifunchanged |
Beta Was this translation helpful? Give feedback.
-
Hi @ppekrol. I can start a new bulk insert operation myself, sure. But I don't want to start it from the beginning, I would prefer to start it from the last successfully inserted document. It would be nice I you raised an event or call a callback for each successfully completed batch with the batch number and the number of documents in the batch, just like the information shown on the Studio for in progress bulk insert operations. |
Beta Was this translation helpful? Give feedback.
-
Hey @jesuslpm, I wonder if you've ran any tests on this re storage + query performance vs Loki or something else? |
Beta Was this translation helpful? Give feedback.
-
Does bulk insert operation have builtin retry logic?
If not, how to implement it?
It seems it's hard because if one batch fails you can't resend it because you don't have information about the batch, you don't know which documents belong to the batch, so you cannot dispose the bulk insert operation and store the documents into the bulk insert operation again.
Imagine you need to insert one million documents and one batch fails in de middle due to a network hiccup. What can you do? Start from the beginning? Try to resend the batch?
Beta Was this translation helpful? Give feedback.
All reactions