
MongoDB
lantianjialiang
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
how to install/compile MongoDB C driver
download source code from here extract it and compile $ ./configure --help ;list all options $ ./configure --disable-automatic-init-and-cleanup $ make $ sudo make install ; or su to root, then make in原创 2017-08-03 11:36:33 · 258 阅读 · 0 评论 -
run command from Java driver for MongoDB
run command from Java driver for example:eval command: { eval: <function>, args: [ <arg1>, <arg2> ... ], nolock: <boolean> }map to java ==>Document command = new Document(); command.put("eval",原创 2017-08-03 12:18:46 · 1804 阅读 · 0 评论 -
mongodb 杂记
1. insertDocument :: caused by :: 11000 E11000 duplicate key error index: perf_test.test.$_id_ dup key: { : ObjectId('597edae0faa2ec5e6859e7a3') } code is wrong, there have two line to insert the sa原创 2017-08-03 12:15:25 · 1006 阅读 · 0 评论 -
mongodb shell
show command show dbs use <db name> show collections db.<collectionName>.find() list help for collection db.<collectionName>.help() create index > db.test.getIndexes() [ { "v" :原创 2017-08-03 12:13:31 · 274 阅读 · 0 评论 -
mongodb simple auth
start mongod without –auth parameter, disable auth connect to this instance with mongo, then create a super user restart mongod with –auth $ mongo --port 27017 -u siteUserAdmin -p password --authentica原创 2017-08-03 12:10:29 · 263 阅读 · 0 评论 -
you need edit config ld.so.conf after you installed C driver for MongoDB
After you installed C driver from source, it print below help message, you should take care.Libraries have been installed in: /usr/local/libIf you ever happen to want to link against installed libra原创 2017-08-03 12:06:11 · 420 阅读 · 0 评论 -
compile/install C++ driver for MongoDB fail
C++ 11 driver install C driver before your install C++ driver download from here and extract it to your directory compile $ cd mongo-cxx-driver-r3.1.2/build $ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_I原创 2017-08-03 12:00:12 · 323 阅读 · 0 评论 -
how to use MongoDB Java driver in your env
config your depends manager(maven etc), like this or download jar package from here, add this jar file to your build path write your sample code like this run and test it, please make sure your mongod原创 2017-08-03 11:44:39 · 257 阅读 · 0 评论 -
install MongoDB from tar in Linux
install MongoDB from tar in Linux download tar file from here extract it to any directory, add install/bin PATH with export create data directory mkdir -p /data/db start mongod server, when everything原创 2017-08-03 11:27:04 · 225 阅读 · 0 评论 -
mongodb's mapreduce
mapReduce可是实现增量的计算,但是它有以下问题: 1. 使用javascript写成,不便于debug 2. 帮助很少 3. 性能不如aggregate 4. 你可以在mongo shell中使用 - interpreterVersion() ordb.serverBuildInfo() - 来获得mongo的 javascriptEngine 5. 在3.2中,javas原创 2017-08-24 16:20:36 · 271 阅读 · 0 评论