PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Sunday the 14th of August, 2016

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[07:05:44] <daumie> getting this message "It looks like you are trying to access MongoDB over HTTP on the native driver port." using mean stack
[07:06:23] <daumie> How can I go around it ... Ubuntu 16.04 LTS
[11:28:54] <ruairi> daumie: Short answer: Don't talk HTTP to the driver port. Slightly longer answer: https://docs.mongodb.com/ecosystem/tools/http-interfaces/
[12:34:36] <daumie> ruairi: How do I implement tast?
[12:56:42] <angular_mike> I'm planning to write to a collection at aprox. rate of 100 new documents per minute. Each time to retrieve new information, I need to get the current max value of specific field(id_str) for the query to data source, like this: db.tweets.find({}, {'id_str': 1}).sort({'id_str': -1}).limit(1)
[12:57:10] <angular_mike> any additional optimizations, that should be done for this?
[12:58:27] <angular_mike> basically, I don't want the db engine to loop through all documents in the collection during sort each time, I know that the 100 newest records will have larger values than before
[12:59:45] <angular_mike> should I create and index over this field?
[13:16:13] <daumie> Trying to set up my development environment , this error has been bugging me for weeks "It looks like you are trying to access MongoDB over HTTP on the native driver port."
[13:16:27] <daumie> wtf am i doing wrong?
[15:25:10] <alexi5> hi guys
[15:25:19] <ruairi> daumie: You're talking HTTP to the MongoDB driver port. Don't do that. Use the actual MongoDB driver. For a MEAN stack, I imagine that would be the Node.js driver.
[15:26:00] <ruairi> daumie: https://docs.mongodb.com/ecosystem/drivers/node-js/
[15:26:33] <alexi5> I am thinking of storing some images in mongodb GRidFS. I am thinking of storing the thumbnail in the metadata for the image
[15:26:46] <alexi5> what is the best way to handle this in mongodb ?
[15:34:53] <StephenLynx> I create two files.
[15:35:20] <StephenLynx> or you are talking about the path to the thumb?
[15:35:37] <alexi5> i am thinking of storing the thumbnail in the database as well
[15:35:46] <StephenLynx> yeah, thats what I do.
[15:35:53] <alexi5> thumbnails are around 60k to 120k
[15:36:21] <alexi5> so each file (thumnail and full image) get their down document ?
[15:37:41] <StephenLynx> in the fs.files collection?
[17:24:36] <alexi5> StephenLynx: are you there ?
[17:38:47] <daumie> ruairi: Thanks so far for your concern ... i will post a link of what am experiencing shortly
[20:48:57] <bros> My production MongoDB instance randomly jumps to 700% CPU usage
[20:49:07] <bros> db.currentOps() doesn't show anything interesting
[22:21:52] <onis> hi
[22:24:41] <onis> im using the $text method in mongodb, with the score; is possibile hide this property? here the actual code: https://gist.github.com/Fen24/a47e0ed30bbf4ca0f98c70e5baabaaf3
[22:25:17] <onis> i know how hide property in mongo but score:0 seems doesn't works?
[22:29:57] <onis> is at least possibile hide that field?
[22:49:54] <onis> no one can help?
[22:54:01] <Derick> onis: I think you have to do that on the client side
[22:57:10] <onis> well, i can do that, maybe with .splice? but is strange, do this for huge amount of data is no good
[22:57:35] <onis> Derick:
[23:14:41] <onis> i need to go, by