Questions tagged [ravendb]

RavenDB is an Open Source document database for the .NET Core platform (Windows, MacOS, Linux). RavenDB offers a flexible data model designed to fit the needs of real world systems. RavenDB stores schema-less JSON documents, and allows you to define indexes using Linq queries and focus on low latency and high performance.

RavenDB Logo

RavenDB is an Open Source (with a commercial option) document database for the .NET platform. RavenDB offers a flexible data model designed to fit the needs of real world systems. RavenDB stores schema-less JSON documents, and allows you to define indexes using Linq queries and focus on low latency and high performance.

  • Scalable infrastructure: RavenDB builds on top of existing, proven and scalable infrastructure.
  • Simple Windows configuration: RavenDB is simple to setup and run on windows as either a service or IIS7 website.
  • Transactional: RavenDB supports System.Transaction with ACID transactions. If you put data in it, that data is going to stay there.
  • Map/Reduce: Easily define map/reduce indexes with Linq queries.
  • .NET Client API: RavenDB comes with a fully functional .NET client API which implements Unit of Work and much more.
  • RESTful: RavenDB is built around a RESTful API.
  • Ad-hoc queries: RavenDB supports ad-hoc queries and automatically creates indexes on the fly - no need to write indexes upfront.

RavenDB is released under a dual Open Source license and a commercial license. Simply put, that means that it is freely available under the AGPL license but if you want to use this with proprietary software, you must buy a commercial license.

2515 questions
12
votes
1 answer

NoSql/Raven DB implementation best practices

I'm investigating a new project which will be a social networking style site. I'm reading up on RavenDb and I like the look of a lot of its features. I've not read up on nosql all that much but I'm wondering if there's a niche it fits best with and…
user156888
12
votes
2 answers

Delaying the creation and dispatch of domain events

I've been using the Domain Events pattern for some time - it enables us to encapsulate as much behaviour in our domain layer as possible and provides a nice way for other parts of our application to subscribe to domain events. Currently we're using…
Ben Foster
  • 34,340
  • 40
  • 176
  • 285
12
votes
2 answers

Membership systems for MVC4 that support RavenDB

I create a lot of quick "proof of concept" MVC apps and I actually found the SimpleMembership provider that shipped with the MVC4 templates to be very handy since it gets me up and running with user registration & OAuth in a matter of…
brad oyler
  • 3,669
  • 1
  • 20
  • 22
12
votes
4 answers

RavenDB throws casting exception after models namespace change

In the database, I have already stored hundreds of documents. Now the system architecture has changed and (among others) models was migrated into different namespace (in different assembly). Below, metadata of sample document is shown: and code I'm…
jwaliszko
  • 16,942
  • 22
  • 92
  • 158
12
votes
2 answers

Mock IRavenQueryable with a Where() expression appended

I'm trying to do some basic proof of concept type code for a new mvc3 project. We are using Moq with RavenDB. Action: public ActionResult Index(string id) { var model = DocumentSession.Query() .Where(f =>…
mandreko
  • 1,766
  • 2
  • 12
  • 24
11
votes
2 answers

RavenDB with Ninject in ASP.NET MVC3

I want to use RavenDB with ninject in my asp.net mvc3 project, Any idea how I have to configure this? kernel.Bind() .To() .InSingletonScope() …
Jedi Master Spooky
  • 5,629
  • 13
  • 57
  • 86
11
votes
1 answer

How should stale indexes be handled during testing?

I am using RavenDB in In-Memory mode for unit testing. My queries are backed by static indexes. I am not using WaitForNonStaleResults() API (nor do I want to). Typical workflow for a test is: Initialise RavenDB in In-Memory mode Integrate indexes…
Arnold Zokas
  • 8,306
  • 6
  • 50
  • 76
11
votes
3 answers

Shared hosting providers supporting RavenDB

I setup an AppHarbor application only to find out that it does not support embedded RavenDB. It looks like it may be coming soon to AppHarbor. In the mean time, all it does is throw an error as shown here. Does anyone have any recommendations for…
11
votes
3 answers

RavenDb with ASP.NET MVC 3 - How to generate URL with ID?

This is probably a very simple answer, but i'm new to RavenDb, so i'm obviously missing something. I've got a basic object with the default convention for id: public string Id { get; set; } When i save it to the document store, i see it gets a…
RPM1984
  • 72,246
  • 58
  • 225
  • 350
11
votes
2 answers

Delete RavenDB collection

I need to delete a whole collection of documents in Raven DB. Deleting one by one (documents) is not a wise choice. Is there a way I can do this easily?
ZVenue
  • 4,967
  • 16
  • 61
  • 92
11
votes
3 answers

Store enum as integer in RavenDB

I would like to store Enums as integer-values inside a RavenDB-document instead of there full-name. Doing so, I would like to ensure, that changing the name of an enum-value, does not break persistence. With FluentNHibernate, I can create a custom…
Daniel Lang
  • 6,819
  • 4
  • 28
  • 54
11
votes
4 answers

Implementing the repository and service pattern with RavenDB

I have some difficulties implementing the repository and service pattern in my RavenDB project. The major concern is how my repository interface should look like because in RavenDB I use a couple of indexes for my queries. Let's say I need to fetch…
marcus
  • 9,616
  • 9
  • 58
  • 108
11
votes
4 answers

Are document databases good for storing large amounts of Stock Tick data?

I was thinking of using a database like mongodb or ravendb to store a lot of stock tick data and wanted to know if this would be viable compared to a standard relational such as Sql Server. The data would not really be relational and would be a…
dvkwong
  • 543
  • 2
  • 4
  • 12
10
votes
4 answers

Substring search in RavenDB

I have a set of objects of type Idea public class Idea { public string Title { get; set; } public string Body { get; set; } } I want to search this objects by substring. For example when I have object of title "idea", I want it to be found…
jwaliszko
  • 16,942
  • 22
  • 92
  • 158
10
votes
2 answers

RavenDB and SignalR Nuget Package Dependency Conflict

Basic conflict. SignalR wants Newtonsoft.Json version 4.0.7 or higher while RavenDB wants version equal to 4.0.5. Which obviously means they can't be installed side by side. So aside from downloading the source code from one of them and getting the…
Rangoric
  • 2,739
  • 1
  • 18
  • 18