What .NET-compatible graph database solution(s) have a proven track record?

Trying to implement a graph database in Mongo is a rabbit hole that’s been tried before. See this message from the TinkerPop user group: https://groups.google.com/d/msg/gremlin-users/_zweYGxR8wM/0AUu-UoqTRIJ Microsoft’s Trinity graph is an internal project not available for download: http://research.microsoft.com/en-us/projects/trinity/ Neo4j Server (http://neo4j.org) paired with Romiko and Tatham’s .NET client (http://hg.readify.net/neo4jclient/wiki/Home) is a popular combination. Neo4j scales to … Read more

$or statement in $elemMatch

Sure it is, just clearing up the syntax but you basically had it: { “opened”: { “$elemMatch”: { “closed”: false, “$or”: [ { “openingEvening”: { “$lte”: currentTime }, “closingEvening”: { “$gte”: currentTime } }, { “openingMorning”: { “$lte”: currentTime }, “closingMorning”: { “$gte”: currentTime } } ] } } } And given a sample idea … Read more

Recommended NoSQL Database for use with Python [closed]

Most of the nosql databases have python clients which are actively supported. Pick your database based on your usage needs. Using it from python shouldn’t be a problem. To name a few: Cassandra: https://github.com/datastax/python-driver Riak: https://github.com/basho/riak-python-client MongoDB: http://api.mongodb.org/python/current/ CouchDB: http://wiki.apache.org/couchdb/Getting_started_with_Python Redis: https://github.com/andymccurdy/redis-py

A timeout occured after 30000ms selecting a server using CompositeServerSelector

Add “?connect=replicaSet” to the end of your connection string if connecting to MongoLab. new MongoClient(“mongodb://username:[email protected]:11111/db-name?connect=replicaSet”) This JIRA ticket has some details: https://jira.mongodb.org/browse/CSHARP-1160 Basically the default is to connect to a replica set member. But MongoLab’s Single-Node settings are actually a single node replica set and this causes us to not trust it. Appending ?connect=replicaSet to … Read more

Mongoose populate embedded

As of Mongoose 3.6 the ability to recursively populate related documents in a query has been added. Here is an example of how you might do it: UserList.findById(listId) .populate(‘refUserListItems’) .exec(function(err, doc){ UserListItem.populate(doc.refUserListItems, {path:’refSuggestion’}, function(err, data){ console.log(“User List data: %j”, doc); cb(null, doc); } ); }); In this case, I am populating an array of id’s … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)