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
9
votes
3 answers

What do I need to do to store objects in RavenDB?

I'm using ravendb to serialize an object and test it through mstest. I am getting this result: System.ArgumentException: Object serialized to String. RavenJObject instance expected. Here is my code public class Store { private static…
David Silva Smith
  • 11,498
  • 11
  • 67
  • 91
9
votes
1 answer

How do I wait for the results to be updated in RavenDB after DELETE

I am using repository pattern with Raven DB. My repository interface is public interface IRepository where T : Entity { IEnumerable Find(Func exp); void Delete(T entity); void Save(); ... } And implementation…
oleksii
  • 35,458
  • 16
  • 93
  • 163
9
votes
1 answer

RavenDB : A Simple Query().ToList() returns 0 results

Im using RavenDB (in server mode running @localhost:3000), and ASP.NET MVC3 I have this code segment which stopped working from build 289. It did work couple of times before, not sure if it was the update to 322 or something I…
Zasz
  • 12,330
  • 9
  • 43
  • 63
9
votes
3 answers

RavenDB ID prefix and REST API

I'm currently struggling with something that should be trivial, and maybe it is, but I can't find a decent solution. My problem originates with RavenDB default ID structure. Let's say we use the HiLo algorithm to create a person, we'll get our first…
Matteo Mosca
  • 7,380
  • 4
  • 44
  • 80
9
votes
1 answer

How to Select All Documents of a Type in RavenDB

So far, I've tried the following: public class Widget { public int Id; public string Name; } public static class Main { public static void Main() { // Initialize store and preload with widgets... using (var session…
Doctor Blue
  • 3,769
  • 6
  • 40
  • 63
9
votes
1 answer

What level of performance should I expect from RavenDB?

I've been looking for a good NoSQL database for some of our projects for quite some time and I recently discovered RavenDB which looks pretty awesome from a .NET support perspective, so I decided to try it out and write a little benchmark. First…
Chris
  • 27,596
  • 25
  • 124
  • 225
9
votes
1 answer

Nuget package RavenDB.Embedded: Unable to find a version of 'RavenDB.Database' that is compatible with 'System.Spatial 5.0.2'

In a new project when I try to add the NugetPackage : RavenDB.Embedded I have the following error :Updating 'System.Spatial 5.2.0' to 'System.Spatial 5.0.2' failed. Unable to find a version of 'RavenDB.Database' that is compatible with…
user3365017
  • 501
  • 1
  • 4
  • 7
9
votes
2 answers

Authentication with Asp.Net, RavenDB and OAuth support

Building a website that also will require an API and therefore (possibly) OAuth support for login I'm in doubt how to approach he user and authentication-part. So I've got an ASP.NET MC4 application with RavenDB. What is the best approach? To use…
esbenr
  • 1,356
  • 1
  • 11
  • 34
9
votes
1 answer

Register RavenDb using Autofac?

Can anyone guide me on how I could register RavenDB using Autofac? builder.Register(.. what after that?
developer747
  • 15,419
  • 26
  • 93
  • 147
9
votes
2 answers

ServiceStack Routing with ravendb ids

I've an entity with an ID of public string ID {get;set;} activities/1 (which comes from RavenDB). I'm registering the following routes in my ServiceStack AppHost Routes .Add("/activities") …
Chris
  • 1,241
  • 1
  • 14
  • 33
9
votes
1 answer

Too many indexes in RavenDB

Is there a formula/estimation/feeling that shows us what is the optimum number of indexes in a RavenDB database according to number of document kinds, number of fields per document and number of relations between them? Additional notes: As I…
Kaveh Shahbazian
  • 13,088
  • 13
  • 80
  • 139
9
votes
1 answer

RavenDB - Optional where clause

I want to write a RavenDB query that filters by a value if it is available, but if that value is not available, I want it to return all objects. For example, in linq to objects, I can do something like this: var matches = people.Where(x =>…
egbrad
  • 2,387
  • 2
  • 23
  • 27
9
votes
1 answer

How do I implement Denormalized References in RavenDB

I would like to have a reference between two entities stored in the RavenDB document database. Since this is not a relational db I know that I am supposed to use the Denormalized Reference technique described on RavenDBs documentation. Whilst at…
code mariner
  • 148
  • 4
9
votes
2 answers

Storing/Retrieving Dynamic Data in RavenDB

I'm using RavenDB & need to store dynamic data like: public class User { public string Name; public dynamic Data; } It appears that I could use many different types such as dynamic, RavenJObject, DynamicJsonObject, ExpandoObject,…
bendytree
  • 13,095
  • 11
  • 75
  • 91
9
votes
2 answers

How to restrict access to admin panel in ravendb?

When running Raven.Server.exe by default admin panel is visible at IP:PORT address. How can I restrict access to this panel for specific users only?
Steve Macculan
  • 2,292
  • 5
  • 22
  • 32