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
8
votes
2 answers

RavenDb check if index exists

How do I check whether an index exists? - before calling: IndexCreation.CreateIndexes(typeof(MyIndexClass).Assembly, documentStore); All the examples I have seen (including the ones in the sample project) had the index re-created every time the…
Alwyn
  • 8,079
  • 12
  • 59
  • 107
8
votes
1 answer

How does RavenDb "In" operator work?

I probably don't understand how the "In" extension method in RavenDb works. I thought that it is an equivalent of the IN command in SQL world, e.g. WHERE Number IN (1, 2, 3). But it behaves quite weird. // i have 3 records - two with Normal…
Tomáš Herceg
  • 1,595
  • 1
  • 13
  • 18
8
votes
1 answer

RavenDB : Storage Size Problems

I'm doing some testing with RavenDB to store data based on an iphone application. The application is going to send up a string of 5 GPS coordinates with a GUID for the key. I'm seeing in RavenDB that each document is around 664-668 bytes. That's…
Tony Ashworth
  • 485
  • 4
  • 16
8
votes
1 answer

How do I perform a reasonably complex RavenDB query and include the Lucene Score in the results?

Say I have the following User public class User { // ... lots of other stuff public string Id{ get; set; } public double Relevance { get; set; } public bool IsMentor { get; set; } public string JobRole { get; set; } public…
biofractal
  • 18,963
  • 12
  • 70
  • 116
8
votes
2 answers

RavenDB Attachments - Functionality how to do?

I have a file input control. Lets say I browse to C:/Instruction.pdf document and click on submit. On Submit, I want to save the document in RavenDB and also later retrieve it for download…
ZVenue
  • 4,967
  • 16
  • 61
  • 92
7
votes
2 answers

RavenDB how to flush?

I am using RavenDb embedded. As a part of my intergration tests I want to check objects are persisted. When I SaveChanges on an object, then retrieve it, it cannot be found unless I dispose my connection. This does not work for me, as no files are…
Dan Black
  • 1,167
  • 3
  • 14
  • 20
7
votes
1 answer

RavenDb Index field attributes

For every RavenDb Index field I can specify Storage, Sorting, Indexer and Analyzer. In which cases should I use / not use these attributes? I tried to find detailed description of these attributes but didn't succeed.
SiberianGuy
  • 24,674
  • 56
  • 152
  • 266
7
votes
1 answer

RavenDb QueryYourWrites and Map/Reduce indexes

I got the following comment to my previous question about RavenDb: One thing to note, QueryYourWrites doesn't work with Map/Reduce indexes. For these you have to use WaitForNonStaleResults..() What does it mean? I thought all indexes in RavenDb…
SiberianGuy
  • 24,674
  • 56
  • 152
  • 266
7
votes
1 answer

Reading from RavenDb immediately after writing to it returns inconsistent data

I have a reconciliation process where by a background thread that periodically retrieves a list of object ids from an external webservice and attempts to add the missing entities to an embedded RavenDb database. The loop that performs this process…
ambog36
  • 301
  • 1
  • 2
  • 13
7
votes
2 answers

RavenDb get raw JSON without deserialization

I need to recover JSON stored in RavenDb database knowing its Id. What's tricky here, I need to get it before it is deserialized into an actual object. Reason for that is, I need it in exact same form it was first stored in, regardless what happens…
stasiaks
  • 1,268
  • 2
  • 14
  • 31
7
votes
1 answer

Querying Raven with Where() only filters against the first 128 documents?

We're using Raven to validate logins so people can get into our site. What we've found is that if you do this: // Context is an IDocumentSession Context.Query() .SingleOrDefault(u => u.Email.ToLower() == email.ToLower());…
Jason Slocomb
  • 3,030
  • 1
  • 23
  • 25
7
votes
1 answer

NoSQL databases - good candidates for log processing/aggregation and rollup?

I have a MS SQL database that's used to capture bandwidth stats. We have a raw data table and to improve reporting speed at different drill-down levels we aggregate and rollup data on an hourly, daily and weekly basis to separate tables. Would a…
Kev
  • 118,037
  • 53
  • 300
  • 385
7
votes
1 answer

RavenDB EsentOutOfLongValueIDsException

The following error is intermittently thrown when attempting to add or update a document: "Microsoft.Isam.Esent.Interop.EsentOutOfLongValueIDsException: Long-value ID counter has reached maximum value. (perform offline defrag to reclaim free/unused…
Varuna
  • 125
  • 1
  • 9
7
votes
1 answer

What is the correct syntax for RavenDB Search method in F#

I am trying to find all posts in RavenDB containing a word (index is there) Here is a query that works, finds everything that starts with 'Liv' let post = query { for post in session.Query() do where (post.Text.StartsWith("Liv")) …
Dimka
  • 425
  • 4
  • 11
7
votes
1 answer

Transforming Results

My colleagues have asked me if given the orderline example, it'd be possible to initialize a viewmodel looking like this: OrderViewModel string OrderId string CustomerName List OrderLines OrderLineViewModel string…
Jamez
  • 1,559
  • 1
  • 15
  • 26