[01:11:51] <fellipe> hi all, I am trying to run curl -X POST -d '{'id': '100', 'name': 'fellipe'}' and I am getting "TypeError: document must be an instance of dict, bson.son.SON, bson.raw_bson.RawBSONDocument, or a type that inherits from collections.MutableMapping" even I am using json.JSONEncoder().encode(req.stream.read()), what's wrong ?
[07:08:36] <BadApe> are there tools to help design map reduce code?
[12:39:16] <tomatto> hi, please is possible to skip N records to be deleted with findAndModify remove: true? https://docs.mongodb.com/manual/reference/method/db.collection.findAndModify/#sort-and-remove
[13:06:07] <ldev> hello. I come from a SQL background but I've been using mongodb for the past year or so. Unfortunately while I feel I have a grasp of the basics, sometimes I catch myself doing relational DB shit on mongo, and I wonder where or not it's the best approach to go. To understand better, I'd like to know: 1) is it ok to try to find a record by its id? 2) I know embedding docs might affect performance, but at what's the alternative? Because then
[13:06:07] <ldev> you'd need to use an id like a rel db. 3) Is query optimization in mongo a thing? Like, for instance, only grabbing the fields you need?
[16:36:35] <AlmightyOatmeal> i'm brand new to mongodb and i was wondering if someone would be as so kind to help me figure out a query? i'm taking results from elasticsearch and storing them in mongo for analysis using pandas and so far i'm successful in iterating arrays, the unique data structure has left me a bit confused -- here is some information on the model and my current aggregation query: http://pastebin.com/8iD2imEr
[16:37:07] <AlmightyOatmeal> within an object there is an array that contains values that correspond with values within the same object that the array is in but i can't figure out how to iterate over the array and grab the value from the object. i reference $_source.$_properties but i get scolded that i cannot have a reference/name with a period in it when i try to get the value of the property :(