I hereby claim:
- I am adamchel on github.
- I am adamchel (https://keybase.io/adamchel) on keybase.
- I have a public key whose fingerprint is 161A 0206 E43A DB31 5EF6 D253 8FBE 8B97 8FBF 6FE7
To claim this, I am signing this object:
| /** | |
| * Copyright 2018-present MongoDB, Inc. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| import { | |
| AnonymousCredential, | |
| BSON, | |
| Codec, | |
| Stitch, | |
| RemoteMongoClient, | |
| RemoteMongoCollection | |
| } from 'mongodb-stitch-server-sdk'; | |
| // This is the interface we want to insert and retrieve from the collection. |
| function logMessage(message) { | |
| var d = new Date() | |
| print(`${d.getHours()}:${d.getMinutes()}:${d.getSeconds()}.${d.getMilliseconds()}: ${message}`) | |
| } | |
| coll_size = 50000 // Number of documents in the collection we're aggregating | |
| subdoc_size = 2500 // Number of subfields in the columns subdocument | |
| subdocument_targets = [10, 25, 50, 100, 250, 500, 1000, 1500, 2500] | |
| // Non-bucketed tests |
| # | |
| # Generates a cURL command to add IPs to an MongoDB Atlas Group IP whitelist. | |
| # | |
| import sys | |
| atlas_user = sys.argv[1] | |
| atlas_api_key = sys.argv[2] | |
| atlas_group_id = sys.argv[3] | |
| whitelist_file = sys.argv[4] # Each IP or CIDR block should be separated by a newline |
I hereby claim:
To claim this, I am signing this object: