GetAttachment incredibly slow now that it uses a stream instead of byte[]

67 views
Skip to first unread message

Cassie

unread,
May 2, 2012, 11:52:28 AM5/2/12
to ravendb
In my project we were using version 412 of RavenDB. We had no problems
pulling attachments using the GetAttachment method. We recently
upgraded to version 888 and now the attachments that used to take less
than a minute to get are now taking over 10 minutes. Is there a way to
use the old method of getting attachments rather than the new way or
to improve performance?

Oren Eini (Ayende Rahien)

unread,
May 2, 2012, 12:12:01 PM5/2/12
to rav...@googlegroups.com
You can always get the attachment using web request
I can't think of any readin why this would happen
What is the attachment size?

Oren Eini (Ayende Rahien)

unread,
May 2, 2012, 12:12:14 PM5/2/12
to rav...@googlegroups.com
Can you produce s repro?


On Wednesday, May 2, 2012, Cassie wrote:

Cassie

unread,
May 2, 2012, 4:04:41 PM5/2/12
to ravendb
The file that takes 10 minutes is 15MB. I did end up going the web
request route and added the Accept-Encoding header to speed up the
process.

On May 2, 10:12 am, "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
wrote:

Oren Eini (Ayende Rahien)

unread,
May 3, 2012, 5:02:09 AM5/3/12
to rav...@googlegroups.com
ok
Reply all
Reply to author
Forward
0 new messages