Tags » Mongo

Mongodump reads from secondary by default in shard cluster with replica set

When running mongodump against a mongos instance where the sharded cluster consists of replica sets, the read preference of the operation will prefer reads from secondary members of the set.

Mongo

Tucked in for the Night

There are studies that say that dogs can develop reasoning powers on a par with a human toddler. And retrievers, i.e. Mongo, are near the head of the class. 777 more words

Mongo

Mongo cannot run command count(): failed on : [primary shard]

Error: When using MongoDB sharded cluster 2.6 and php mongo driver,  db.collection.count() contains an $in operator would raise a BadValue error if using assoc array or bad numerical indexed array: 34 more words

Mongo

Mongo can’t canonicalize query: BadValue $in needs an array

Error: From MongoDB 2.6, $in need an numerical indexed array. Associative array or malformed numerical indexed array like these will raise BadValue error:

array(‘apple’->’iphone’, ‘nokia’->’winphone’)

25 more words
Mongo

Meteor: Uncaught Error: Not permitted. Untrusted code may only update documents by ID when update array element using $

Error: Not permitted. Untrusted code may only update documents by ID when update sub array using $ in Meteor

Cause:

Suppose we have this doc: 82 more words

Mongo

Unable to activate mongo-1.12.0, because bson-2.3.0 conflicts with bson (= 1.12.0)

Error: Unable to activate mongo-1.12.0, because bson-2.3.0 conflicts with bson (= 1.12.0) when installing both ruby gem mongo and mongoid

Cause: mongo gem requires bson 1.12.0 while mongoid version > 3.0.0 requires moped which needs bson 2.3.0… 21 more words

Mongo