PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Sunday the 13th of September, 2015

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[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?
[13:19:18] <cheeser> it's not a mongo thing.
[13:19:42] <mensgis> is it a wrong config cheeser?
[13:19:48] <cheeser> no idea
[13:20:07] <mensgis> so how do you know? is that happening often?
[13:21:00] <cheeser> i know because mongo doesn't limit collection sizes like that.
[13:21:29] <mensgis> ah.. overread that _not_ ^^
[17:18:11] <krethan> I am using nodejs and doing the .save function after findone command through mongoose and it is hanging
[17:18:15] <krethan> any ideas?
[17:19:11] <StephenLynx> stop using mongoose.
[17:23:20] <krethan> whats wrong with mongoose? ;)
[17:23:52] <StephenLynx> slow, inconsistent, bad designed.
[17:24:04] <StephenLynx> it just the worst thing you could ever use to do what its supposed to do.
[17:24:19] <StephenLynx> it gives people nothing but horrible issues all the time.
[17:24:56] <StephenLynx> it can`t handle _id properly, can`t handle dates properly.
[17:28:04] <krethan> sounds good I will try to find a different odm to use
[17:29:16] <synapse> mongodb is the one to use
[17:29:33] <StephenLynx> imo
[17:29:38] <StephenLynx> there are no good odms.
[17:29:44] <StephenLynx> they are all bullshit.
[17:30:07] <synapse> mongodb is recommended by MongoDB
[17:30:20] <mensgis> StephenLynx: hm.. sound like flatfiles with a made up propertery data-format is the way to go then
[17:30:25] <StephenLynx> mongodb is the database itself.
[17:30:34] <StephenLynx> or they named something with the same name of the database?
[17:31:04] <StephenLynx> mensgis wot? I am not talking about databases, but odms. you know the difference between then, right?
[17:31:40] <mensgis> yeah.. but without an odm you are either creating your own one OR not using a db at all
[17:31:47] <StephenLynx> HAHSDJAHSJKDHASD
[17:31:49] <mensgis> and since they are all shit
[17:31:49] <StephenLynx> :v
[17:32:08] <StephenLynx> have you ever wrote software at all?
[17:32:13] <StephenLynx> like, what the hell are you talking about?
[17:32:32] <StephenLynx> have you actually used a driver for a database?
[17:32:59] <StephenLynx> or just went on "databases for dummies" everytime?
[17:33:25] <StephenLynx> if you are going o have a strong opinion, learn what you are talking about, at least.
[17:44:52] <krethan> I'm upgrading nodejs...not sure if that will solve problem or not but I like to keep current with the latest version
[17:45:10] <krethan> 0.12.4 right now
[17:45:14] <StephenLynx> daium
[17:45:17] <StephenLynx> thats old
[17:45:37] <krethan> yeah i see there is v4.0.0 now lol
[17:46:01] <krethan> just compiling from source
[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:46:32] <StephenLynx> every single time
[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
[17:53:20] <krethan> devdvd: np
[17:57:14] <krethan> StephenLynx: I was debugging and since I am using an older version of nodejs it is using deprecated code
[17:57:33] <krethan> StephenLynx: Once I get new version I will let you know if anything different
[17:57:47] <krethan> StephenLynx: just for curiousity sake
[18:00:16] <krethan> StephenLynx: I have also upgraded all the packages installed on my fedora system. Doubt that will have any impact;
[18:01:39] <StephenLynx> yeah
[18:01:45] <StephenLynx> you do should run npm rebuild though
[18:02:14] <StephenLynx> because native modules build based on the installed version/
[18:02:29] <StephenLynx> and you did remember to checkout v4.0.0 before building?
[18:02:37] <StephenLynx> if you build from HEAD it will most probably not work.
[18:05:52] <krethan> I am building from tar.gz source file
[18:06:02] <krethan> didn't checkout from git
[18:06:33] <krethan> okay i got v4.0.0 up and working
[18:06:40] <krethan> I will do the rebuild
[18:07:40] <krethan> alright here we go :)
[18:08:42] <krethan> StephenLynx: still hanging as expected.
[18:08:58] <krethan> StephenLynx: out comes mongoose
[18:09:11] <krethan> StephenLynx: let you know in abit
[18:11:19] <StephenLynx> ah
[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:35:30] <StephenLynx> why?
[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:44:16] <StephenLynx> go to the terminal
[22:44:23] <StephenLynx> and query it by date
[22:44:34] <StephenLynx> include the query you are using for it.
[22:44:44] <StephenLynx> I have never had any issues sorting things by date.
[22:45:06] <repxxl> StephenLynx even if u included 10 documents fast in one query on php side
[22:45:44] <StephenLynx> that is completely unrelated.
[22:45:52] <repxxl> StephenLynx i dont know why but when i sort by _id it uses too date ?
[22:45:56] <StephenLynx> no
[22:46:00] <StephenLynx> it doesn't.
[22:46:14] <repxxl> StephenLynx ok because i using _id ordering and it is in the correct order now .
[22:48:03] <StephenLynx> the insertion time does affect the _id
[22:48:16] <StephenLynx> but you are not exactly sorting by it when you sort by _id
[22:48:20] <StephenLynx> http://stackoverflow.com/questions/12098815/mongodb-sort-order-on-id
[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:54:29] <StephenLynx> or a modern anything
[22:55:35] <repxxl> StephenLynx oh, with what language do you use mongo if i may ask ?
[22:55:47] <StephenLynx> javascript running under node.js.
[22:56:57] <repxxl> StephenLynx sounds good :) , if you are creating mongo dates how you do create them in mongo query ?
[22:57:23] <StephenLynx> new Date()
[22:57:40] <repxxl> StephenLynx that is a javascript function right ?
[22:57:45] <StephenLynx> I don`t think you problem at hand is related to PHP, though.
[22:57:48] <StephenLynx> yes, it is.
[22:58:01] <StephenLynx> but since you don`t give me the print of your database
[22:58:04] <StephenLynx> I can`t tell you much.
[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:00:46] <repxxl> StephenLynx ok give me sec
[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:04:57] <StephenLynx> https://docs.mongodb.org/manual/ imo
[23:05:10] <repxxl> StephenLynx another problem, i removed my collection by db.collection.remove() is there a way get back data ?
[23:05:18] <repxxl> StephenLynx by mistake
[23:05:20] <StephenLynx> no
[23:05:27] <repxxl> StephenLynx k. sec
[23:11:16] <repxxl> StephenLynx ok look http://pastebin.com/uMLuBsiT you see completely uncorrect order it jumps from 3 to 1 lel etc ...
[23:11:48] <StephenLynx> can you use .pretty() at the end of it?
[23:11:51] <repxxl> StephenLynx i dont know if php is so brutal fast that it creates date faster then the pervious was created or same dates or idk
[23:12:02] <StephenLynx> and include the query?
[23:12:14] <StephenLynx> rest assure, PHP is anything but fast.
[23:12:17] <StephenLynx> assured*
[23:12:56] <repxxl> i used db.col.find().sort({create_date:-1}) i gona try now with .pretty() on end
[23:13:23] <StephenLynx> the thing is, the generate date is the same for most of them.
[23:13:36] <StephenLynx> everything related to mongo is working as intended.
[23:13:54] <StephenLynx> your issue with the the dates you are getting being the same for most documents.
[23:14:09] <repxxl> StephenLynx ok here at top you see also the query command http://pastebin.com/N8bYkEsr
[23:14:39] <repxxl> StephenLynx ya i see so php is too fast but why sorting by _id works in correct order ?
[23:14:52] <StephenLynx> php is very slow.
[23:15:02] <StephenLynx> because the dates PHP is giving you are the same.
[23:15:06] <StephenLynx> just look at it
[23:15:22] <StephenLynx> 2015-09-13T23:05:26.281Z 2015-09-13T23:05:26.281Z 2015-09-13T23:05:26.281Z
[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:05] <StephenLynx> jesus christ...
[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:06] <StephenLynx> yes.
[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:28:54] <StephenLynx> "little"
[23:28:57] <StephenLynx> about 50
[23:28:59] <StephenLynx> %
[23:29:05] <StephenLynx> yeah, little.
[23:29:30] <StephenLynx> not to mention PHP being one of the most awful syntaxes out there and broken by default
[23:29:32] <StephenLynx> but hey
[23:29:34] <StephenLynx> everyone`s different
[23:29:41] <StephenLynx> someone arent good with computer
[23:31:08] <repxxl> StephenLynx by broken syntaxes you mean sql injection, csrf tokens and other security holes ?
[23:31:28] <StephenLynx> no
[23:31:35] <StephenLynx> thats bad on its own
[23:31:47] <StephenLynx> hold on
[23:31:57] <StephenLynx> http://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/
[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 ;)
[23:36:22] <StephenLynx> >blazing fast
[23:36:24] <StephenLynx> heh
[23:36:32] <StephenLynx> lynxhub.com
[23:36:35] <StephenLynx> is my main project.
[23:37:04] <StephenLynx> how PHP handles imports is awful too
[23:37:15] <StephenLynx> "HEY JUST INCLUDE THE WHOLE SOURCE CODE HERE OK"
[23:37:38] <StephenLynx> a PHP project ends up a rat nest because of this
[23:38:09] <repxxl> StephenLynx pinhec.com here is mine
[23:38:30] <StephenLynx> where is the source code?
[23:38:47] <repxxl> StephenLynx in my pc
[23:38:54] <StephenLynx> HGAHAHAHAHAHAHA
[23:38:55] <StephenLynx> :v
[23:39:09] <repxxl> StephenLynx :D or u dont trust me
[23:39:17] <repxxl> StephenLynx i will shut it down now ok ?
[23:40:01] <StephenLynx> if I can`t see your back-end code, how can I even start evaluating it?
[23:40:27] <StephenLynx> all I can see is a bunch of front-end files. that isn`t relevant on an online system.
[23:40:34] <StephenLynx> is just eye-candy
[23:40:53] <StephenLynx> why do you even bother linking it if I can't actually evaluate it?
[23:41:14] <repxxl> StephenLynx hmm and your source code ? where do i find it
[23:41:47] <StephenLynx> its linked on the front-page
[23:42:10] <StephenLynx> under the "source code" section
[23:44:06] <repxxl> StephenLynx yea i see, oh open project under MIT license ok i just wanted to show you the load speed is all
[23:44:26] <StephenLynx> not open
[23:44:27] <StephenLynx> free
[23:44:35] <repxxl> * sry
[23:44:54] <StephenLynx> and theres lots of latency surrounding single load times.
[23:45:22] <StephenLynx> so it tells me nothing if it loads fast when the is no load and I am just loading it once to view.
[23:52:15] <repxxl> StephenLynx cool logo anway that kitty :D
[23:52:31] <repxxl> StephenLynx own created?
[23:55:13] <_syn> whats the difference between profiling and oplog
[23:55:28] <_syn> doesnt profiling contain operations also?