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
1
vote
0 answers

RavenDB IRavenQueryable understanding types (Event Sourcing)

I'm currently building a repository in conjunction with RavenDB that is used specifically for Event Sourcing. (Storing Events). I have wrote code that allows me to pull out the events, based on there type. It's working, but its not a great…
Derek
  • 8,300
  • 12
  • 56
  • 88
1
vote
2 answers

How to import/export RavenDB data from file?

I have an application that uses embedded RavenDB. I would like to be able to import/export a specific sets of documents (a document with all nested/referenced documents) to a file. My ideal function would work like: var session =…
Gerino
  • 1,943
  • 1
  • 16
  • 21
1
vote
2 answers

How can I remove/edit a document marked Raven-Read-Only?

A document in our RavenDB database was accidentally deleted, and in an attempt to fix the issue a revision was renamed to the primary document and saved, keeping the MetaData. { "Raven-Document-Revision-Status": "Historical", "Raven-Read-Only":…
ashansky
  • 730
  • 2
  • 14
  • 34
1
vote
1 answer

Querying RavenDb with max 30 requests error

Just want to get some ideas from anyone who have encountered similar problems and how did you guys come up with the solution. Basically, we have around 10K documents stored in RavenDB. And we need the ability to allow users to perform filter and…
developer
  • 718
  • 9
  • 28
1
vote
2 answers

Getting the position of an element given an index and order

I have a map/reduce index containing something like { Id, Name, Points} (Points is a sum) I can easily query and order by descending Points to get a list of elements. Now, in a specific part of my application, I need to get a single value with the…
Diego Mijelshon
  • 52,548
  • 16
  • 116
  • 154
1
vote
1 answer

The risks of hosting RavenDb in Azure Virtual Machine

I have a RavenDb installed as a service in my Azure Virtual Machine. It currently works fine but I've seen some post telling it is risky to do (e. g. there are some problems with locks when your machine is shut down by Azure). Are those problems…
SiberianGuy
  • 24,674
  • 56
  • 152
  • 266
1
vote
1 answer

Why do I need to name the properties in my index with underscore?

Given that I have the following structure (unnecessary details stripped out) public class Product { public Guid Id { get; set; } public string Name { get; set; } public Manufacturer Manufacturer { get; set; } } public class Manufacturer…
wasatz
  • 4,158
  • 2
  • 23
  • 30
1
vote
1 answer

Why is the first SaveChanges slower than following calls?

I'm investigating some performance problems in an experimental scheduling application I'm working on. I found that calls to session.SaveChanges() were pretty slow, so I wrote a simple test. Can you explain why the first iteration of the loop takes…
Marijn
  • 10,367
  • 5
  • 59
  • 80
1
vote
1 answer

RavenDB - can you query a specific entity using the etag to get only the changed documents?

In Raven DB, using the rest api I can get all documents of a particular collection (related documents grouped by entity name) using this: //Get all documents from a…
joecity
  • 106
  • 5
1
vote
1 answer

Converting a string into Linq lambda expression

We are using RavenDB in our project and we have a search panel that let users search documents using different criteria. Take a building age for example.These input data are sent from out web client in query string and I have to translate them to…
Beatles1692
  • 5,214
  • 34
  • 65
1
vote
1 answer

RavenDB - Update a single property to db when the property passed to a save-method could be any

I know a can save a single property to my db when knowing which propery I need to update, like this (the method SaveContent triggers trough a AJAX-post from the view): public void SaveContent(string contentToUpdate) { var page =…
user3228992
  • 1,373
  • 1
  • 16
  • 31
1
vote
0 answers

RavenDb - Write query and select item where it's propertyName equals a string

Is it possible to write a query and select an item where its propertyName equals a string? I want to pass in a string to a method, where my string holds the value of a propertyName. And then use it in a query to select my property that equals that…
user3228992
  • 1,373
  • 1
  • 16
  • 31
1
vote
0 answers

RavenDB: How to create an index to query permissions in nested roles by user id

I have 3 aggregates, User, Role and Permission. User has a list of granted role ids, Role has a list of granted role ids and permission ids. We support at most 3 levels of roles in the hierarchy. Is that possible to write an index to query…
Yanfeng Tian
  • 133
  • 2
  • 9
1
vote
1 answer

RavenDB 2.5 Patch unique data to each document

I'm using RavenDB 2.5. I want to update a single field on all documents in a specific collection. I want each document to have a unique value in this field. I am currently attempting this via 'patching' from the web portal, but I will gladly do it…
user1304444
  • 1,713
  • 3
  • 21
  • 38
1
vote
1 answer

Raven DB filtering collection by data from another collection

I currently have a Customers and a Products collection... Customers contains a list of Subscriptions and a subscription contains a ProductId. I'm trying to create an index that will allow me to select only the product id's that are NOT used in the…
Bianca
  • 382
  • 4
  • 12