0

My Mongo schema is as follows:

  • KEY: Client ID
  • Value: { Location1: Bitwise1, Location2: Bitwise2, ...}

So the Column names would be names of locations. This data represents the locations to which a client has been to, and bitwise captures the days for which the client was present at that location.

I'd like to run a map-reduce query on the above schema. In that, I'd like to iterate on all the columns of the Value for a Row. How can that be done? Could some one give a small code snipped which explains it clearly? I'm having a hard time finding it on web.

Ouroboros
  • 1,432
  • 1
  • 19
  • 41
  • http://stackoverflow.com/questions/684672/loop-through-javascript-object/684692#684692 is that what you're trying to do? – WiredPrairie Jul 08 '13 at 11:07
  • Also, the terms you are using aren't right for MongoDb, there's a handy table here: http://docs.mongodb.org/manual/reference/sql-comparison/ – WiredPrairie Jul 08 '13 at 11:09

0 Answers0