[00:02:25] <Djim> jblack i did one simple thing, i compiled my single.cpp file with -std=c++11 flag and without it. Without that flag it compiles ok
[00:03:22] <Djim> i think that my workaround will be compiling that single.cpp without c++ 11 support while whole the rest of code will be C++ 11 enabled
[00:46:57] <jblack> I was actually playing with the idea of suggesting you just use the c library, but that seemed... evil.
[01:04:39] <_Heisenberg_> Hello guys. I'm not familar to JIRA so can someone acknowledge that there is no release of mongodb now, which fixes this bug: https://jira.mongodb.org/browse/SERVER-7246
[02:15:37] <george2> I'm using a mongo database to store documents containing a userID, along with some other information, and I need to find the top N userIDs. Is there an easy way to do this?
[02:17:15] <george2> Or even better, the top N% of userIDs by occurance.
[02:24:42] <joannac> aggregation framework for the first.
[02:25:09] <joannac> For the second, you would probably need to post-process
[02:25:25] <joannac> Aggregation framework to count, then peel off the top N%
[02:28:37] <george2> ok, I'm reading the aggregation framework docs now
[02:49:00] <Goopyo> joannac: who maintains the pymongo client? want their thoughts on this: https://github.com/pnegahdar/MongoRedis
[03:21:44] <Steve009> do all dates in Mongo get automatically get converted to uTC?
[03:24:45] <cheeser> dates are stored internally in UTC, yes.
[03:25:01] <cheeser> i don't know that there's a way to coerce it.
[03:26:21] <Steve009> so when you bring back date times is there timezone support?
[03:26:26] <Steve009> been looking but docs are unclear
[03:30:38] <Steve009> I am using the Agg framework
[03:30:57] <Steve009> and when running a query i would want dates to come back in the correct timezone
[03:39:38] <Steve009> Timezone support seems to be a ongoing problem.....https://jira.mongodb.org/browse/SERVER-6310
[04:02:30] <joannac> Steve009: That ticket goes through some possible workarounds -- are any of them suitable for you?
[04:03:01] <Steve009> They are okay. But most are a big annoyance
[04:03:21] <Steve009> I am looking at this at the moment: http://stackoverflow.com/a/18854229/2801327
[04:03:27] <Steve009> but i have concerns about performance
[04:05:10] <Steve009> It means that the pipeline would be modifying a lot of dates
[04:12:40] <Steve009> Anyone know if 2.6 is on schedule for end of year release?
[04:19:20] <fg3> is there a way to display docs with the properties sorted?
[04:22:52] <joannac> Okay, let me step back. If you have a document like {"a": 1, "c":3, "b":5} -- you want output like {"a":1, "b":5, "c":3} -- is that correct?
[04:23:08] <fg3> Steve009: my use case is that I'm in a terminal comparing records and it's difficult if they are in random order
[04:31:40] <fg3> I guess I'll have to hunt around for the right tool
[04:31:43] <jblack> irb is the interactive ruby debugger. It allows you to run ruby commands by hand. In the same way that everything was a basic command.
[04:31:45] <Steve009> here is some code you could use
[04:34:28] <Steve009> So all you need to do is convert your json to a hash and run the method
[12:27:11] <st0ne2thedge> Say guys, I noticed how our mongodb is located on a fairly small partition, it still has about 40% space left though, but is there any way to estimate when it will allocated the next datafile (2G)?
[12:48:03] <st0ne2thedge> really new to mongodb btw
[12:49:19] <Goopyo> st0ne2thedge: I'm not sure you can do that, but if its a concern you can run it in --compact mode so the allocated space isnt that big
[12:51:39] <st0ne2thedge> Goopyo: thank you, Is there a way to see how full the allocated datafile is then? that would be awesome
[12:53:13] <Goopyo> st0ne2thedge: its part of collection stats
[14:06:25] <st0ne2thedge> Derick: but it seems I can only get the 'size' and 'storageSize' variables on collections though?
[14:30:41] <franck34> hi all, can i use a field named "type" in a collections ?
[14:56:43] <IrishGringo> can someone look at this... give me a hint please... http://stackoverflow.com/questions/19770389/how-to-set-a-mongodb-cursor-in-node-js
[14:57:08] <IrishGringo> can someone look at this... give me a hint please... http://stackoverflow.com/questions/19770389/how-to-set-a-mongodb-cursor-in-node-js
[15:51:28] <dillon_> hi all, I'm new to mongo and have a quick question. I have some document objects with attributes like { startX: 5, width: 10 }, but I'd like to change that to { x1: 5, x2: 15 }, where x2 is startX + width. I feel like I'm missing something very obvious here. -_- How would I do this? o__O
[15:53:28] <dillon_> I know I'll have to iterate over the cursor containing all the documents requiring updating, but I'm not sure if there's a best-practice to use
[15:53:44] <dillon_> ^ "iterate" might be the wrong word :)
[18:44:23] <jkitchen> I have a question about mongodb's delayed replica set member functionality.
[18:45:17] <jkitchen> I am using a nagios check to check the replication delays, and this check is smart about intentionally delayed replication, yet it's still complaining a lot, it seems that the delayed replication fluctuates a bit in how far behind it is sometimes?
[18:46:11] <jkitchen> is it just doing lazy updating sort of thing or is a lack of write activity on the cluster potentially causing the delay to seem to fluctuate a bit?
[19:24:26] <cirwin> Hey guys, I'm trying to work out the datasize of my chunks. I've found the datasize command, but I don't know how to use it with a hashed shard key
[19:29:13] <andrew91_> i'm trying to use mongodb in an ecosystem of .NET developers and they all hate it. mainly because of this reddit post: http://www.reddit.com/r/programming/comments/1ouiml/the_genius_and_folly_of_mongodb/
[19:29:18] <andrew91_> how can i convince them otherwise? :D
[19:41:15] <jblack> I think the underlying concern for newer people is that it's awfully high risk for a default setting for a data storage tool. sure, it's easily reconfigured. It's definitely out there as a gotcha, and I think it leaves people with a taste of "what other dangerous corners did they cut off?"
[19:42:18] <andrew91_> one of the major concerns is data loss, but i think with the new release of mongo, it should be fixed...
[19:42:25] <jblack> Sure, should people rely on tools they don't understand very well in production? Probably not. Many do, though, and when they get bit due to their inexperience, they can get vocal about it.
[19:45:24] <jblack> Oh wait, safe writes is the default these days?
[22:23:28] <angasulino_> say I have a date stored as a string in format yyyy-mm-dd and I want to set yyyy to be current_year + 1 on every document for which yyyy-mm-dd is less than the current date, can I do this in the server? maybe with a stored js function?
[22:23:49] <Derick> you need to iterate over all the documents in your client
[22:28:11] <angasulino_> hmm, at least one SO post says it's a really bad idea to use stored js anyway
[22:32:48] <tripflex> so I have a group of objects in collection for promo codes, what would be the best way to go through all the objects and set the oldest promo code to expired? Each object for promo code has a "DateCreated: EPOCHTIME" field, i can get the oldest one through find no problem, but want to set the oldest one "Expired: true"
[22:33:42] <tripflex> so as example, { "Package": "Package1", "DateCreated": "1383604334", "Expired": false }
[23:05:33] <pasky> Hi! Is there a way to match documents that contain a null item in a certain array attribute? (Actually, all items in the array are null and the other documents contain no null elements in their array.)
[23:13:52] <eyda|mon> What's the standard way of doing backups for mongodb data? Is it done at all? IOW do extra shards make it redundant?
[23:23:47] <bjori> well.. depending what you mean with "basic mongo files"...
[23:23:54] <bjori> but the most likely answer will be yes :)
[23:24:37] <eyda|mon> bjori: what do you mean to be careful with mongodump with shards? The book says to choose a secondary one, to lock it, then do the dump. Do I need to do anything else?
[23:25:14] <bjori> eyda|mon: your application may be insertin lots of data, which hits different shards
[23:25:32] <bjori> edouardb: so when you take backup of shard#1, and then shard#2 they could have "half the writes"
[23:25:57] <eyda|mon> bjori: how can I mitigate that issue then?
[23:26:01] <bjori> and if the balancer is running you could get into loads of problems