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
10
votes
4 answers

Faking/mocking an interface gives "no default constructor" error, how can that be?

I'm trying to write a unit test of a repository implementation. The repository uses RavenDB as a database. For the unit tests, I would like to mock the RavenDB parts. In order to create the mocks (fakes) I'm using FakeItEasy. I figured there…
David Nordvall
  • 12,404
  • 6
  • 32
  • 52
10
votes
1 answer

Storing uploaded file data with RavenDB

What's the current best practice for storing file data with RavenDB? (CDN or RavenDB Attachments) I have been looking at Rob Ashton's excellent demo application RavenDB Photo Gallery Project. In the demo project he stores the files as RavenDB…
Ken Burkhardt
  • 3,528
  • 6
  • 33
  • 45
10
votes
2 answers

Best way to get Count for paging in ravenDB

I need to find the number of documents that are in the raven database , so that I can properly page the documents out. I had the following implementation - public int Getcount() { IQueryable queryable = from p in…
NiladriBose
  • 1,849
  • 2
  • 16
  • 31
10
votes
5 answers

Is it possible to work with OrientDB using C#?

Are there any implementations, api or examples of OrientDB and C#. The reason I am looking at OrientDB is becuase it's the only one that I found that is a combination of Graph and Document. Any suggestions on how I should try this. My next…
Pranav Shah
  • 3,233
  • 3
  • 30
  • 47
10
votes
3 answers

RavenDB full-text search

Can you please tell how to perform simple full-text search in RavenDb. The database is stored document: Movie {Name = "Pirates of the Carribean"}. I wish that this document was found on the search phrase "Pirates Carribean" or any other combination…
Boris Mitchenko
  • 880
  • 9
  • 18
10
votes
3 answers

Anyone using RavenDB in a production environment?

I'm doing research on the maturity of some document-oriented stores, which includes an overview of applications and websites that use the database in production environments. There are several lists and case studies available for CouchDB and…
Niels van der Rest
  • 31,664
  • 16
  • 80
  • 86
10
votes
1 answer

File Addition and Synchronization issues in RavenFS

I am having a very hard time making RavenFS behave properly and was hoping that I could get some help. I'm running into two separate issues, one where uploading files to the ravenfs while using an embedded db inside a service causes ravendb to fall…
punkcoder
  • 513
  • 4
  • 12
10
votes
2 answers

RavenDB deployment issue

I have an ASP.Net MVC 3 app that I've developed which uses RavenDB Embedded as an integrated backing store for data, I used this tutorial as a basis for getting started creating an MVC app with RavenDB Embedded. I've been able to run it fine on my…
kingrichard2005
  • 7,179
  • 21
  • 86
  • 118
9
votes
1 answer

What is the difference between object-oriented and document databases?

What is the difference between object-oriented and document databases? I didn't use object-oriented databases, but when I use document database (RavenDb) I store and read usual object-oriented classes without problems.
SiberianGuy
  • 24,674
  • 56
  • 152
  • 266
9
votes
3 answers

What's the best way to store/query multiple types within a RavenDB collection?

I am designing a logging system that will store its log entries in RavenDB, and for this particular system I want to store (and later query) documents that have varying data structures based on the type of event being logged. Consider the following…
Mike
  • 7,500
  • 8
  • 44
  • 62
9
votes
1 answer

RavenDB poor select performance

I'm testing RavenDB for my future projects. Database performance is a must requirement for me, that's why I want to be able to tune RavenDB to be at least in SQL Server's performance range, but my tests shows that raven db is approximately 10x-20x…
Davita
  • 8,928
  • 14
  • 67
  • 119
9
votes
1 answer

How to get last write date of a RavenDB document via C#

In the Raven Studio UI, when you look into a document you can read (on the right of the page) the last write date of the document. I don't find any access via the client API in C# to this information. Do you know if it's possible ?
Antoine Blanchet
  • 325
  • 2
  • 17
9
votes
4 answers

If I choose RavenDB, what benefits of SQL Server do I lose?

If I choose RavenDB for a fairly standard CMS-like web application, what do I lose compared to SQL Server? EDIT: There is a word "benefits" in the title which is a little controversial term. Maybe I should have said something like "possibilities" or…
Borek Bernard
  • 50,745
  • 59
  • 165
  • 240
9
votes
2 answers

RavenDb and MultiTenancy

I have looked and played around with RavenDb for a while and have started to look at MultiTenancy. Ayendes sample for multitenancy looks like this: using(var store = new DocumentStore { Url = "http://localhost:8080" }.Initialize()) { …
jgauffin
  • 99,844
  • 45
  • 235
  • 372
9
votes
1 answer

RavenDB Paging Behaviour

I have the following test for skip take - [Test] public void RavenPagingBehaviour() { const int count = 2048; var eventEntities = PopulateEvents(count); PopulateEventsToRaven(eventEntities); using (var…
NiladriBose
  • 1,849
  • 2
  • 16
  • 31