Wednesday, May 3, 2017

Twelve Steps to MongoDB Enlightenment



  1. You install the database with a single command, connect with second and add your first document with a third - this seems really easy.
  2. You write a performance test in the single threaded JavaScript shell and are underwhelmed - then try POCDriver and marvel at the difference.
  3. You use conditional update and findOneAndUpdate to make sequences, locks and queues.
  4. You discover you cannot update an array in two different ways simultaneously - you raise a JIRA ticket.
  5. You find your first use for a truly dynamic schema - then wonder how you can index it.
  6. You discover the aggregation pipeline and map-reduce and wonder which to use - you use Aggregation.
  7. You set up a pair of servers for failover then wonder why when one stops they both do halving your reliability - then you read the manual then add a third.
  8. You are missing data after a failover but find it in a directory on the server marked rollback. You discover write concerns.
  9. You deploy a replica using Cloud Manager and it’s no better than the script you found on Github - then you try a live upgrade using it and are blown away.
  10. You shard and discover it's harder than it looks - but get some help and realise it's just your lack of understanding.
  11. You realise sharding is still harder than you thought and ask for expert help.
  12. You attend MongoDB World and realise people are doing far more amazing things than you are.