Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
ravendb slow write performance?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  21 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mike  
View profile  
 More options May 21 2012, 3:23 pm
From: Mike <mgleaso...@hotmail.com>
Date: Mon, 21 May 2012 12:23:39 -0700 (PDT)
Local: Mon, May 21 2012 3:23 pm
Subject: ravendb slow write performance?

DB promotes it's self as "High performance - RavenDB is a very fast
persistence layer for every type of data model."

But the reality seems to be otherwise.  At least so far, RavenDB actually
seems to have good READ performance - but persistence is rather slow.

I opened a question a while back over at stack*overflow*, hoping to get
some feedback on the issue  -
http://stackoverflow.com/questions/10006152/ravendb-slow-write-save-p....

So, far there has been very little light shed on the problem.  But, I'm
wondering if it doesn't have something to do with authorization.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oren Eini (Ayende Rahien)  
View profile  
 More options May 21 2012, 3:31 pm
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Mon, 21 May 2012 21:31:35 +0200
Local: Mon, May 21 2012 3:31 pm
Subject: Re: [RavenDB] ravendb slow write performance?

Mike,
It is likely that at least some part of this is taken by auth, especially
windows auth against a remote server.
At any rate, 200 ms is _way_ too much, but you are aware that you are
actually testing this with remote machine cost tied in, right?
If you want to test performance, you can try creating a local test, because
that neutralize the network noise.
Also, it is quite important to note what IO you have.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike  
View profile  
 More options May 21 2012, 5:33 pm
From: Mike <mgleaso...@hotmail.com>
Date: Mon, 21 May 2012 14:33:34 -0700 (PDT)
Local: Mon, May 21 2012 5:33 pm
Subject: Re: [RavenDB] ravendb slow write performance?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oren Eini (Ayende Rahien)  
View profile  
 More options May 21 2012, 8:39 pm
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Tue, 22 May 2012 02:39:55 +0200
Local: Mon, May 21 2012 8:39 pm
Subject: Re: [RavenDB] ravendb slow write performance?

You are testing that on the free instance, and not doing a longevity test.
Both of which would have severe performance impact.
I gave it a couple of runs in the app harbor test app, and I don't see a
slow down.
Do you have actual measurements? Looking at the code base, I don't see
anything that would indicate perf times.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike  
View profile  
 More options May 21 2012, 10:25 pm
From: Mike <mgleaso...@hotmail.com>
Date: Mon, 21 May 2012 19:25:35 -0700 (PDT)
Local: Mon, May 21 2012 10:25 pm
Subject: Re: [RavenDB] ravendb slow write performance?

For the second test I used the sample app from
https://github.com/friism/RavenDBMvcSample and added the MiniProfiler
and RavenDb plugin for MiniProfiler - from:
https://nuget.org/packages/MiniProfiler and
https://nuget.org/packages/MiniProfiler.RavenDb .

>> You are testing that on the free instance

Yes.  But +200ms is very slow.  I've tried the free MySQL and my
recollection is that it's 18-30ms.

>> and not doing a longevity test.

True, but I tried saving a bunch of times in a for loop and had similar
results.  Also, I don't count the first save because it's usually longer so
the figure is for the 2nd save and beyond.

Anyway, maybe I can give you access to the Project at Appharbor (if you
give me your userID)?

To test it you can:

   1. Browse to http://ravendbtest44.apphb.com/Thingy/New
   2. Enter a string in the "Name" field and click the "Submit" button.
   3. In the upper left-hand corner you'll see the information that
   MiniProfiler adds to the web page.  Click on the larger number and you'll
   see an entry for "RavenDb: Query - ..." and the amount of time it took to
   run.

<https://lh3.googleusercontent.com/--4t2p3jrtug/T7r05MhcZNI/AAAAAAAAAA...>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oren Eini (Ayende Rahien)  
View profile  
 More options May 22 2012, 3:21 am
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Tue, 22 May 2012 09:21:32 +0200
Local: Tues, May 22 2012 3:21 am
Subject: Re: [RavenDB] ravendb slow write performance?

Where is the source for what _you_ are doing there?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Marisic  
View profile  
 More options May 22 2012, 8:27 am
From: Chris Marisic <ch...@marisic.com>
Date: Tue, 22 May 2012 05:27:36 -0700 (PDT)
Local: Tues, May 22 2012 8:27 am
Subject: Re: [RavenDB] ravendb slow write performance?

On Monday, May 21, 2012 5:33:34 PM UTC-4, Mike wrote:

>>  Since it does about 50/50 read/write, the slow write performance is very
>> concerning.  

I would spend some time analzying your models and indexes. You most likely
didn't model transaction boundaries well and have documents that are too
granular and behave like SQL server table rows and not actual documents.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Beyers Cronje  
View profile  
 More options May 22 2012, 9:03 am
From: Beyers Cronje <bcro...@gmail.com>
Date: Tue, 22 May 2012 06:03:17 -0700 (PDT)
Local: Tues, May 22 2012 9:03 am
Subject: Re: [RavenDB] ravendb slow write performance?

> I would spend some time analzying your models and indexes. You most likely
> didn't model transaction boundaries well and have documents that are too
> granular and behave like SQL server table rows and not actual documents.

The example app on Appharbor just has one model with a single field Name.
Saving a single doc took 618ms for me now using the test app
http://ravendbtest44.apphb.com/Thingy  Where query only took 39ms.

Have a look at
http://ravendbtest44.apphb.com/mini-profiler-resources/results?id=292...

hingy/Create (618.5 ms)
duration (ms)with children (ms)from start (ms)
http://ravendbtest44.apphb.com:15239/Thingy/C...59.8618.5+0.0  Controller:
ThingyController.Create20.4346.0+10.8   RavenDb: Query -
/databases/AppHarbor_ad53dbf...5.15.1+17.1   RavenDb: Query -
/databases/AppHarbor_ad53dbf...320.5320.5+29.5  RavenDb: Query -
/databases/AppHarbor_ad53dbf...212.7212.7+383.4share<http://ravendbtest44.apphb.com/mini-profiler-resources/results?id=292...>show
trivialhide time with children


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oren Eini (Ayende Rahien)  
View profile  
 More options May 22 2012, 9:04 am
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Tue, 22 May 2012 15:04:10 +0200
Local: Tues, May 22 2012 9:04 am
Subject: Re: [RavenDB] ravendb slow write performance?

Beyers,
The free ravenhq instances are limited in many respects, you can't really
judge performance from those numbers.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Marisic  
View profile  
 More options May 22 2012, 10:36 am
From: Chris Marisic <ch...@marisic.com>
Date: Tue, 22 May 2012 07:36:29 -0700 (PDT)
Local: Tues, May 22 2012 10:36 am
Subject: Re: [RavenDB] ravendb slow write performance?

On Tuesday, May 22, 2012 9:03:17 AM UTC-4, Beyers Cronje wrote:

> The example app on Appharbor just has one model with a single field Name.

That's a terrible model. If that's your actual use case, they make key
value stores, and you'd really only need a key store devoid of values.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike  
View profile  
 More options May 22 2012, 12:38 pm
From: Mike <mgleaso...@hotmail.com>
Date: Tue, 22 May 2012 09:38:53 -0700 (PDT)
Local: Tues, May 22 2012 12:38 pm
Subject: Re: [RavenDB] ravendb slow write performance?

Chris - chill.  I think you're missing the point.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Marisic  
View profile  
 More options May 22 2012, 12:46 pm
From: Chris Marisic <ch...@marisic.com>
Date: Tue, 22 May 2012 09:46:04 -0700 (PDT)
Local: Tues, May 22 2012 12:46 pm
Subject: Re: [RavenDB] ravendb slow write performance?

I'm not missing the point, you're testing RavenDB with constraints that are
totally unrealworld. You want to benchmark using data as realistic as
possible, this means rich models, and that your comparison to sql server is
compared against ORM usage.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike  
View profile  
 More options May 22 2012, 12:48 pm
From: Mike <mgleaso...@hotmail.com>
Date: Tue, 22 May 2012 09:48:55 -0700 (PDT)
Local: Tues, May 22 2012 12:48 pm
Subject: Re: [RavenDB] ravendb slow write performance?

@Ayende -  it's in the AppHarbor repository.  I just added you (ayende@...)
as a collaborator so you can download the source from the same source where
it's running - https://appharbor.com/applications/ravendbtest44 .


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oren Eini (Ayende Rahien)  
View profile  
 More options May 22 2012, 1:02 pm
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Tue, 22 May 2012 19:02:43 +0200
Local: Tues, May 22 2012 1:02 pm
Subject: Re: [RavenDB] ravendb slow write performance?

I am looking into that


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bcro...@gmail.com  
View profile  
 More options May 22 2012, 2:28 pm
From: bcro...@gmail.com
Date: Tue, 22 May 2012 18:28:54 +0000
Local: Tues, May 22 2012 2:28 pm
Subject: Re: [RavenDB] ravendb slow write performance?

Chris,

Relax dude, as far as I can tell the question is why is writing to raven so slow for the OP. To illustrate the point the test app just writes a single doc with a single value. No need to retort to bad document design etc. Your argument is like saying ALL unit tests should model some realworld complex  design, nonsense.

Sent from my BlackBerry® wireless device


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike  
View profile  
 More options May 22 2012, 2:35 pm
From: Mike <mgleaso...@hotmail.com>
Date: Tue, 22 May 2012 11:35:23 -0700 (PDT)
Local: Tues, May 22 2012 2:35 pm
Subject: Re: [RavenDB] ravendb slow write performance?

Sheesh Chris - It's not a benchmark or whatever.  It's only the simplest possible sample which shows the problem.

While porting a more complex app, I noticed writes were taking a long time.  I tried a few things, but kept seeing slow writes and decided I needed to make sure it wasn't my code or setup.  So, I looked around and found a super-simple sample on AppHarbor which was good since I'd like to deploy on Appharbor using RavenHQ.  The Appharbor sample is what we're talking about now because it shows the same slow writes.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oren Eini (Ayende Rahien)  
View profile  
 More options May 22 2012, 6:50 pm
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Wed, 23 May 2012 00:50:15 +0200
Local: Tues, May 22 2012 6:50 pm
Subject: Re: [RavenDB] ravendb slow write performance?

Okay, I run some additional tests, and it is pretty much as I said.
You are running on the free plan, which means that this is actually sitting
on top of a the EC2 IO system. This is pretty basic, as you can imagine,
and the reason why you see those numbers.
Note, however, that when you start using *concurrent* requests, you see
more interesting results.

Higher level plans get faster IO (RAID), and faster performance overall.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike  
View profile  
 More options May 23 2012, 12:56 am
From: Mike <mgleaso...@hotmail.com>
Date: Tue, 22 May 2012 21:56:19 -0700 (PDT)
Local: Wed, May 23 2012 12:56 am
Subject: Re: [RavenDB] ravendb slow write performance?

Thanks for looking into it Oren.  Interesting, I thought for sure you'd
come back and say one of the following:

   - There was some change/fix that needs to be made -
   e.g.  possibly modifying the authentication model so that it would cache
   the authentication so that subsequent requests are faster...
   or
   - "Bless" (i.e. change the RavenDB documentation) to say that in managed
   environments (like AppHarbor) it's safe to use PreAuthenticate =
   true and UnsafeAuthenticatedConnectionSharing = true.

Part of the reason I thought these might end up being the outcome is
because of the huge impact you see with using PreAuthenticate and  
UnsafeAuthenticatedConnectionSharing.  When I tried it recently, it
appeared to provide about 10x faster response time and a lot fewer requests
per save/write.

Ahh well, it must not be a safe option...

Thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oren Eini (Ayende Rahien)  
View profile  
 More options May 23 2012, 3:09 am
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Wed, 23 May 2012 09:09:32 +0200
Local: Wed, May 23 2012 3:09 am
Subject: Re: [RavenDB] ravendb slow write performance?

nMike,
Actually, I never even thought about this. The way RavenHQ auth works, we
don't use any of that.
The auth model _is_ cache. Also, note that we use the same auth model for
reads and writes.

Just to check, I did both changes in the app, and it doesn't have an impact.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Justin A  
View profile  
 More options May 23 2012, 9:48 pm
From: Justin A <jus...@adler.com.au>
Date: Wed, 23 May 2012 18:48:34 -0700 (PDT)
Local: Wed, May 23 2012 9:48 pm
Subject: Re: [RavenDB] ravendb slow write performance?

@Mike - out of interest, what are you final thoughts to this question?

You opened up the post by asking if Raven is slow at writes .. baked up
with some reproduction code so we can all verify.

Ayende did, stating that the issue lies with Amazon and their pretty
average IO on the low end system the **free** RavenHQ db plan, being used.

So does this end up being a show stopped for you?

Have you had a chance to trying seeing what writes are like on RavenDb ..
which is not on RavenHQ **free** plan?

Are you thinking about sticking with RavenHQ still but are now worried that
going from a **free** plan to a paid one might still have poor IO results?

Please don't think I'm having a dig at you or anything. Far from it. I'm
actually really curious to see what your planning on doing now that some
answers have come to light, regarding your initial question.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oren Eini (Ayende Rahien)  
View profile  
 More options May 23 2012, 9:58 pm
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Thu, 24 May 2012 03:58:00 +0200
Subject: Re: [RavenDB] ravendb slow write performance?

Another thing to note here is that this actually parallelize quite well


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions Older topic »