ravendb

EventStore & RavenDB Persistence JsonReaderException

白昼怎懂夜的黑 提交于 2019-12-11 11:16:23
问题 Trying to wire up JOliver's EventStore with RavenDB and hit a snag. I created a new DB in Raven called RavenEventStore. The following is my wireup; return Wireup.Init() .UsingRavenPersistence("RavenEventStore") .UsingAsynchronousDispatchScheduler() .DispatchTo(new DelegateMessageDispatcher(DispatchCommit)) .Build(); When the Wireup.Init() is called, this exception is occuring on the RavenDb side; Url: "/indexes/RavenCommitByDate" Newtonsoft.Json.JsonReaderException: Unexpected character

Accessing a single RavenDB from different applications

安稳与你 提交于 2019-12-11 10:54:01
问题 I have a web project that stores objects in raven db. For simplicity the classes live in the web project. I now have a batch job that is a separate application that will need to query the same database and extract information from it. Is there a way I can tell raven to map the documents to the classes in the batch job project that have the same properties as those in the web project. I could create a shared dll with just these classes in if that's needed. seems unnecessary hassle though 回答1:

How to query a specific collection from a RavenDB?

非 Y 不嫁゛ 提交于 2019-12-11 09:29:59
问题 In one database, I am storing two separate documents - CumulativeSprintData and Features. I'm trying to query from javascript. Right now I'm just using the default: http://servername:8080/databases/sprintprogress/indexes/dynamic? The problem is that this default query pulls in documents of both types. How do I specify which document type I want to pull down? Thanks! 回答1: You can use: http://servername:8080/databases/sprintprogress/indexes/dynamic/Features http://servername:8080/databases

RavenDB Index Error With NServiceBus

吃可爱长大的小学妹 提交于 2019-12-11 09:24:40
问题 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 NServiceBus.Distributor NServiceBus.Production /serviceName:BusDistributorService /displayName:"Bus Distributor Service" This answer indicates that I need to delete and recreate the index. But I don't know anything about RavenDB besides the fact that

Map reduce in RavenDb, update 1

不想你离开。 提交于 2019-12-11 09:04:13
问题 Update 1 , following Ayende's answer This is my first journey into RavenDb and to experiment with it I wrote a small map/ reduce, but unfortunately the result is empty? I have around 1.6 million documents loaded into RavenDb A document: public class Tick { public DateTime Time; public decimal Ask; public decimal Bid; public double AskVolume; public double BidVolume; } and wanted to get Min and Max of Ask over a specific period of Time. The collection by Time is defined as: var ticks = session

RavenDB Saving to disk query

那年仲夏 提交于 2019-12-11 08:21:54
问题 Before I start let me say I am new to RavenDB. I am just evaluating it at the moment, and am using the RavenDB-Build-616 build. I have the server running, that is I have manually started "Raven.Server.exe", and have the following test code public class RavenFullTextSearchDemo { private DocumentStore documentStore; private List<string> firstNames = new List<string>() { "John", "Peter", "Paul", "Sam", "Brendon" }; private List<string> lastNames = new List<string>() { "Simons", "Black", "Benson"

Activity stream design with RavenDb

旧街凉风 提交于 2019-12-11 08:00:51
问题 This is more of a design pattern / document design question than a technical one... I want to display a activity feed on my website which will list all the latest happenings users have been doing on my site...here are some of the activities i would like to display: New media uploaded (Bob has uploaded a new track) Comments on a profile (Paul has commented on Bob's profile) Comments on media (Steve has commented on Paul's track 'my track name') Status updates (Steve can write any status update

How do I use Castle Windsor to create a RavenDB session with client version > 3.0.3660?

﹥>﹥吖頭↗ 提交于 2019-12-11 07:58:27
问题 I am using Castle Windsor v3.4.0 to create a RavenDB document session instance but when I use a RavenDB client version later than 3.0.3660 I get this error when calling the Store method: Castle.MicroKernel.ComponentNotFoundException: 'No component for supporting the service System.Net.Http.HttpMessageHandler was found' Here is the smallest piece code I can come up with that reproduces the error: using Castle.Facilities.TypedFactory; using Castle.MicroKernel.Registration; using Castle.Windsor;

RavenDB Error: Version of log file is not compatible with Jet version

半城伤御伤魂 提交于 2019-12-11 07:37:47
问题 So I installed RavendDB on a Win2003 server using these instructions: http://old.ravendb.net/documentation/docs-deployment-iis And i get the following error when I try to browse to the site. Any ideas? Version of log file is not compatible with Jet version Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: Microsoft.Isam.Esent

Nuget package dependencies. Does it work the way it should?

时间秒杀一切 提交于 2019-12-11 06:19:11
问题 RavenDb latest version is installed as a nuget package. It references Newtonsoft.Json 4.0.2. I'm trying to install TweetSharp. I get this log: M> Install-Package TweetSharp Attempting to resolve dependency 'Hammock (≥ 1.2.3)'. Attempting to resolve dependency 'Newtonsoft.Json (≥ 4.0.1)'. Successfully installed 'Hammock 1.2.6'. Successfully installed 'Newtonsoft.Json 4.0.3'. Successfully installed 'TweetSharp 2.0.8'. Install failed. Rolling back... Install-Package : Updating 'Newtonsoft.Json 4