# Admission Guidelines for contributions to mongodb-js
## Organization Toolchain
- explain mongodb-js setup
## All repositories
- requirements: you MUST follow these steps
from pymongo import MongoClient | |
import random | |
mc = MongoClient() | |
batch = [] | |
for i in xrange(10000000): | |
doc = {"location": [random.random(), random.random()], "name": {"firstName": random.choice(["tom","david","james","stephen","ian","tia","andre"])},"taxonomy":{"code": str(random.randint(0, 10000))}} | |
if i % 10000 == 9999: |
var assert = require('assert'), | |
collectionFilterable = require('../ampersand-collection-filterable'), | |
AmpersandCollection = require('ampersand-collection'), | |
AmpersandState = require('ampersand-state'); | |
var Candy = AmpersandState.extend({ | |
props: { | |
id: 'number', | |
name: 'string' | |
} |
# Admission Guidelines for contributions to mongodb-js
## Organization Toolchain
- explain mongodb-js setup
## All repositories
h5 single clause | |
.query | |
.clause | |
.key foo | |
.value bar | |
h5 multiple clauses (implicit $and) | |
.query | |
.clause | |
.key foo |
I hereby claim:
To claim this, I am signing this object:
> db.instances.findOne() | |
{ | |
"_id" : 0, | |
"matches" : [ | |
{ | |
"loglevel" : null, | |
"trigger" : " log(", | |
"version" : "r2.4.5", | |
"lineno" : 63, | |
"file" : "src/mongo/bson/bson_db.h" |
from mtools.util.log2code import Log2CodeConverter | |
l2cc = Log2CodeConverter() | |
match, _ = l2cc("Mon Oct 7 13:25:15.613 [FileAllocator] done allocating datafile /data/mongodb/db/local.0, size: 64MB, took 0.522 secs") | |
print match.pattern | |
print match.matches['r2.4.8'] |
var clusterConfig = { shards : 3, | |
mongos : 3, | |
config : 1 }; | |
var st = new ShardingTest(clusterConfig); | |
var mongos = st.s; | |
function createShardedCollections(collName, dbName, mongosHost) { | |
var mongos = new Mongo(mongosHost); | |
var i = 0; |
$ mloginfo mongod_noprefix.log --queries | |
source: mongod_noprefix.log | |
start: 2014 Apr 05 06:39:57 | |
end: 2014 Apr 06 06:27:07 | |
date format: ctime-pre2.4 | |
length: 58224 | |
binary: mongod | |
version: 2.2.3 |
diff --git mtools/mlaunch/mlaunch.py mtools/mlaunch/mlaunch.py | |
index 40b7057..89cc05d 100755 | |
--- mtools/mlaunch/mlaunch.py | |
+++ mtools/mlaunch/mlaunch.py | |
@@ -1168,7 +1168,7 @@ class MLaunchTool(BaseCmdLineTool): | |
key_path = os.path.abspath(os.path.join(self.dir, 'keyfile')) | |
auth_param = '--keyFile %s'%key_path | |
- if self.unknown_args: | |
+ if self.unknown_args and extra != '--configsvr': |