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

RavenDB load documentmapping to POCO or domain aggregate root class?

If I have this class: public class Order { public string Id { get; private set; } public DateTime Raised { get; private set; } public Money TotalValue { get; private set; } public Money TotalTax { get; private set; } public…
Ilan Y
  • 107
  • 9
1
vote
1 answer

RavenDB auto index: search option wrong for numeric fields (SortOptions.String)

When querying RavenDB with a simple query, the autoindex is pretty useless as the SortOptions is always set to String even when the property is an integer. var test = session.Query() .OrderBy(o => o.Order) .ToList(); public class…
ozu
  • 125
  • 1
  • 5
1
vote
1 answer

How to initialize RavenDb database with bundle programatically?

I have this code it works well EXCEPT I want to ensure that the expiration bundle is in the database and I dont want to create this database manually. What is the correct way to initialize a database with the expiration bundle enabled? …
nachonachoman
  • 802
  • 1
  • 13
  • 29
1
vote
2 answers

How to change the default analyzer for dynamic fields

RavenDB uses the LowerCaseKeywordAnalyzer by default and switches (if I'm not mistaken) to the StandardAnalyzer if you set a field to FieldIndexing.Analyzed. RavenDB also defaults to the LowerCaseKeywordAnalyzer for dynamic fields. I would like to…
ldx
  • 2,536
  • 2
  • 18
  • 27
1
vote
1 answer

Maximum Document Id

If I insert a User into the Users collection and it's the first document RavenDB might assign it an id of users/1. If the id field is a string and the maximum length of the id field is 1023, what is the limit on how far these automatically assigned…
Adrian Thompson Phillips
  • 6,893
  • 6
  • 38
  • 69
1
vote
1 answer

RavenDB Get document count after BulkInsertOperations

I am using RavenDB to bulk load some documents. Is there a way to get the count of documents loaded into the database? For insert operations I am doing: BulkInsertOperation _bulk = docStore.BulkInsert(null, new BulkInsertOptions{…
mll5
  • 193
  • 2
  • 10
1
vote
1 answer

RavenDB sorting by Range field

I've been playing around with the RavenDB Northwind database, and am having trouble getting orders sorted by Freight. My index: Map = orders => from o in orders select new { o.Freight …
heneryville
  • 2,853
  • 1
  • 23
  • 30
1
vote
1 answer

Building models in NOSQL

We are trying NOSQL Document database (ravenDB) and we are asking ourselves some questions. This is our models : public class User { public Guid Id {get;set} public string Name {get;set;} } public class Video { public Guid Id…
Pak
  • 2,639
  • 2
  • 21
  • 27
1
vote
1 answer

How to get Raven DB index name from clr type

Is there a way I can get index name from corresponding class in c#? For example: I have class named Users_ByEmail and I know that Raven created index named Users/ByEmail for me, but I want to get it from Raven methods. I need something like…
Sarrus
  • 586
  • 7
  • 21
1
vote
1 answer

RavenDB index for 2 nested many-to-many relationship entities

I have the following entity collections in RavenDB: public class Provider { public string ProviderId {get; set;} public string ProviderName {get; set;} public string[] CategoryIds{get; set;} } public class Category { public string…
YuMei
  • 687
  • 8
  • 19
1
vote
1 answer

RavenDB : Keword Analyzer with .Search() command

I am attempting to do a query in RavenDB using the Search method, but I am running into an issue in that it completely ignores the KeywordAnalyzer set up. So in a situation where I have ... Item 1 Item 2 Item 3 Trying to search for "Item 1" pulls…
Ciel
  • 4,290
  • 8
  • 51
  • 110
1
vote
1 answer

How to set Raven-Entity-Name metadata in ravendb

HI Please Help me for RavenDB HTTP Client. I want to store data into Raven-Entity-Name called Log but i am not able to set the metadata in PUT command. How we can set the metadata $.ajax({ type: "PUT", url:…
Amit Mourya
  • 538
  • 1
  • 7
  • 18
1
vote
0 answers

Embedded RavenDB in asp.net MVC website does not initialize

Why can't I make an embedded RavenDB work in a fresh asp.net MVC website? I have successfully tried and tested the following code in a simple .net console application. It works just fine, until I try and use it in an MVC website. It doesn't throw…
Joel Hansen
  • 198
  • 1
  • 12
1
vote
1 answer

Ravendb Map Reduce Query One Shard

Is it possible to have my map reduce take advantage of the shard key on my collection and only query one shard for results instead of all shards? If so lets work from the example here. If you change it as follows: public class InvoicesAmountByDate…
Ben Tidman
  • 2,129
  • 17
  • 30
1
vote
0 answers

RavenDB Import / Export failing on Server but working on Embedded

I am looking at writing an import / export routine for RavenDB so that I can develop on a full server instance locally but can run embedded on the website due to resource contraints. I want to be able to admin functions in a locked down section of…
WestDiscGolf
  • 4,098
  • 2
  • 32
  • 47