{ "Count": 1, "FirstOccurredOn": "2015-11-23T18:53:48.598028Z", "ApplicationName": "TaskManagerServer", "Details": "", "Id": "2dde00cd25ed4a35a32b0000000bf697", "OccurredOn": "2015-11-23T18:53:48.598028Z", "Tags": [], "TextMessage": "....(some text here)...", "Type": 4, "Metadata": { "ServerId": "1", "ProviderId": "1" }}
public sealed class DebugMessages_ByDefaultIndexes : AbstractIndexCreationTask<DebugMessage>{ public DebugMessages_ByDefaultIndexes() { Map = messages => messages .Select(item => new { item.OccurredOn, item.ApplicationName, item.Type, item.Tags, _ = item.Metadata.Select(x => CreateField("Metadata_" + x.Key, x.Value)) }); }}
public sealed class Tags_ByName : AbstractIndexCreationTask<DebugMessage, Tags_ByName.Tag>{ public sealed class Tag { public string Application { get; set; } public string Name { get; set; } } public Tags_ByName()
{ Map = messages => messages.SelectMany(message => message.Tags, (message, tag) => new Tag { Name = tag, Application = message.ApplicationName }); Reduce = results => results.GroupBy(tag => new
{ tag.Application, tag.Name }).Select(g => new Tag { Application = g.Key.Application, Name = g.Key.Name }); }}
public sealed class Applications_ByName : AbstractIndexCreationTask<DebugMessage, Applications_ByName.Application>{ public sealed class Application { public string Name { get; set; } } public Applications_ByName()
{ Map = messages => messages.Select(x => new Application { Name = x.ApplicationName }); Reduce = results => results.GroupBy(application => new
{ application.Name }).Select(g => new Application { Name = g.Key.Name }); }}
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Michael Yarichuk
RavenDB Core Team
Tel: 972-4-6227811
Fax:972-153-4-6227811
Email : michael....@hibernatingrhinos.com
RavenDB paving the way to "Data Made Simple" http://ravendb.net/
Hi,First, what is the build that you are running?1) The indexes look ok. Just to make sure, do you have suggestions enabled?
2) How is the app that runs Raven instance is compiled? AnyCPU? What happens if you compile it to x64 and run Voron?
3) Can you show code of how you do inserts now?
a. Can you send the profiler session so I can take a look?Also, you might want to take a look at Bulk Insert http://ravendb.net/docs/article-page/3.0/csharp/client-api/bulk-insert/how-to-work-with-bulk-insert-operation4)
b. Can you post your Raven configuration?
c. Can you share hardware specs of a machine your app runs on?
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
You received this message because you are subscribed to a topic in the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ravendb/L3H1G8i-yeU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ravendb+u...@googlegroups.com.
Hibernating Rhinos Ltd
Grisha Kotler l RavenDB Core Team Developer l Mobile: +972-54-586-8647
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
RavenDB paving the way to "Data Made Simple" http://ravendb.net/
Michael Yarichuk
RavenDB Core Team
Tel: 972-4-6227811
Fax:972-153-4-6227811
Email : michael....@hibernatingrhinos.com