PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Saturday the 18th of October, 2014

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[02:08:10] <znn> i'm working on python
[02:08:12] <znn> import bison
[02:08:25] <znn> bson.objectid.ObjectId("5543f137fdf88884bd42111a2")
[02:08:35] <znn> InvalidId: 5543f137fdf88884bd42111a2 is not a valid ObjectId
[02:09:32] <znn> i'm creating a document which is referencing another document's id
[02:09:45] <znn> i was hoping i could create an object instance like this
[02:10:08] <znn> s/object instance/objectid
[08:21:42] <hcwool> Hi, i’m having an issue with finding ids using mgo and golang
[08:22:32] <hcwool> And I really dont know what im doing wrong in order to provide code samples
[10:21:51] <ima_Hat> hey all, I have time value for each doc and each doc has a user, how do I ensure there is no doc with the same user & time?
[10:22:08] <ima_Hat> I'm using mongoose
[13:11:44] <giuseppesolinas> hello there
[13:12:48] <giuseppesolinas> I'll just post a question: Why do I get invalid ObjectId when removing an object via mongoose-node?
[13:12:57] <giuseppesolinas> error Invalid ObjectId : ObjectId("54424fa4ec71c8b560000001")
[13:13:17] <giuseppesolinas> doesn't work with raw id either
[13:14:04] <giuseppesolinas> query is here: https://gist.github.com/anonymous/8d32a32cdc02cb40a154
[13:14:16] <giuseppesolinas> thanks in advance for the help
[13:35:27] <mikewu> anybody ?
[13:40:26] <mikewu> no one online ?
[14:00:08] <giuseppesolinas> Im getting this stack
[14:00:10] <giuseppesolinas> https://gist.github.com/anonymous/b63c82f94e29a1fd9b04
[14:08:51] <giuseppesolinas> this channel sucks
[14:25:38] <tw83> Hi, is there a way of making a secondary node become a primary in the event that all other nodes in the replica set are unavailable?
[14:56:27] <kali> tw83: yes, but it requires a manual intervention
[14:57:36] <kali> tw83: http://docs.mongodb.org/manual/tutorial/reconfigure-replica-set-with-unavailable-members/
[15:04:09] <fpghost84> Just like you can insert multiple documents at once with .insert, it it possible to update multiple documents at once with .update? Specifying which unique field much match for the new to replace the old..
[16:56:14] <Lope2> is there a way to upsert an array element into a document field (that is an array) to ensure the array contains a certain string?. Example: we have a field called seenThis:['bob','joe','sarah'] and we want to upsert a new name. if the name is bob, it should not be upserted. Do we need to do a findOne() with $in? or is there an operator for this?
[16:57:21] <Lope2> okay cool. $addToSet
[17:04:33] <Lope2> I've noticed certain combinations don't work in mongoDB. Like you can't use $setOnInsert and $inc at the same time. And it seems you can't use $setOnInsert and $addToSet at the same time either?
[17:04:54] <Lope2> it would be nice if mongoDB would throw an error instead of just "not doing it"
[17:09:43] <Lope2> At least $addToSet works with $inc
[17:10:03] <Lope2> (can operate in the same query)
[17:49:52] <jamieorc> Looking for help on 2.6.5. I can crash mongo every time with a single regex query
[17:50:32] <jamieorc> about 56,000 docs, searching for values in arrays in arrays
[17:50:52] <jamieorc> looks like: db.products.find({"components.aggregated_substances.common_name": /watch/}).count()
[17:51:38] <jamieorc> this query crashes my single instance of Mongodb 2.6.5 every time. I’ve been running previous versions for years, no problem. Looking for guidance
[17:53:05] <jamieorc> on smaller sets of data, no problem (say a few thousand docs)
[18:28:49] <skot> It is probably not the size of the data, but some data which is corrupt/bad/causing-the-problem. Does the error message include the document _id or anything to identify it? Also, what is the error message?