[10:08:41] <Constg> Hello, I have a question about hardware. I have a database about, according to MMS, 213 GB andit's growing. As I need to replace the machine, should I take more RAM 128 -> 256 or should I keep the same RAM but increase the proc (16 cores -> 20 cores but I loose 0.2 Ghz)?
[11:39:19] <jdo_dk> Can i combine $inc and $set in a single query ?
[12:16:08] <d-snp> hi guys, the performance of wiredtigercollection.drop() is significantly lower than that of the old style, is there some documentation on this or something I could do to hasten it?
[12:44:00] <d-snp> our config servers are in an inconsistent state again
[12:44:05] <d-snp> seems like a weekly occurrence :(
[12:45:00] <deathanchor> d-snp: only the logs should tell you what's gone wrong
[12:45:50] <d-snp> I think it crashes during a particularily long collection remove operation
[12:54:42] <deathanchor> logs don't say what's up?
[13:08:36] <d-snp> deathanchor: I put my colleague on figuring it out, if he finds anything I'll give an update here :P
[13:09:23] <deathanchor> yeah also check the logs of the mongos where the remove was done.
[13:21:47] <d-snp> deathanchor: wiredtiger seems to lock the database for as long as a collection.drop() call runs, that seems a bit unnecessary, do you know if it would be easy to fix that?
[13:22:10] <d-snp> or do collections have some relation to eachother in wt? I remembed drops being near instant on mmap
[13:22:37] <d-snp> the whole reason we moved to a multi-collection architecture was that drops were instant on mmap
[13:23:06] <StephenLynx> why do you need to drop collections often?
[13:23:47] <d-snp> it's data with a fixed retention
[13:24:34] <d-snp> we throw away about 60gb per day at the moment I think
[13:27:05] <d-snp> I think a few weeks ago it was established that our setup was nonsensical :P
[13:27:37] <d-snp> but it solved a bunch of problems for us, and it was relatively easy to implement on our app side
[13:28:52] <StephenLynx> ok, so let me get this straight
[13:29:00] <StephenLynx> you have an ass-backwards system
[13:29:10] <StephenLynx> and somehow its WT fault for not playing nice with it?
[13:29:27] <StephenLynx> why don't you use TTL instead?
[13:29:27] <d-snp> eh, I'm not faulting wt for anything
[13:29:41] <StephenLynx> why don't you just NOT save all this data?
[13:29:55] <StephenLynx> "deathanchor: wiredtiger seems to lock the database for as long as a collection.drop() call runs, that seems a bit unnecessary"
[13:29:57] <d-snp> I'm just asking whether there's a reason wt's drop takes so long
[13:30:12] <StephenLynx> go figure, is not even the default engine yet, afaik.
[13:30:50] <d-snp> true, but it's very nice it saved us a bunch of space
[13:41:19] <Kobbb> Hello guys, I have some trouble creating MongoDB users/roles
[13:42:06] <Kobbb> here is my commands : http://pastebin.com/mFMAtmNr, but when I run the second one, it tells me : "2015-09-08T13:36:44.593+0000 E QUERY Error: couldn't add user: No role named basicUser@toto
[14:08:31] <deathanchor> keepass for everything else
[14:08:38] <deathanchor> which of course has another password :)
[14:10:36] <deathanchor> I have 5 passwords I know, and 300+ generated. never the same username/pw used.
[14:28:22] <saml> one node is in RECOVERING state and 90 hours behind primary. it's never catching up
[14:29:43] <Kosch> heyho. I'm compiling mongodb from source and I get pretty large executables ~350MB each. My options are --64 --ssl --no-glibc-check --release all. According to ldd, the executable is not static linked. Tried different versions of gcc with same result. Any ideas what I missed?
[14:34:27] <Kosch> ok, seems the binaries are not stripped
[15:19:36] <symbol> Looking for a sanity check here...with proper data modeling and utilizing embedded documents, would MongoDB be a viable option for a basic e-commerce site?
[15:29:11] <jpfarias> on a python application, is it better to keep one connection open to mongodb and reuse it for all requests or is it better to open a new connection for each request?
[15:36:06] <Kobbb> Hey guys, can anyone enlight me about Mongo users ? I'm trying to create a role and to apply it to my user. Also, the 'authenticationDatabase' is 'admin'. My problem is that I don't understand how to be able to set the rights to authenticate with the 'admin' base and to apply roles on my 'real' database to perform actions
[15:36:07] <jpfarias> right now it is just one mongoclient
[15:36:29] <d-snp> symbol: imo mongo is great for storing stuff like products, I'd outsource customer/order management though
[15:36:43] <Kobbb> I'm able to set rights on 'admin' or my
[15:36:57] <Kobbb> 'real' db, but I don't understand how to do both, restricting roles
[15:37:07] <symbol> d-snp: Doesn't that complexity start to create some overhead?
[15:43:05] <symbol> I figured by outsource you meant use a relational db to handle customer/order management
[15:51:27] <d-snp> symbol: ah no more like using stripe or a service like that, I myself don't like dealing with that, it's sensitive and mistakes cost money :P
[15:52:15] <d-snp> that said, I probably would not build an e-commerce site from scratch unless my business was to offer e-commerce as a service
[17:57:11] <troypayne> What’s the simplest way to take a prod database and copy it as a dev_database… (P.S. they live on two completely different machines)
[18:47:03] <saml> i have a collection where each doc has an array field. I want to get distribution of the array length
[18:47:35] <saml> should i scan the collection myself?
[18:47:51] <saml> something like 20% of docs have the array of length 1000
[19:18:51] <symbol> Are there any up-to-date speed comparisons between psql and mongodb? I can only find http://www.enterprisedb.com/postgres-plus-edb-blog/marc-linster/postgres-outperforms-mongodb-and-ushers-new-developer-reality which is pre 3.X
[19:20:45] <StephenLynx> even by then those benchmarks were bullshit
[19:21:10] <symbol> I gathered that...it's been hard to find anything reasonable.
[19:22:13] <mprelude> There are three types of lies: lies, damned lies and benchmarks.
[19:26:47] <cheeser> start mongod when your server comes up.
[19:26:54] <cheeser> then when you app starts, it'll be ready.
[19:27:31] <BadCodSmell> You mean /etc/init.d/ź̡͎̠̥̮̞̠̖ͅa̶͎͖͔͔͈̼͖͟͢͠ĺ̴̡̬͉̣̞͖͔͔̣͖͓̀g̵̷͖̩͇̣̮̦̺̟̙͔̟̰̯̹̖͘͠o͏̢͚̠͈̪̞̥͕̜̰̀d̵͍̞̳̬̟͉̩ start?
[19:27:49] <BadCodSmell> You mean I have to do sleep 666 behind every process that depends on zalgod?
[19:28:45] <BadCodSmell> What happens on a really bad day when Zalgo takes 667 seconds to get out of bed?
[19:29:07] <cheeser> whoa. garbled text on those last messages.
[19:30:19] <BadCodSmell> I suppose I'm stuck with while command to check for port bind on 27017 usleep 50000 if time > 60 seconds die timeout waiting for mongo.
[19:31:02] <cheeser> you shouldn't have to do that, no.
[19:34:31] <preaction> daemonization is how a program detatches from its parent to ensure it doesn't die if/when its parent does (like a shell or script for example)
[19:37:41] <preaction> starting it via init.d requires daemonization, otherwise the init script (and the shell interpreting it) keeps running. yes, passing --fork and/or --background is how to daemonize the mongod
[19:38:05] <BadCodSmell> Basically the init.d script are doing it wrong?
[19:38:29] <cheeser> yes. that part i know. but he was making it sound like an extra script that just doesn't exist to my knowledge
[19:38:49] <cheeser> BadCodSmell: no, the script isn't doing it wrong (at least if you're using the official packages)
[19:48:25] <cheeser> pretty much the only way outside of a replica set.
[19:49:32] <T-Sourcemaker> BadCodSmell: can I do a mongoimport from the current database folder?
[20:02:57] <joshua> Can you reconfigure a replica set to use a new name? Do I have to do something like start each server without replset enabled and then update the database entry? I hate when search on google and I get stackoverflow discussions from 2012
[20:07:12] <cheeser> you might be able to changed the name in the rs config doc. (retrieved via 'rs.config()') and then pass that to 'rs.reconfig()' but you'd still have to restart each member with the new name.
[20:07:28] <cheeser> and i'm just guessing there so back up your data blahblahblah :)
[20:11:38] <joshua> I'll probably just test it out with a replset on my local machine first anyway, Maybe it will work but it being the _id field kinda has my wondering. heh
[20:13:18] <troypayne> I’m trying to copy a database from one server to another. I’m confused on what my host user and its roles should be, and on what my source user and its roles should be. Thanks
[20:16:08] <troypayne> i keep getting not authorized for query on system.users\", code: 13
[20:46:35] <christo_m> is there anyway to clone from local to remote directly?
[20:46:45] <christo_m> i dont want to log into the remote and copy from there and have to open ports etc to access my machine here
[20:58:41] <repxxl> Hello, guys why this mongo query works only on the 'user_id' and 'name' but the other it ignores. http://pastebin.com/Tgpx9rRx
[21:13:14] <cheeser> that includes updates and removes.
[21:13:30] <cheeser> create will *update* an index with the new document info
[21:15:41] <repxxl> cheeser i had a idea to find my db records by 'name' but in that case i need to use regex like a search bar for records on my website, but i did read regex don't use indexes which will result in slow queries later on ... what do you suggest ? do the searching on the application side in my case (PHP)
[21:20:00] <cheeser> repxxl: regexs with fixed matches on the front and can. e.g., "blah.*"
[21:52:04] <T-Sourcemaker> is WiredTiger usable for production?
[22:14:44] <Derick> mprelude: making some progress?
[22:16:00] <mprelude> Derick: Not really. I'm getting a totally different response to the one in the example, and because there's no example with intermediate values shown, I can't see *where* I'm going wrong.
[22:16:26] <Derick> what sort of intermediate values?
[22:16:42] <mprelude> Derick: Value of the variables in the generation of the client final message.
[22:16:45] <Derick> i am wondering how to provide that for you
[22:17:20] <mprelude> Derick: If you could dump each of the vars in that step (step2, I think you called it), that would be huge
[23:35:11] <thomasreggi> Hey Mongo people! I'm in need of some help here: http://stackoverflow.com/questions/32468395/minimize-long-mongo-statment
[23:39:41] <cheeser> what do you mean by "conditionally upsert?"
[23:48:22] <thomasreggi> @cheeser if you take a look at my example
[23:48:38] <thomasreggi> @cheeser I don't want to push the name if it already exists in the array
[23:59:11] <curlhelp> Hey quick question here if anyone wants some free SO rep: http://stackoverflow.com/questions/32468889/mongodb-parent-with-child-ids-or-child-with-singular-parent-id