1
vote
0answers
16 views

MongoDB with paged result set sorted by distance

I have a large collection of events and am wondering if there is any way to sort them by distance in a paged fashion. I am using the geoWithin operater to find events within a certain radius but need ...
1
vote
0answers
71 views

Storing Utc and Local datetime in Mongo using C#

I have a Mongo C# implementation that stores datetime as UTC. MongoDB.Bson.Serialization.Options.DateTimeSerializationOptions options = ...
1
vote
0answers
164 views

Why I lose performance if I use LINQ on MongoDB?

this is the situation. I have a Domain object Product like this... [DataContract] public class Product : IStorableEntity { [DataMember] public String Id { get; set; } ...
1
vote
0answers
107 views

Update mongo document filtered by parent and nested Id using C# driver

First, sorry for my english ;) I have the next classes that represents a person which can have many email accounts and each of those accounts have its respective email messages public class Person { ...
1
vote
0answers
271 views

issues making PDF's searchable on Google

I have been researching everywhere and I just cannot seem to find out how to make my documents searchable on Google without adding them directly to my website. Here is the my goal... if someone could ...
1
vote
0answers
649 views

C# Mongodb get cursor count

I am trying to find out if a document exists in a collection using the code below. Whenever the query doesn't find any documents I get a StackOverflowException. What am I doing wrong with this? ...
0
votes
0answers
50 views

how to find a sum using linq in a bson document using C#

The sample collections structure is :- { arr : [ { "seq" : 2 }, { "seq" : 4 } ] } The C# code i tried is var maxTicketSeq = bsonTrans["arr"].AsBsonArray.Sum(m => ...
0
votes
0answers
34 views

MongoDb Insert speed very slow, single threaded inserts and multiple

I have written some test for repository I have wrote. public interface IEntity<T> { T Id { get; set; } } public abstract class Entity<TEntity> : IEntity<TEntity> { [BsonId] ...
0
votes
0answers
28 views

Copy a database in MongoDB using the c# driver

I'm trying to copy a database on a mongo server using the mongo c# driver: var command = new CommandDocument(new BsonElement("copydb", 1), new ...
0
votes
0answers
20 views

C# unity mongo db integration testing

We're about to add integration tests to our project. It's c# desktop app using unity ioc and mongo db. Do you know about some embedded mongo db or something what acts almost like mongo db, which could ...
0
votes
0answers
30 views

Best way to validate for bsonnull in a bson document in C#

My sample document looks like this. sampledoc = { "name" : "shan", "address" : { "add1" : "", "add2": null ...
0
votes
0answers
17 views

Distinct metrics for Cubism (Square/Cube)

I'm looking for a rest call to square/cube that will give me a distinct list of a certain property from my events. My property is a string on the data property of the cube event. Is that possible to ...
0
votes
0answers
27 views

MongoDB object scope

In RavenDB it is recommended practice to keep the IDocumentStore in application scope, and the IDocumentSession in thread scope. Are there similar scoping best practices for the MongoDB C# client ...
0
votes
0answers
28 views

How to properly map a database object to a view model

I query my database for 40 or so blogs, get back the results and try to map each "blog" to a viewmodel while also querying each "userId" associated with the "blog" in order for me to get the creator's ...
0
votes
0answers
47 views

Getting InvalidOperationException Exception from mongodb c# driver for queries that return large dataset

I have a restful service in c#.net that talks to mongodb. When I return about 20,000 records to client the service works fine. But increasing the returned data set causes below exception on server ...

1 2 3 4 5 9
15 30 50 per page