PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Saturday the 21st of June, 2014

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[03:34:32] <freeone3000> Is there a way to perform a .copyDatabase(), where the database has users? I'm getting a duplicate key index because it's copying the system.* tables as well.
[03:37:30] <freeone3000> It looks like a possible solution would be to remove the users, do the copy, then re-create the users...
[03:45:41] <insanidade> hi all. I'm trying to compare two dates. I store a date as a ComplexDateTimeField. Question is: how do I instantiate a type comparable to a ComplexDateTimeField ?
[08:58:31] <whitecrow1> hi i can't speak EN very will but i can understand , how can i to force a specific field in collection be unique for example i want to username be uniqe in user schema
[09:12:19] <shoshy> hey, i'm using the native node.js mongodb , trying to do: users_collection.findAndModify({query:{_id:newObjectId(user_id)},update:{$set:{"location.coordinates":[lng,lat]}}},function(error,user){ , and i get "MongoError: need remove or update" , as if it doesn't recognize the "update" property. What am i missing here?
[09:13:17] <shoshy> i think i know what...
[09:13:27] <shoshy> the syntax of the native is different than mongo's
[09:14:37] <shoshy> yep..
[09:14:50] <shoshy> thanks anyway... need to be careful with that..
[10:40:47] <Nodex> Woke up this morning to find one of my mongodb installations has completly dissapered, only thing left was the configs and the data. Binaries were completly missing
[10:40:55] <Nodex> I must have sleep walked and uninstalled it
[10:43:03] <Ravenheart> wookies
[11:00:32] <spacepluk> hi, I've noticed that when using mapreduce in jsMode, I can return arrays in the reduce function. Is there any side-effect that I should be aware of?
[11:18:12] <kali> spacepluk: your reduce return value, the "values" you emit in the emit MUST have the same form
[11:19:41] <spacepluk> kali: oh, I see thanks!
[12:55:24] <insanidade> hi all. I'm using flask-mongoengine. After saving a document (MyDocument.save()), do I have to do anything else? Commit, flush, anythine else that might release resources? I'm running out of memory after a few thousand records and I believe that's a very low number.
[13:26:50] <spacepluk> is it possible to use projections in a mapreduce query?
[16:56:16] <MacWinner> Does GridFS automatically distribute data over all teh shard nodes in a statistically balanced way? I've been using Mongo 2.6.2 for a bit now, and it seems to run really well. I'm currently using glusterfs for a distributed filesystem where I can add drives into the storage array as well a linux FUSE client to mount the storage.. 2 main reasons I'm using gluster is for linear storage growth ability as well as having a simple mount point. The mount
[16:56:16] <MacWinner> point is not a huge deal for me and I can modify the app.
[17:17:21] <z999> hi guys, how do I remove a subdocument from multiple documents based on a match? I tried: > db.users.update({_id:ObjectId("53a083c92154c8f81a7c6909")},{$pull:{groups:{$el emMatch:{group:ObjectId("53a083d82154c8f81a7c690a")}}}}) but it doesn't seem to modify the document
[19:35:19] <hatsoff> i may be confused about my approach
[19:35:26] <hatsoff> is there really a need for a REST api if my app generates/updates a static json file with all site content?
[19:36:05] <hatsoff> my app is like foursquare. and most user requests are read only
[19:36:51] <hatsoff> paid users with accounts have access to the db
[19:37:56] <hatsoff> my approach was to separate the db from the client
[21:02:03] <dman777_alter> Hello, is it true that Mongodb all it's records loaded in Ram? If so, would that be just like redis?
[23:43:03] <og01> can i use $add and then $divide in one project (to create one field), or do i have to use multiple $project's?