2

Issues uploading a large number of documents

I'm trying to upload a relatively large number of documents to my database - around 45K documents (each one around 1-2 KB).

When I try to use BulkInsert, I keep getting "The remote server returned an error: (403) Forbidden." exception.

I've tried the following: For each document, opening a new session, call store, and then call SaveChanges. This fails 50% of the times, with an EsentVersionStorageOutOfMemory (or similar) exception. (I have to open a new session for each document, since I have to check if the document already exist in the database via it's Id, which results in too many requests, which in turn forces me to open new sessions)

Any suggestions?

0 comments

Please sign in to leave a comment.