PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Sunday the 17th of March, 2013

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[01:54:33] <mongodb387> Hi, I installed bson using pip on both Windows and Linux but pymongo is giving error on this line: "from bson import RE_TYPE... Import error: cannot import name RE_TYPE"
[01:54:48] <mongodb387> on windows*
[04:10:06] <jstrong> hey all
[05:17:15] <pHcF> hi, how can I query a collection to return the object with specific embeddeds only instead all of them, and if no embedded satisfies the query, return the object itself with [] for the embedded (and not null for the object)
[06:48:39] <yfeldblum> i'd like to create an empty database with no collections or documents, such that the listDatabases command includes it ... is this possible?
[10:15:21] <avner> n00b here. Is there a simple way to update mongo document in an idempotent way? for instance include and "updated_at" value so that if I ran the update again, the updated_at will indicate that this was already executed?
[11:52:48] <ShishKabab> When trying to use pymongo 2.4.2, which I've installed through pip, I get this error: http://pastebin.ca/2334203 . What do I do now?
[14:53:26] <DinMamma> Hello. I have a 500gb replicaset. Im in the process of copying the data over to a sharded cluster.
[14:54:00] <DinMamma> Im basivally doing a "for document in old_database.database.collection: new_database.database.collection.insert(document)"
[14:54:04] <DinMamma> Is this naive and stupid?
[14:54:22] <DinMamma> I cant do a copyDatabase and copyCollection from mongos.
[14:54:48] <DinMamma> No of the shards in the new cluster have enough diskspace to do a mongorestore into, so I cant do that and then shard the collection.
[14:55:45] <DinMamma> Am I left with my shady solution or is there any better way of doing it?
[21:09:07] <X-Jester> can anyone help me understand why my tailable cursor keeps timing out despite specifying OP_QUERY_CURSOR_NO_TIMEOUT in the cursor options?