[01:12:05] <nelas> @Boomtime I removed few days ago one replica set, with the instructions ..shutdown the instance and rs.remove(node)
[01:12:42] <nelas> @Boomtime but i can see in the repl log an funny error, saying that replset cant find slave with Id X
[01:13:17] <nelas> @boomtime there is a jira ticket saying somethign about 2.6.0 bug
[01:13:34] <Boomtime> you are now describing a completely different problem.. "he thing is that now and then one mongod instance dies" <- what happened to this statement?
[01:14:24] <nelas> @boomtime im checkin the option if the error on repl is corelated with the crash
[01:14:38] <Boomtime> "there is a jira ticket saying somethign about 2.6.0 bug" <- if there weren't there would be no need for 2.6.1, or 2.6.2. or 2.6.3, or 2.6.4, right?
[01:14:57] <Boomtime> ok, that is a good way forward
[01:16:14] <Boomtime> compatibility between revisions is usually very good
[01:18:42] <nelas> @boomtime obviously the mongod.log wont log any memory pressure info?
[01:20:15] <Boomtime> you would need active monitoring to capture that info - mongodb can supply it, for example, to mms.mongodb.com or any other service that wants it
[01:20:36] <Boomtime> though there are other system monitoring systems which would capture such too
[05:46:48] <diegoaguilar> Hello, what's the best data type or stragety to save some users birthday info?
[05:47:02] <diegoaguilar> I guess Date is definitely a waste of bytes ...
[05:47:24] <diegoaguilar> wonder whether String with MMDDYY would make it
[05:59:37] <Boomtime> @diegoaguilar: you think that Date is a waste of bytes.. why?
[06:00:50] <Boomtime> your suggested alternative would save 1 byte per document.. at the expense of having something that is harder to handle/manipulate
[07:02:21] <ut2k3> Hi guys I have a problem with replication. I cannot get my slave sync ... We have a huge database (about 2,5TB) that cannot be offline for about 10hours which needs a secondary. But after the "initial sync cloning db:...." Its always too stale .... I already setup an oplog about 350GB on the secondary. Do you know how to solve this problem to get replication on a huge database working?
[07:08:54] <joannac> ut2k3: mongo shell to primary, db.printReplicationInfo()
[07:36:37] <diegoaguilar> Hello I wonder why I cant set up my modles properly
[07:36:37] <diegoaguilar> I get the ObjectID not defined error log
[07:36:37] <diegoaguilar> here is my code http://www.hastebin.com/zesiwuvude.pas
[07:39:18] <Climax777> Hello all. I have data containing the total data usage measured per sample time. Is there a quick and dirty way to aggregate/map reduce this into deltas per sample time
[07:52:02] <joannac> Climax777: I would process it client-side
[07:52:44] <Climax777> so send n+1 data points for the time range query and then to a quick delta calculation client side?
[07:53:51] <Climax777> That is a great suggestion, thanks. However I may need to generate alerts depending on the delta value server side
[07:54:50] <Climax777> The only solution I have come up with so far is using the last sample total value and subtract it from each new sample and then increment a document for that minute
[08:41:31] <diegoaguilar> I even have the shell previous log
[08:41:36] <diegoaguilar> I can see im trying my pass
[08:49:24] <Const> Hello, I have this kind of data: http://pastie.org/9609635 It's a history of type of page viewed by one user. I need to keep the track of view by weeks, months... (I'm not stick to this structure if you know a better one). My question is how would you inscrease the 'score' for week 40 of year 2014?
[08:51:49] <Const> Maybe my structure is not adapted
[09:10:15] <stava> Say I have a collection with a nested structure like { foo: { bar: 'baz' } }, how do I use find() to fetch documents where foo.bar is a certain value?
[10:32:39] <braz> Naeblis, you could check the Mongoose Connection object using the collectionNames function to see what collections exist for the specific namespace - http://mongodb.github.io/node-mongodb-native/api-generated/db.html#collectionnames
[10:35:12] <Naeblis> braz: ok I'll try that. Thanks.
[13:33:57] <latinojoel> but that's why exist replicas
[13:34:21] <aliasc> im building an application for windows with node.js and mongodb. everything works fine. just if power goes off mngodb creates lock file
[13:34:22] <latinojoel> you can have it in diff locations...
[13:34:47] <aliasc> and when the application will try to start again mongodb will not
[13:36:30] <aliasc> what if i just remove the lock file ?
[13:37:14] <aliasc> the mongodb documentation says if you remove the lock file data may get corrupted
[13:37:56] <latinojoel> sometimes no. but you can think is corruped any way.
[13:38:04] <latinojoel> pack everything in docker... ;)
[13:38:15] <aliasc> its just my noob client doesnt want data to be on the server
[13:39:38] <aliasc> you mean to backup things everytime say in a minute /
[14:50:27] <ginhi_000> I have a weird error on my home network I can connect to mymongodb with the javadriver aslong as I have a static ip(even tho I use localhost), at work I dont have a static Ip why wont the localhost connection work?
[15:48:38] <devn1nja> i'm new mongodb's user and i can't understand one simple thing. i have one collection with "news" documents. each document in this collection have "metrics" fields (shares etc.).
[15:49:53] <devn1nja> how can i a) sort by some function applied to this metrics, b) how can i get in one query a sorted and limited list of documents plus exactly [_id1, _id2, etc.]
[15:50:18] <devn1nja> does $in what i need in the b-case ?
[16:06:46] <James1x0> Anyone know of a good way to test an async .post(‘save’ hook in mongoose? Should I just use a timeout and create an unsightly race condition? :(
[17:50:51] <znn> how do you create a subcollection?
[17:58:25] <skot> there is no such thing as a subcollection... what do you think it means?
[17:58:59] <skot> how would you use a "subcollection" differently than a collection?
[18:18:00] <znn> skot: a sbucollection has an extra property associating it with another resource
[18:18:16] <znn> that's what i think is the difference from a typical collection
[18:19:18] <znn> it's a subset of a larger set but it is associated with another object
[18:40:46] <skot> znn, there is no such thing on the server. Is this some client idea somewhere? Are you talking about a DBRef? Maybe you are thinking about arrays in documents? Do you have an example of how you want it to work?
[21:56:32] <kexmex> seems like fsyncLock() shouldn't be used, EVER :)
[21:57:15] <joannac> the recommendation I always give is if you do fsyncLock, don't close your connection and make sure you can fsyncUnlock on the same connection
[22:52:00] <freeone3000> Say I have a query, and I'm aggregating a set of records by (domain, subdomain). https://gist.github.com/freeone3000/144197303e1e2c7223f0 I'd like to get a count of unique "requestInfo.userId"s for each _id in the result. How would I specify this?
[23:02:20] <joannac> freeone3000: group on domain, subdomain, userid, then group again on just domain, subdomain, and $sum: 1
[23:28:35] <freeone3000> joannac: Separate group steps?
[23:32:50] <freeone3000> joannac: https://gist.github.com/freeone3000/5a8408f57304c1823ef3 gives me {"count": 113}.