Oplog: a tail of wonder and woe

First, your TL;DR: Stress test your Meteor app. Oplog tailing may be less efficient for particular workloads. Background My work involves using crowdsourcing to assess and improve technical skill. We’re focusing on improving basic technical skills of surgeons first because—no surprise here—it matters. A more skilled surgeon means patients with less complications. Being healthy, not …

Web Framework Flavor of the Month

I’ve been playing with Meteor a bit lately. It’s a “kitchen sink” system for writing web apps, complete with a database (MongoDB), server-side (Node.js), and client-side stuff. It’s all JavaScript. It’s pretty fun for little experiments. I can imagine certain kinds of websites it would be good for (web-based chat, HTML5 games, collaborative editors, and …

List largest MongoDB collections

I wanted to know the top five largest collections in my MongoDB database in terms of document count. This JavaScript gets the job done. // config var dbname = ‘dev_bv’; var measure = ‘count’; // or ‘size’ var numTopCollections = 5; function updateTopCollections(collection, stats, topCollections) { var thisCollectionObj = { ‘name’ : collection, ‘count’ : …