Indexes on collections that don't exist: one of the mysteries of Mongo

Submitted by Barrett on Sat, 11/19/2011 - 21:14

I've been working on a Drupal module which aggregates and reports on some data from Mongo. In order to keep from having to re-do all the aggregations, the aggregated data itself is written off to a Mongo collection which is then retrieved and displayed when the reports are requested. To make the retrieval more efficient, I need an index on the table storing the aggregated data.

Tags

Mongo MapReduce FTW!

Submitted by Barrett on Tue, 09/27/2011 - 19:53

One of the systems I've lately inherited makes heavy use of Mongo for data storage, a data system I've not used previously. So, when the boss called tonight and said that his boss needed counts of an object in our system by state in the next 10 minutes my thinking went something like...

No problem, that's a simple SQL group-by....Oh, wait. This is mongo. Oh, crap! How do I do that?! It's a function; Map...Something.

Tags

What is Drupal?

Submitted by Barrett on Mon, 02/28/2011 - 05:10

What is Drupal?

In preparation for his upcoming keynote at DrupalCon Chicago, Dries has posted a request on his blog that Drupal users answer the question of what Drupal is to them. My answer to the question is:

Drupal is the lackey that I force to write the boring, repetitive code (e.g., log in/log out, change password, database CRUD operations) so that I can focus on the interesting problems.