Questions tagged [ravendb4]

RavenDB in version 4.0

55 questions
2
votes
2 answers

Installing Ravendb on the Raspberry Pi

I'm currently trying to install Ravendb 4.1.5-patch-41012 for the Raspberry Pi on my Raspberry Pi 3 Model B running Raspbian Stretch Lite. When I run the run.sh script it will give an error about not being able to open a browser even if I set the…
studiobram
  • 41
  • 5
2
votes
1 answer

RavenDB insert performance

We have a requirement to quickly store large volumes of data, something on an order of 100k records at once. I'm evaluating RavenDB, and it seems like the metrics I'm getting are rather low - it takes about 2.5-3 seconds to store 10k of records. The…
Thinkhoop
  • 529
  • 1
  • 4
  • 11
2
votes
1 answer

How do I organize RavenDB Map/Reduce results properly?

I've got the following RavenDB index. public class MyDomain_WeeklyPerYear : AbstractIndexCreationTask { public class Result { public int ProcessWeek { get; set; } public int…
Tom Aalbers
  • 4,574
  • 5
  • 29
  • 51
2
votes
2 answers

RavenDB Update a nested document?

Below is the sample "Order" document which is stored in RavenDB. In case if i want to update only a single nested document eg. "Product": "products/2-A" I want to update this nested element alone, how to can I achieve this using Raven C# client…
Ganesh Ram Ravi
  • 169
  • 1
  • 10
2
votes
1 answer

RavenDB Get DateTime From Server

For me to get the date and time from the SQL Server server just do the query "select getdate()". Is there any way I can get the date and time from the RavenDB Server?
Hudson Cavazin
  • 413
  • 4
  • 12
2
votes
2 answers

RavenDb index to filter&sort on properties of the nested structure/collection (fanout index)

I'm looking for a way to create a static index to serve filtering/sorting queries for a combination of property values in the nested structure (a collection of objects) along with the structure-container. It seems to be not trivial due to the…
Alex Klaus
  • 8,168
  • 8
  • 71
  • 87
2
votes
1 answer

How can I find which exception(s) maybe raised by RAVENDB methods?

I’m newbie to RAVENDB. How can I find which exception(s) maybe raised by RAVENDB methods? I’ve searched the online documentation and “Inside RAVENDB Book” without any success.
BTajahmadi
  • 89
  • 8
2
votes
1 answer

Get the matched text in RavenDB v4

In RavenDB < 4, you could get the matched word/sentence from a query/search using the FieldHighlightings class: FieldHighlightings highlight = null; hits = session .Advanced .DocumentQuery("Standard/Lucene") .Statistics(out stats) …
user7064696
  • 45
  • 1
  • 6
2
votes
1 answer

RavenDB 4 and Identities Id

I just upgraded a project from RavenDB 3.5 to 4.0 and one of the biggest change I noticed is the way they change the way Ids are generated. In my project most of the collections have a basic id structure like "[collection name]/[progressive id]",…
tanathos
  • 5,566
  • 4
  • 34
  • 46
2
votes
1 answer

BeforeStore doesn't work for async sessions in RavenDB 4?

I've been migrating my code to RavenDB 4. I noticed that listeners in RavenDB 4 has changed since version 3. In v3 you used IDocumentStoreListener and RegisterListener but in v4 you subscribe to the BeforeStore event directly on the session…
hakksor
  • 1,380
  • 1
  • 9
  • 14
2
votes
1 answer

RavenDb 4: Check if a string of an array of strings exists in different array of strings

I am trying to filter my activities based on user roles. The manager is only allowed to see the activities that contain the role Manager. See below for more information. Data: var user = new User { Roles = [ "Manager" ] } var…
Tom Aalbers
  • 4,574
  • 5
  • 29
  • 51
2
votes
1 answer

WaitForNonStaleResultsAsOfNow() in RavenDB 4

I can't seem to find the equivalent of WaitForNonStaleResultsAsOfNow() in RavenDB 4 .NET Client API. In previous versions this was available through IRavenQueryable.Customize(), but now it contains only WaitForNonStaleResultsAsOf() and…
hakksor
  • 1,380
  • 1
  • 9
  • 14
2
votes
1 answer

RavenDB 4.0 - InMemoryDatabase - EmbeddableDocumentStore

I am trying to migrate to new RavenDb 4.0, old code for tests purposes was using EmbeddableDocumentStore from the NuGet package: RavenDB.Database. Usage: var documentStore = new EmbeddableDocumentStore { …
madoxdev
  • 3,770
  • 1
  • 24
  • 39
1
vote
0 answers

RavenDb Let's encrypt certificate setup failed on Azure

I have installed RavenDb on Ubuntu system (on Azure cloud) using Docker and trying to use LetsEncrypt wizard to generate the certificate. My ravendb installation is successful and this is the port setup root@XXXX:~# docker ps CONTAINER ID …
1
vote
1 answer

RavenDB modelling/indexing: address verification with reference data

I'm using RavenDB 4.2.3 stable on Windows x64, trying to load an artificial document by id from another index. I'm working on an ETL system, where a significant part of the work is address verification. I have reference data for valid addresses,…
ENOTTY
  • 394
  • 5
  • 18