[01:19:13] <C0nundrum> A power event occured and now there are dirty journal files. how do i recover my documents --repair fails
[02:38:52] <C0nundrum> can i do more than one expresion to a field ?
[08:29:06] <smokeysea> I am getting following error on start mogod after a fresh install /usr/bin/mongod: symbol lookup error: /usr/bin/mongod: undefined symbol: _ZN7pcrecpp2RE4InitERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKNS_10RE_OptionsE
[13:05:27] <watmm> Hi, i've recently upgraded 2.4 to 2.8 and i'd like to try WiredTiger before going to 3.0. Is this simply a case of enablin git in the conf and restarting? Most of the docs just talk about upgrading version numbers
[13:24:19] <watmm> Also trying to find out if i can go from 2.6 to 3.2, or just 3.0 first
[13:28:13] <cheeser> skipping versions is usually not a good idea.
[13:35:05] <wawrek> hello, I would like to ask if there are good examples showing map-reduce in use with pymongo. I want to get an overview on how to structure code that makes imports of javascript functions (i.e. map)
[13:41:17] <C0nundrum> if i have docuemtsn that have a "tags" field which [String] what the most effcient way to get a unique array of tags ?
[13:44:32] <C0nundrum> Is there a faster way than this ? http://pastebin.com/X327eKwM
[13:55:52] <C0nundrum> hm, will check that out then
[15:36:38] <deathanchor> C0nundrum: avoid distinct and that aggregation, it's just annoying, but there is no faster way other than manage a separate dataset of "tags" somewhere else.
[15:37:17] <deathanchor> something like a separate collection of tags where you $inc : 1 each time you add it, and $inc : -1 when you remove it
[17:55:33] <StephenLynx> have you ever needed support? I would assume you know more than the average support person :v
[17:55:42] <GothAlice> SLA means there's a contract with specific guarantees (i.e. uptime) and penalties for failing to meet those requirements. Included in the general data center SLA was 10gen support for our MongoDB nodes.
[17:56:03] <StephenLynx> ah, it includes physical stuff
[17:56:10] <GothAlice> StephenLynx: There are times, yes, where it would have been advantageous.
[17:56:45] <GothAlice> Alas, I'm moving into doing some work for Rather Large Corporations™, and they demand SLAs.
[18:50:00] <nikitosiusis> how can i preheat my collection in wiredtiger?
[18:50:16] <nikitosiusis> there is no touch there and count() or explain() doesn't make a fullscan
[19:56:53] <jbrhbr> hey. does mongo support somewhat arbitrary integrity constraints, such as enforcing a range on a value, for example?
[19:57:31] <jbrhbr> or making certain values illegal
[19:59:31] <jbrhbr> from googling, all i see that's similar to this are the unique indexes
[20:13:57] <cheeser> jbrhbr: still has that new car smell
[20:15:38] <m3t4lukas> hey guys. I have a question: Wouldn't it be nice to have a type just like ObjectID just with a few random bytes prepended for having an ID type with good variance for sharding?
[20:16:25] <m3t4lukas> I mean one random byte prepended would be more than sufficient
[20:17:03] <m3t4lukas> It would still be guaranteed to be unique since it kinda incorporates ObjectID
[20:20:38] <Derick> m3t4lukas: there is a hashed shard key for that
[20:21:28] <m3t4lukas> really? great :D I'll look for it and try it out
[20:23:47] <m3t4lukas> so I don't need to change my model, that's really good news
[20:24:09] <Derick> to be honest, I would shard on something more natural if you can
[20:24:20] <Derick> you must have your own values that you could shard on
[20:24:36] <Derick> depending on how you query, that could be much better than a hashed shard key
[20:25:56] <m3t4lukas> okay, but if I query mostly for ObjectID's?
[20:27:18] <m3t4lukas> and could you please consider to put this piece of information into M102 since it would fit nicely into the "how to choose the shard key" chapter
[20:42:57] <jbrhbr> cheeser: is there a way to refer to the "self" document in these validations? i essentially want `{ validator: { field_a: { $ne: $self.field_b } } }`
[21:01:35] <jbrhbr> that is the mongo port so most likely there's some sort of output misinterpretation and the driver is not trying to bind to that port at all
[21:01:49] <Derick> jbrhbr: I don't speculate on that, I would strace it.
[21:02:06] <yopp> Derick, this is rails app with mongoid. This one is randomly happening on CI
[21:02:28] <Derick> you can't reproduce it in a simple - run one command - way?
[21:49:55] <m3t4lukas> I have a bug in the newest morphia 1.0.1. Executing BasicDAO.findOne drops the found document
[21:51:57] <cheeser> i doubt that. can you post a test to a pastebin?
[21:52:13] <m3t4lukas> the code worked fine yesterday. Nothing changed except that I reloaded the gradle project.
[21:52:26] <cheeser> you're seeing documents get dropped from the database?
[21:52:40] <cheeser> so you didn't change morphia versions and suddenly things break?
[21:53:57] <m3t4lukas> cheeser: yep, they get dropped. there is no change in git for this code for like two weeks (it's in the authentication routine, so it is used every day several times), the gradle file also did not change and I fixed morphia to version 1.0.1
[21:54:37] <m3t4lukas> I will try versions 1.1.0-alpha and 1.0.0 now
[21:55:19] <m3t4lukas> if they don't work I will post a test tomorrow, It's almost 11pm here
[21:57:57] <m3t4lukas> cheeser: this code is executed when the account is dropped that authenticates: http://pastebin.com/rUWCuAkS
[22:00:48] <m3t4lukas> I will run it through profilers and debuggers tomorrow
[22:01:09] <m3t4lukas> and I will write a small test
[22:02:25] <m3t4lukas> code from commits a week ago does not work any longer, either... Thing is the setup did not change. It is as simple as a wildfly application server and a mongodb server
[22:05:50] <cheeser> i'd be really surprised if morphia was at fault.
[22:07:01] <darkPassenger> Im new to sharding, do I need to modify my code in order to shard as replica set over a network of nodes ?
[22:07:15] <darkPassenger> or is it only at mongo level that sharding occurs
[22:10:28] <cheeser> your app won't know the difference
[22:11:04] <m3t4lukas> cheeser: it is only sporadically. Approximately 1 time out of 2 times. But as I said, I will debug this stuff tomorrow. My eyes hurt.