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

Getting a list of entity names and the associated properties

I'm dynamically creating some collections in my database. I instantiate ExpandoObjects and manually set the entity name. This works fine. Now I need to get a list of entities, with the associated properties (which should be the same for all the…
Diego Mijelshon
  • 52,548
  • 16
  • 116
  • 154
1
vote
0 answers

RavenDB: Phonetic and Simpleanalyzer in one query

I want to search for names by a custom phonetic analyzer and the build-in simpleanalyzer. The result should be ordered that the result of the simpleanalyzer comes first and then the result of the phonetic analyzer. The only way I found is to make…
Normen
  • 41
  • 5
1
vote
1 answer

Setting upp AspNet.Identity.RavenDB using Tugberk Ugurlu:s example project

So I've implemented everything from this projects sample from github: http://www.tugberkugurlu.com/archive/aspnet-identity-ravendb--fully-asynchronous-new-and-sweet-asp-net-identity-implementation-for-ravendb But I get an error in the file…
user3228992
  • 1,373
  • 1
  • 16
  • 31
1
vote
1 answer

How to query RavenDB using HTTP API for all documents of a type

I'm trying to query RavenDB using the HTTP client for all documents by type. I would like a collection of the documents with a given type. I understand that there might be limitations only the first 1024 documents will be returned. I am well under…
gaunacode.com
  • 365
  • 2
  • 13
1
vote
1 answer

How to get the generated Lucene query from a LINQ query

I have an expression built with Dynamic Linq that is used to query a RavenDb. I would like to be able to view the generated Lucene query so that I can evaluate if it's performant or not. I saw here a mention of the RavenDB console but I'm trying to…
Bianca
  • 382
  • 4
  • 12
1
vote
1 answer

using ravenDb or mssql as event store

I read Introduction to CQRS article and I find it very useful. Code in project which follows this article uses InMemoryEventStorage to demonstrate EventStore and adding and retrieving events. I'm aware that this is for demo purposes only but I will…
user1765862
  • 13,635
  • 28
  • 115
  • 220
1
vote
1 answer

RavenDB Sort Order

Im playing around with ravendb trying to create a blog. Im using Ravens own ID meaning that a document can look like this: BlogPosts/1 { "Title": "Ny post", "Text": "Nytt blogginlägg", "Kategori": "spel" } I fetch all my BlogPosts with this…
user2915962
  • 2,691
  • 8
  • 33
  • 60
1
vote
2 answers

Raven returning wrong document in OrderByDescending Statement

I have 50,000 documents in my raven database, but when I I run this query the Id of the latestProfile object is returned as 9999 (the first id in the db is 0, so this is the ten thousandth item). //find the profile with the highest ID now…
Paul Devenney
  • 889
  • 6
  • 18
1
vote
1 answer

When to Commit Unit Of Work using SignalR?

I'm trying to use the Unit Of Work pattern with RavenDb and SignalR. However, I can't find a clear SignalR Hub event to use as the hook to call SaveChanges on my RavenDb document session. If it was MVC I'd use Application_EndRequest in Global.asax…
Robin Weston
  • 873
  • 2
  • 10
  • 24
1
vote
1 answer

Deleting one specific list-object from db

Im having trouble with what should be a simple task in RavenDB. In know how to delete a document in Raven in this manner Session.Delete("Artist/1") Now, Im not looking to delete the entire document. I only want to delete one of the list-objects in…
user2915962
  • 2,691
  • 8
  • 33
  • 60
1
vote
1 answer

Why does a Func work with RavenDB query if I have 4k documents, but not when I have 800k documents?

If I have 4 thousand documents (maybe quite a few more, haven't checked) I can use a Func in IDocumentSession.Query().Where(...) and I get the expected results. But if I have 800 thousand documents then I have to use an…
Shayne
  • 195
  • 1
  • 10
1
vote
1 answer

AbstractTransformerCreationTask and lower case Ids

I have a AbstractTransformerCreationTask which seems to convert Ids to lowercase - even if I don't want that. Say I have the following public class EventProfileTransformer : AbstractTransformerCreationTask { public…
user156888
1
vote
1 answer

NEventStore with RavenDB in Embedded Mode

I am trying to get NEventStore (v4) working with RavenDB in embedded mode. My connection string looks like this: In Application_Start, I set up the Raven Store like this: var…
Phil Sandler
  • 27,544
  • 21
  • 86
  • 147
1
vote
1 answer

Cannot sort integer field index correctly in RavenDB

I can't seem to get an integer field to sort correctly. I have the field defined with a Sort of int: When I query it in the management studio by this field descending, the results sort correctly: However, my understanding is when using…
casperOne
  • 73,706
  • 19
  • 184
  • 253
1
vote
1 answer

Multi-client architecture advice for RavenDB

When catering for multiple .NET Client Applications - say - Web, Desktop and then throw in an Android app (Java), placing the business logic behind some WCF REST API services can make it easier and quicker to build applications, as there is no…
Dominic Zukiewicz
  • 8,258
  • 8
  • 43
  • 61