ravendb/ravendb — Issue #454: SaveChanges() is "expensive"  even without anything to save
Author: ctolkien
Created: 2012-01-30 04:02:21+00:00
State: open

Following the pattern here:
http://ravendb.net/kb/3/using-ravendb-in-an-asp-net-mvc-website

Given the following query:

````var model = DBSession.Query().Take(100).ToList();````

```SaveChanges()``` in the ```OnActionExecuted``` adds ~90ms to the total response time, even though there is nothing to save. (Response time goes from 130ms to 220ms for the total request, so it is **substantial**).

Following this pattern, SaveChanges is always called regardless if there are any changes that actually need to be persisted. Possibly suggest a way to load entities as ReadOnly (or without ChangeTracking.. etc.), to bypass the processing in SaveChanges()?