Big transaction killed the server 4.0

23 views
Skip to first unread message

Derek den Haas

unread,
Jan 19, 2018, 6:33:21 AM1/19/18
to RavenDB - 2nd generation document database
So today I was testing an update script, which worked with a single batch of patches 1 for each document:

items was around 50.000 documents in size

foreach(var item in items) {
    session.Advanced.Patch(item.Id, (Article a) => a.Attachments, item.NewAttachments.ToList());
}
await session.SaveChangesAsync();

doing this killed the 4.0 server. I know the size exceeds the 30 per batch, though it did allow me to do this.

Oren Eini (Ayende Rahien)

unread,
Jan 19, 2018, 5:08:30 PM1/19/18
to ravendb
Can you explain what you mean by kill the server?
Are you running in 32 bits? 
This might cause us to need more than 2GB to process this tx. 


Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages