PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Monday the 6th of April, 2015

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[15:21:38] <rittyan> Hi all. I have a question about performance (I am about to test it anyway though) of mongodb with large arrays (thousands of elements), no index on them, they will never be updated. I can't expect any problems due to document size growth since documents will be created, read and deleted (no updates). Are there any other caveats?
[16:30:47] <fewknow> blamo
[16:49:39] <T-Sourcemaker> Can someone explain me the difference between Aggregation, Group and MapReduce? I try to migrate my application from couchdb to mongodb :)
[16:50:00] <T-Sourcemaker> and in couchdb there is just mapReduce
[17:40:00] <YouLoop> Hi, I am trying to set up a new mongoDB instance on a VPS. its connectable via shell, both from localhost and remotely, both showing any test data I create. Added a user and I can auth to that from the console locally, but connecting remotely I always get the following error:
[17:40:08] <YouLoop> Error: 18 { ok: 0.0, errmsg: "auth failed", code: 18 }
[17:41:08] <YouLoop> and I can't find anything googling or in the docs about differences between a local connection and a remote one to the shell
[20:21:18] <troker> Hey all - Im looking for help updating a mongodb from Node. I currently have the two files written here http://fpaste.org/207737/83513791/ -- I would like to, at the bottom of songController, write a query that looks to see if a the user has an entry already ( userId : req.user._id ) and then update that entry with song object. If there is not an entry for that req.user._id I would like to create one. Any thoughts?
[20:22:04] <StephenLynx> >mongoose
[20:22:10] <StephenLynx> I might be able to help you otherwise
[20:22:11] <StephenLynx> =/
[20:28:17] <afroradiohead> main, how do i shutdown my mongo cleanly onn windows?
[20:29:15] <jr3> in mongoose is there a way to define an array that could hold sever schemas
[20:29:37] <jr3> property:[Schema1,Schema2,.etc]
[20:35:32] <macabre> hey guys - i'm trying to create a user that will connect to my local database.. i followed the instructions on how to add a user but when i try to connet with that user i get a 'Failed to authenticate user@db'
[20:35:59] <StephenLynx> macabre have you tried user:pass@host/db?
[20:36:24] <StephenLynx> or user:pass@host:port/db?
[20:36:28] <StephenLynx> that is what worked for me.
[20:36:50] <macabre> StephenLynx: i'm getting a user not found error
[20:37:11] <macabre> so i don't think its the way i'm connecting
[20:38:03] <macabre> more so how i'm adding the user
[20:38:37] <macabre> i tried adding the user from the shell
[20:39:08] <macabre> db.creteUser({user:"admin",pwd:"password",roles:[{role:"userAdminAnyDatabase",db:"somedb"}]};
[20:41:13] <macabre> well i just noticed my typo :P
[21:35:20] <joe1234> HI, I would like to know if I can ignore the schema design constraints chosen due to fragmentation and reallocation problems of memory mapped files if I switch to wiredTiger. (this is what it looks like at first sight, and it seems cool)
[21:41:20] <joe1234> I'm asking cos I can't find a definitive answer to that question.
[21:46:04] <joe1234> Like for example, are stuff like custom document padding and append-only collections still usefull with wiredTiger ?
[22:51:59] <afroradiohead> Have you guys ever ran into the issue whether git push your database to your remote server and it's not showing what's in the local?
[22:52:47] <cirwin>  /join #puma
[23:25:59] <joannac> afroradiohead: you what now?
[23:34:11] <afroradiohead> heh ok
[23:34:20] <afroradiohead> so... i've been working on local
[23:34:23] <afroradiohead> with mongo
[23:35:01] <afroradiohead> so I pushed to a dev server, and the mongo database reflects an old dataset i had on local
[23:35:18] <afroradiohead> basically... local => currrent, dev server => 1/4/2015
[23:35:41] <afroradiohead> wanted to know if it was anything mongo-related that might help
[23:49:33] <joannac> define "pushed"
[23:50:01] <afroradiohead> sorry git pushed
[23:50:13] <joannac> why are you checking in your database files to git?
[23:50:22] <afroradiohead> yep
[23:50:34] <afroradiohead> even the file sizes are the same
[23:50:47] <joannac> the files sizes are the same because files are preallocated :p
[23:50:56] <afroradiohead> preallocated?
[23:51:10] <joannac> yes
[23:51:23] <afroradiohead> oh i gotta look up what that means
[23:51:27] <joannac> anyway, this is not supported
[23:51:32] <joannac> git push is not atomic
[23:51:48] <joannac> writes could've been going on while you were committing files
[23:52:28] <afroradiohead> i shutdown the my local database before i push
[23:53:06] <joannac> and when did you push?
[23:53:07] <afroradiohead> before i push the database files
[23:53:18] <afroradiohead> i pushed a lot of times within the last week
[23:53:43] <joannac> afroradiohead: shut down every time you pushed?
[23:53:50] <afroradiohead> yeah, so i'm running locally on windows
[23:54:05] <afroradiohead> and i use a console to run mongo
[23:54:42] <afroradiohead> when i'm done, i bust out "db.shutdown()" and then push my changes to my remote (remote runs on linux)
[23:55:10] <afroradiohead> then start the linux box's mongod
[23:55:35] <joannac> and the mongod shuts down cleanly?
[23:55:42] <joannac> did you check out the right version on linux?
[23:55:52] <joannac> what do the timestamps on the files say?
[23:55:59] <afroradiohead> let me check
[23:56:34] <afroradiohead> apr 6 3:40
[23:56:57] <afroradiohead> but yeah, if i transfer databases to different computers, it should still have the same data right?
[23:57:10] <afroradiohead> btw i did shutdown all today, prior to today i wasn't
[23:57:16] <afroradiohead> shutdown cleanly*
[23:57:48] <afroradiohead> in the mongo shell, is there a way to see the current dbpath?
[23:58:06] <joannac> db.serverCmdLineOpts()
[23:58:40] <afroradiohead> thx
[23:59:12] <afroradiohead> ahh, looks like i got the wrong config path