June 07, 2010
In my last post, I sketched out how a few e-commerce domains might be modeled using MongoDB. Among the examples was an illustration of how inventory could be managed using the database’s find_and_modify command. (more...)
April 30, 2010
There are still a number of misconceptions regarding MongoDB’s
suitability for
March 28, 2010
With MongoDB’s aggressive roadmap, new features are constantly being added. Notable in the 1.4 release are the $addToSet update operator, the findAndModify command, and indexes supporting two-dimensional coordinates. Usually the first question from users is whether their driver supports the new features. Happily, the answer is almost always yes; in this post, I explain why that is so. (more...)
January 02, 2010
Want to try MongoDB in your browser? Just deployed this a few days ago:
One of the nice things about MongoDB’s JavaScript shell is that we can run a variation on it directly in the browser. It doesn’t provide near the functionality of the actual shell, but users can still get a feel for CRUD in MongoDB, and it’s possible to use any of the nifty query and update operators.
Anyone who’d like to contribute can fork the code on github.
(Almost forgot to mention that this is indeed inspired by, and is a little homage to, the great _why.)
December 15, 2009
Wherein I claim that MongoDB is for human-oriented programmers.
December 12, 2009
If you’re accustomed to working with relational databases, the thought of specifying aggregations with map-reduce may be a bit intimidating. Here, in the third in a series of articles on MongoDB aggregation, I explain map-reduce. After reading this, and with a little practice, you’ll be able to apply the map-reduce paradigm to a huge number of aggregation problems. (more...)
November 30, 2009
This is the second in a series of articles on MongoDB’s aggregation functions. In the first installment, we looked at count(), distinct(), and some of the basics of group(). But group() is rather a beast, so here we take an extended example, and look at two deep features: finalizers and key functions. (more...)
November 22, 2009
This is the first in a series of articles detailing the syntax, patterns, and use cases for MongoDB’s aggregation functions: (more...)
November 05, 2009
Couple nights back, I was given three minutes to demonstrate MongoDB before a somewhat large group of people who’d never heard of it. Source code is on github. At one minute each, the highlights are these: (more...)
August 17, 2009
Western thinkers are fond of dividing the world in two. Though simplistic, it’s effective. The flesh vs. spirit characters in the novels of Nikos Kazantzakis are memorable. The modes of having and being in Erich Fromm are illustrative. And when James P. Carse wrote about finite and infinite games, we were given another dichotomous lens for peering into the mysteries of human being. (more...)