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

RavenDb increased startup time of winform app

I use ravendb as embedded database in my winforms project. Everything works as it should but I do need to check with someone startup time of winform main window. When I'm added IDocumentStore initialization startup time is increased by 5,6…
user2783193
  • 992
  • 1
  • 12
  • 37
1
vote
2 answers

Simple Persistence in RavenDB

public class BlogPost { public string Id { get; set; } public string Title { get; set; } public string Category { get; set; } public string Content { get; set; } public DateTime PublishedAt { get; set; } public string[] Tags…
Paul Plato
  • 1,471
  • 6
  • 28
  • 36
1
vote
1 answer

Subsequent ServiceStack OAuth attempts failing when using RavenDB (NonUniqueObjectException)

I'm trying to use ServiceStack authentication plugins out of the box along with RavenDB and the RavenUserAuthRepository package. AppHost var store = new DocumentStore() { ConnectionStringName = "ServiceStackAuthSample" } …
Jason Castellano
  • 333
  • 4
  • 11
1
vote
1 answer

I get an access error when attempting to initialize raven db

Here's sample code: private static Raven.Client.Embedded.EmbeddableDocumentStore _documentStore; public static Raven.Client.Embedded.EmbeddableDocumentStore documentStore { get { if…
BraveNewMath
  • 8,090
  • 5
  • 46
  • 51
1
vote
2 answers

RavenDB Authentication and Authorization

I am a SQL Server DBA trying to undestand the working of RavenDB Security . If I want to design an application security ,I will use a single system user and one application user for each actual user . The question that I have is that how will I be…
1
vote
1 answer

RavenDb. Sorting syntax in Lucene query using Index

I am trying to write Lucene query in RavenDB Index which will return results sorted by some field. But still no success. The Query looks like: Language:EN AND Key:*car* AND sort=KEY Question: Is it possible at all to add sorting statement in…
slavirok
  • 63
  • 4
1
vote
1 answer

How to query RavenDB static index when projection is anonymous type?

I have a 'Message' class: public class User { public string Name { get;set; } /*Other properties*/ } public class Message { public User From { get;set; } public ICollection To { get;set; } public string Title { get;set; } /*…
Charlotte Skardon
  • 6,220
  • 2
  • 31
  • 42
1
vote
1 answer

Indexing different documents to same object in RavenDb

I am indexing 2 different documents as below. public class User { public UserId UserId { get; set; } public string DisplayName { get; set; } } public class UserGroup { public UserGroupId UserGroupId { get; set; } public string Name…
Freshblood
  • 6,285
  • 10
  • 59
  • 96
1
vote
1 answer

Dynamic fields for my index not coming up in the list of fields

I am trying to get the fields of my index using the below code snippet. var fieldsList= DocumentStore.DatabaseCommands.GetIndex("IndexName").Fields.ToList(); This is returning a string list with all fields defined in the index except the dynamic…
1
vote
1 answer

TypedParameterExpression with Raven DB Any query

When I attempt to run the following query against Raven DB, I get a "Expression type not supported: System.Linq.Expressions.TypedParameterExpression" exception. var userIdsICareAbout = Session.Query() .Where(u => u.Username…
mattcole
  • 1,229
  • 2
  • 12
  • 22
1
vote
1 answer

Adding key value to RavenDB document based on another document's values (For all documents in large collection)

I am new to RavenDB and could really use some help. I have a collection of ~20M documents, and I need to add a key to each document. The challenge is that the value of the key needs to be derived from another document. For instance, given the…
Chris
  • 1,313
  • 2
  • 13
  • 26
1
vote
1 answer

RavenDB Index Error With NServiceBus

I am running NServiceBus 3.3 and I am getting this error: Polling of timeouts failed. There is no index named: RavenTimeoutPersistence/TimoutDataSortedByType I run this worker as my Distributor. Like this: NServiceBus.Host.exe /install…
Vaccano
  • 78,325
  • 149
  • 468
  • 850
1
vote
2 answers

How to get last write date of a RavenDB collection/index

I want to detect when a collection or index was last modified or written to. Note: This works on document level, but i need on collection/index level. How to get last write date of a RavenDB document via C#
Martin Meixger
  • 2,547
  • 24
  • 26
1
vote
1 answer

How to Use embeddableDocumentStore.DocumentDatabase.StartBackup(...) Third Parameter

In RavenDB v2.5 a third parameter has been added to the StartBackup method. How do you create/supply this third parameter? Everything I found on the web only references two parameters. embeddableDocumentStore.DocumentDatabase.StartBackup(string,…
stricq
  • 798
  • 6
  • 18
1
vote
1 answer

What is the best way to handle time consuming dynamic generated reports downloads?

A website is serving continuously updated content (think stock exchange), is required to generate reports on-demand and files get downloaded by users. Users can customize the downloaded report based on lots of parameters. What is the best practice…
Jalal El-Shaer
  • 14,502
  • 8
  • 45
  • 51
1 2 3
99
100