[00:42:01] <peterp> Hi guys, is it possible to overwrite the mongodb _id with my own personal ID?
[00:42:15] <peterp> I am consuming info from another database that already has the ID I'd like to use, can I remove it?
[00:43:00] <peterp> can I remove the mongodb _id and overwrite it with the ID I am receiving so I could easily search by it
[00:52:51] <bazineta> You can use an id of your choosing. Session management collections commonly do so.
[00:54:11] <bazineta> Basically, the _id field must be immutable and unique within the collection, but it can be anything except for an array.
[00:55:39] <bazineta> To clarify, you need an _id field; it has to be present. However, if you meet those constraints, you can use your own value there instead of the auto-generated ObjectId
[02:52:50] <Aerospark> for the .update({<query>},{$set:{<variable>:"something"}}) command, is there a way to pass in a variable into the $set command?
[02:53:09] <Aerospark> if I put the veriable name, mongo just sees it as the field name... but I need the field name to be dynamic
[04:38:26] <joannac> Aerospark: if you need something like that, store it as {k: FieldName, v: Value}
[04:38:35] <joannac> dynamic field names are just going to bite you
[17:17:09] <wildstrangething> Hello, i have a question on saving data from a temperature logger every 1 sec to mongodb. Is it better to insert new docs for each temp reading, or append the values to an array in a single document, and have 1 document for each temperature logger?
[19:00:05] <amergin> I have an array of objects like {'sampleid': '', 'dataset': ''} and I need to match the corresponding objects to each mongodb document. what's the easiest way to query this?