[08:37:52] <synthmeat> anyone using mongodb on freebsd? >2.6.7
[13:17:38] <mensgis> Hey all! I'm using sailsjs and am having a strange error where I can only persist 30 entities in a collection at a time.. there are no error.. that's why I have no idea if it is sails or mongo thats limiting.. any idea?
[17:46:28] <StephenLynx> I still think your issue is with mongoose. everytime someone comes with issues and its using node.js, the issue is with mongoose
[17:47:01] <krethan> yeah I will be taking mongoose out and see if I can just use the native mongodb driver
[17:47:23] <StephenLynx> then they use the native driver and it just werks™
[17:47:55] <devdvd> Hi all, im currently using mongo 2.4.5 and going to be upgrading to 3.0.6 (on a new server). I know I can't do a direct upgrade from 2.4.5 to 3.0.6 but can I do a mongodump and then restore the data directly to 3.0.6 or do i need to restore to 2.6 first?
[17:48:57] <krethan> I upgrade mine via yum and it kept all my data
[17:49:31] <krethan> new server...lol...never mind
[17:50:42] <krethan> devdvd: you should be able to restore the data directly
[17:51:50] <krethan> devdvd: do the mongodump...transfer the file to new server...install mongodb 3.0.6...do the restore
[17:52:35] <devdvd> yeah, that was the plan. just figured save myself a bit of time if someone knew off the top of their head. Thanks krethan! appreciate the response
[18:11:30] <StephenLynx> if you are using from the tar.gz then you don`t have to checkout, nvm
[18:11:38] <StephenLynx> I just assume people use their git repository.
[19:24:25] <Almis90> Hello guys I trying to connect to my mongo db using robomongo.. test fails on authorization can someone help me?
[19:25:40] <Almis90> in the terminal I write `use mydbname` then `db.auth('myusername', 'mypassword')` and it returns 1 but when I use it in the robomongo it fails
[22:26:01] <repxxl> Hello folks, i have a problem i using the $natural sorting but somehow as i updated the documents the order was interrupted
[22:34:27] <repxxl> this suxs but in mongo its totaly unnormal to sort something by date ... and using the $natural is too bad because as you made updates to some docs the natural disk order changes i dont know why
[22:35:28] <StephenLynx> >its totaly unnormal to sort something by date
[22:42:50] <repxxl> StephenLynx, i creating multiple "default" documents for every new user, and when i try to sort by field "create_date" which is a mongo date it gives me mixed results but never really the date it's added they are added with php fast one by one
[22:51:09] <repxxl> StephenLynx i dont know in mongo but this is my default php function http://pastebin.com/jApnyJpC how i insert multiple documents the "default" in my db ordering by create_date gives me mixed results depends every user other
[22:51:45] <StephenLynx> I dont know PHP, thats why I ask for the terminal equivalent of what you are doing.
[22:52:07] <StephenLynx> because you know, the channel is about mongo and not PHP
[22:53:24] <repxxl> StephenLynx i know, but hoped some php devs are here too
[22:53:54] <StephenLynx> I have never seen a PHP dev here.
[22:54:09] <StephenLynx> its very rare for someone to use it with a modern database.
[22:58:16] <repxxl> StephenLynx so we create both the same way dates .. i use the php function like new MongoDate is same as new Date in js.
[22:59:23] <StephenLynx> again, I don`t think your problem is there. but you don`t give me the terminal output of your documents, so I can`t tell you much
[22:59:49] <repxxl> StephenLynx well i do db.logs.find().sort({create_date:-1}) and i get mixed values like Transaction 2 , Transaction 4, transaction 1, Transaction 3 not the order i creating them
[23:00:24] <StephenLynx> and you are still not pasting it here.
[23:04:15] <idd2d> What's the best resource for experienced devs looking to get a quick overview of MongoDB? I'm experienced with the SQL world, but I have no experience in the world of NoSQL
[23:15:30] <StephenLynx> it probably isn`t precise enough or I dunno.
[23:15:55] <StephenLynx> I don`t know PHP, I just know that your problem is saving them all with the same date.
[23:16:17] <repxxl> StephenLynx well using php-fpm hell fast not the module version
[23:16:47] <StephenLynx> sure thing, thats why the _id is sorting right but the dates coming from PHP are not.
[23:16:53] <repxxl> StephenLynx anyway i know my problem yee... it generates too fast i using different objects however i gona ask php folks how to solve that fast generating of dates
[23:17:37] <StephenLynx> what do you think its happening? PHP is breaking the laws of physics and travelling in time?
[23:18:12] <StephenLynx> the documents are reaching mongo in the correct order and it is able to apply enough difference at the timestamp on _id correctly
[23:18:56] <repxxl> StephenLynx so by using _id order it uses the timestamp of _id right ?
[23:19:21] <StephenLynx> because part of _id comes from the insert time.
[23:19:22] <repxxl> StephenLynx only difference _id timestamp is not so accurate like mongo date instead of mili it uses seconds .. ok i get it.
[23:24:59] <repxxl> StephenLynx Stephen i just wanted to show you how tiny difference there is between the php-fpm and node.js http://www.prahladyeri.com/blog/2014/06/php-fpm-vs-node-js-the-real-performance-battle.html you told "php is very slow" idk i could not let that statement like this ... sry :) ty for help anyway , the old php module is slow yes i agree :)
[23:25:52] <StephenLynx> 64.447 seconds and 42.441 seconds?
[23:26:03] <StephenLynx> god, this is slow as balls.
[23:26:21] <StephenLynx> and by 2014 node.js was very slow too.
[23:26:38] <StephenLynx> I can`t see how you think something this slow is remotely acceptable.
[23:27:49] <StephenLynx> I will never understand why people are still starting projects in PHP in 2015
[23:28:32] <repxxl> StephenLynx everyone different, but for me that little speed boost didn't made me switch from php-fpm with nginx to node.js
[23:36:06] <repxxl> StephenLynx looks interesting maybe one day i will switch but for now all my projects using php and are blazing fast that is maybe because theese websites don't has xx milion requests like facebook ... i don't know what big projects you have or was working on but was a good experience for me to see your point of view to php ;)