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
1 answer

How to get RavenDb Id from Type and value?

In the RavenDb documentation I can get the document Id if I pass in my object: string orderId = session.Advanced.GetDocumentId(order); // "orders/1" but what I would like is to just pass in the type and the object's id value instead, like: string…
Rush Frisby
  • 11,388
  • 19
  • 63
  • 83
1
vote
0 answers

RavenDB performance for large XML documents

We're evaluating whether to use RavenDB for handling XML documents of varying sizes. In our use cases, the performance of retrieving documents is far more important than that of storing documents. We're using the embedded version of RavenDB,…
Morph
  • 11
  • 1
1
vote
1 answer

Getting only a part of a specific Ravendb document

Is it possible to load only a part of a Ravendb document. I want to fetch a document by id, but only some fields should be fetched. I know I can use session.Query with a Selectcall, but then I can't query on the id of the document so I have to use…
Sven Schelfaut
  • 522
  • 1
  • 7
  • 18
1
vote
2 answers

Bulk delete using Ravendb

I am trying to delete documents ids from a collection in RavenDB using the below logic var documentstore = new DocumentStore { Url = "http://localhost:8080", DefaultDatabase = "Employee" }; documentstore.Initialize(); using (var session…
user1005310
  • 737
  • 2
  • 12
  • 40
1
vote
1 answer

RavenDB: Deserializing nested arrays

Suppose I have the following class to be serialized and stored as a RavenDB's document: public class Block { public string Id { get; set; } public List> data { get; set; } } After storing, a document like this can be seen in…
user1275011
  • 1,552
  • 1
  • 16
  • 36
1
vote
0 answers

Failure scenarios of RavenDB cluster - ParallelShardAccessStrategy

I have read articles about failure scenarios of RavenDB cluster (http://ayende.com/blog/155937/api-design-sharding-status-for-failure-scenarios-solving-at-the-right-granularity) which were very helpful. However, the solution only works with…
1
vote
2 answers

Multiple LoadDocument for the same DocumentId in indexes and transformers

Let's take simple index from RavenDb documentation as an example: public class SampleIndex : AbstractIndexCreationTask { public SampleIndex() { Map = invoices => from invoice in invoices select new …
SiberianGuy
  • 24,674
  • 56
  • 152
  • 266
1
vote
3 answers

.Net Finalizer Order / Semantics in Esent and Ravendb

Help me understand. I've read that "The time and order of execution of finalizers cannot be predicted or pre-determined" Correct? However looking at RavenDB source code TransactionStorage.cs I see this ~TransactionalStorage() { try { …
user53791
1
vote
1 answer

RavenDB failover scenario. How to know the actual server?

I'm setting up a project with replication and failover for RavenDB (server and client 3.0), and now I'm testing with a replica DB. The failover behavior is very simple: I've two servers, one on 8080 and one on 8081. The configuration is basically…
tanathos
  • 5,566
  • 4
  • 34
  • 46
1
vote
0 answers

Understanding RavenDB's Intersect function when used together with search and statistics

Since the result1 is equal to result2 I would assume that both usages are correct and equivalent. An interesting fact is that RavenDB's statistics total results is only correct when the query is build in the same way as for result2. But can anybody…
Daniel Gartmann
  • 11,678
  • 12
  • 45
  • 60
1
vote
1 answer

RavenDb use proxy server from IE

I have a desktop application that uses RavenDb to retrieve and write data. Some of my clients have a proxy server specified in IE (which is some kind of central proxy server for Windows; Chrome uses the same proxy server) and RavenDb client can not…
SiberianGuy
  • 24,674
  • 56
  • 152
  • 266
1
vote
2 answers

Why does RavenDB perform an OR operation instead of an AND?

Why is there a OR instead of an AND between the SEARCH and the WHERE? The problem is that the current Lucene query is: "OrganizationType:Boo ( Name:(Foo) ShortName:(Foo))" instead of: "OrganizationType:Boo AND ( Name:(Foo) ShortName:(Foo))" How can…
Daniel Gartmann
  • 11,678
  • 12
  • 45
  • 60
1
vote
0 answers

Documents with same Raven-Entity-Name not grouped into collection

I've got this weird situtation with Ravendb collections. Saved two documents with exactly the same metadata: Documents: { "Title": "Some title", "ProductType": "Some type", "Description": "Some description", "Keywords": "Some…
Andrew
  • 5,395
  • 1
  • 27
  • 47
1
vote
1 answer

RavenDB clear database

How do one clear a RavenDB database of all data must keeping its structure? I have little experience with RavenDB and the NoSQL database so I must ask for assistance. Do I have to create a .NET interface for managing the database or can this…
anonamas
  • 243
  • 1
  • 6
  • 15
1
vote
1 answer

What permissions do I need to grant to run RavenDB in Server mode?

I'm reading through Rob Ashton's excellent blog post on RavenDB: http://codeofrob.com/archive/2010/05/09/ravendb-an-introduction.aspx and I'm working through the code as I read. But when I try to add an index, I get a 401 error. Here's the…
dalesmithtx
  • 247
  • 1
  • 11