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
51
votes
2 answers

How could I make my RavenDB application execute properly when UseEmbeddedHttpServer is set to true using 2-tier architecture?

I used RavenDB-Embedded 2.0.2230 in my application interacted with ASP .Net Web API in different assemblies. When I set UseEmbeddedHttpServer = true on the document store, first time I send a request to RavenDB, it executes properly but when I try…
Mohsen Alikhani
  • 1,657
  • 3
  • 19
  • 37
45
votes
4 answers

Choosing MongoDb/CouchDb/RavenDb - performance and scalability advice

We are looking at a document db storage solution with fail over clustering, for some read/write intensive application. We will be having an average of 40K concurrent writes per second written to the db (with peak can go up to 70,000 during) - and…
amazedsaint
  • 7,642
  • 7
  • 54
  • 83
36
votes
4 answers

How to search over huge non-text based data sets?

In a project I am working, the client has a an old and massive(terabyte range) RDBMS. Queries of all kinds are slow and there is no time to fix/refactor the schema. I've identified the sets of common queries that need to be optimized. This set is…
Newbie
  • 7,031
  • 9
  • 60
  • 85
33
votes
4 answers

How do I create a ClaimsIdentity object for Asp.NET MVC 5?

I am working in a .NET MVC 5 application. I do not want to use Entity Framework. I want to authenticate to a RavenDB database. It looks to me that I want to replace the UserManager that comes with the Account Controller. I think I can rewrite all…
30
votes
1 answer

RavenDB: How to query with multiple search terms

My entity is: class Resource { string Name; string EmployeeId; } How do I query for resources of multiple employees? I tried this: Resource[] FindResourcesByEmployees(string[] employeeIds) { return this.Session.Query() …
K Ronning
  • 531
  • 4
  • 10
30
votes
4 answers

Unit Testing RavenDB

In my unit tests I am setting up each test to have a totally empty IDocumentSession. I do it like this: [SetUp] public void SetUp() { _store = new EmbeddableDocumentStore { RunInMemory = true }; _store.Initialize(); Session =…
nick
  • 1,477
  • 2
  • 20
  • 29
30
votes
1 answer

Specifying Collection Name in RavenDB

So lets say I have 3 objects Fruit, Apple and Orange. Fruit is the abstract base class for Apple and Orange. When I use session.Store(myApple), it puts it into the Apples collection. myOrange stores in the Oranges collection. Makes sense. Can I…
awl
  • 1,540
  • 1
  • 15
  • 18
28
votes
1 answer

Does Mongo DB have an In-Memory mode?

Possible Duplicate: Embedded MongoDB when running integration tests I want to use In-Memory mode for unit test, is there an in In-Memory mode like RavenDB?
Alon Ashkenazi
  • 1,223
  • 4
  • 21
  • 29
27
votes
1 answer

Nuget dependency error installing RavenDb Embedded

I am trying to install RavenDB.Embedded in an ASP.NET MVC 5 application, but I have this dependency error: PM> Install-Package RavenDB.Embedded Attempting to resolve dependency 'RavenDB.Database (= 2.5.2750)'. Attempting to resolve dependency…
Jérémie Bertrand
  • 3,025
  • 3
  • 44
  • 53
27
votes
5 answers

Proper Way to Retrieve More than 128 Documents with RavenDB

I know variants of this question have been asked before (even by me), but I still don't understand a thing or two about this... It was my understanding that one could retrieve more documents than the 128 default setting by doing…
Bob Horn
  • 33,387
  • 34
  • 113
  • 219
26
votes
1 answer

How can I run RavenDB in a shared hosting environment?

RavenDB has the ability to run in 'embedded' mode, which as far as I understand, should allow it to be run in a shared hosting environment. Does anyone have any idea how it would work in an ASP.NET MVC application, and what the best practice for…
Bennor McCarthy
  • 11,415
  • 1
  • 49
  • 51
26
votes
3 answers

RavenDb : Force indexes to wait until not stale whilst unit testing

When unit testing with RavenDb, it is often the case that newly added data is retrieved or otherwise processed. This can lead to 'stale index' exceptions e.g. Bulk operation cancelled because the index is stale and allowStale is false According to…
biofractal
  • 18,963
  • 12
  • 70
  • 116
25
votes
1 answer

Arguments for usage choice: RavenDB vs SQL Server - performance, reliability and simplicity

What points should be taken into consideration, while choosing data layer for a web application? Is there any preferable choice for using document database over relational ones, while developing small project over large and heavy loaded, or vice…
jwaliszko
  • 16,942
  • 22
  • 92
  • 158
24
votes
3 answers

Secondary index is corrupt. The database must be defragmented

Problem has appeared after DB restore. How I can repair DB?
Gengzu
  • 542
  • 1
  • 4
  • 13
23
votes
1 answer

RavenDB Stream for Unbounded Results - Connection Resilience

We're using the Stream functionality in RavenDB to load, transform and migrate data between 2 databases like so: var query = originSession.Query(IndexForQuery); using (var stream = originSession.Advanced.Stream(query)) { while…
Luke Merrett
  • 5,724
  • 8
  • 38
  • 70
1
2 3
99 100