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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message