PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Sunday the 16th of November, 2014

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[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
[04:44:10] <Aerospark> They already have :p
[04:46:25] <Aerospark> see, I have a field like this profile.orders: [ mon:{<lunch>,<dinner>}, tue:{<lunch>,<dinner>},] , etc
[04:46:42] <Aerospark> so confused right now haha
[04:47:34] <Aerospark> i need to access the lunch on tues and update it
[04:49:33] <joannac> $set: {"profile.orders.tue.lunch" : "steak"}
[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?
[17:19:02] <kali> wildstrangething: http://blog.mongodb.org/post/65517193370/schema-design-for-time-series-data-in-mongodb
[17:19:35] <kali> wildstrangething: that said, unless this is a toy, i would try to use a time series oriented database
[17:20:00] <kali> wildstrangething: (not everybody agree with that, though)
[17:20:57] <wildstrangething> kali: thanks for the link, reading it
[17:21:07] <wildstrangething> what time series oriented db will u recommend?
[17:21:26] <kali> wildstrangething: have a look at influxdb
[17:24:11] <wildstrangething> thanks!
[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?
[20:23:32] <talbott> Hello Mongoers
[20:23:39] <talbott> anyone have any experience with Text Indexes?
[20:26:54] <talbott> I keep getting this error "errmsg" : "found language override field in document with non-string type",
[20:27:46] <talbott> even if i specify a default language
[21:15:46] <bazineta> Curious if anyone has seen a mongoose tailable stream start pulling duplicates after a replica set elects a new master.