350 reputation
16
bio website askasya.com
location San Francisco, CA
age
visits member for 2 years, 4 months
seen 5 hours ago

Principal Solutions Architect for MongoDB Inc.

Answering questions and discussing MongoDB use cases on MongoDB Users Group at https://groups.google.com/forum/#!forum/mongodb-user

Posting "stupid MongoDB tricks" on http://www.kamsky.org/stupid-tricks-with-mongodb.html

Answering most interesting questions in details on http://askasya.com


Sep
24
awarded  Autobiographer
Sep
13
comment Mongodb extremely slow with bulk inserts and showing erratic behavior
why don't you post this on mongodb-user google group - this isn't a simple question/answer - there is a lot of information that would help here. Without more details about what your application is doing, what the indexes are, how the space is allocated, what sort of storage, OS settings, etc. it would mostly be guessing. Btw, why are you sending 20K documents - they will be split into 1K batches by driver anyway, why not have more threads sending 1K batches - also make sure that you use "unordered" bulk inserts.
Sep
1
answered How to determine database read/write ratio on MongoDB MMS?
Aug
30
comment How to determine database read/write ratio on MongoDB MMS?
are you mainly asking about a single node (primary of replica set) or about a sharded cluster?
May
13
comment High Global Lock % on Mongodb
Also index miss does not mean that the record was not in an index, it means that index was not in RAM.
May
13
comment High Global Lock % on Mongodb
I think you misread the chart - idx miss is 0.
May
13
comment high background flush avg mongodb
I want a puppy!!!
Jan
13
comment MongoDB replication to local hard drive
yes, you just need to run the second mongod on a different port with different dbpath. You will also need to set up appropriate voting/priority to make sure that you don't lose the primary in the case where secondary mongod dies for some reason.
Jan
7
answered MongoDB doesnt start normally?
Jan
7
comment MongoDB doesnt start normally?
mongod does not connect - mongod is the server. --fork just says "spawn mongod into a separate process so I can get the console control back".
Jan
7
comment MongoDB doesnt start normally?
'mongo' command starts the interactive shell for connection to mongodb it is not the database. 'mongod' is the command for starting mongodb server.
Jan
4
comment MongoDB doesnt start normally?
you need to use more precise terms. 'mongod' is the daemon that needs to be running for "mongoDB" to be running. Then you connect to it via 'mongo' shell - so 'mongo' gives an error for you because 'mongod' is not running. You say when you start mongod at the end there "it works fine" - what does that mean? Can you now run 'mongo' shell and connect to the server?
Dec
23
comment Start mongod instance on replica set as background job
Btw, mongod --help lists and describes all available options.
Dec
23
comment Start mongod instance on replica set as background job
You need --fork and also --logpath so logs can go somewhere.
Nov
25
comment Data Analysis with MongoDB or MySQL
All of MongoDB drivers have the aggregate method - grails uses Java driver under the hood and it supports "aggregate" helper.
Nov
25
answered Data Analysis with MongoDB or MySQL
Nov
25
comment How much free space do I need for mongoDB? and how to reclaim lost space?
I replied to this on mongodb-users google group - that's probably a better venue for this anyway.
Nov
9
comment Running a simple logging program, how to diagnose spikes mongod's CPU activity?
if you have queries that do sorts, or you do mapreduce and/or aggregations, that will cause CPU load.
Nov
6
comment MongoDB Storage Architecture (MySQL innodb_file_per_table equivalent to MongoDB)
Why do you want to have different collections in different files?
Nov
6
comment Difference between Sharding And Replication on MongoDB
replica of shard1 (which holds 25GB) would also have 25GB. Your mistake was using 75GB which is only replica size in "unsharded" (or unpartitioned) DB.