[07:40:39] <Logicgate> I need help with aggregation
[07:42:05] <Logicgate> I have a collection with objects looking like this {date: ISODate Object, type: 'type1'}, {date: ISODate Object, type: 'type2'},
[07:42:22] <Logicgate> I want to aggregate by date how many of each types there is
[07:44:36] <Logicgate> so the results get returned like so
[07:54:02] <Logicgate> as I'm trying to get the count for 2 values in one object
[07:57:04] <Logicgate> i'm trying to aggregate two different types of data in this case.
[07:57:46] <IAD> Logicgate: looks like you need to $group the result http://docs.mongodb.org/manual/reference/operator/aggregation/addToSet/#grp._S_addToSet
[07:58:39] <Logicgate> i could also add a count field to my data of 1
[09:30:57] <idank> I have a two member replica set + arbiter, and the secondary with priority 0 set. When I take down the primary, reads don't work, why is that? I thought only writes would be disabled because the master is offline
[09:34:58] <samurai2> idank : because by default secondary node not slave ok (mean it can't read from slave)
[13:23:27] <harshada_> how to perform db.stores.distinct("merchant",{merchant:/adi/ig}) in pymongo? Any Idea?
[14:25:57] <locojay> hi can i use route53 as a private dns for name lookup for instance in a private vpc (dabase, ....)
[14:41:10] <jiltr> Hello Im developing a c# application using mongodb. I've a table which will contain some products and the price and the prices are updated every 30 minutes. How can I ensure that the table is always up2date and how can I avoid it to sync the whole table even if the table is unchanged?
[15:05:21] <jiltr> Would I have a loop where it always would update the database so It would try to update the whole db every 500ms
[15:05:53] <Nodex> why 500ms ? you said every 30 mins
[15:07:26] <jiltr> The prices itself updates every 30 minutes
[15:07:38] <jiltr> But I have to work with the prices in the application
[15:07:53] <Nodex> I don't see the problem you're having
[15:09:27] <jiltr> Well let me explain. Im developing a price engine which checks prices in online stores every 30 minutes it updates the prices in the database. I have some other threads which constantly check the db for the prices and if a price reached a specific level it will do a specific action.
[15:29:36] <trakowski77> Hi, I'm trying to resolve the following error on 60M inserts
[15:29:49] <trakowski77> Fatal error in CALL_AND_RETRY_2
[15:29:56] <trakowski77> Allocation failed - process out of memory
[15:30:26] <trakowski77> I've looked it up on google, and it is mostly referred to in context of aggregation
[15:30:34] <Derick> trakowski77: are you running a 32bit mongod?
[16:03:18] <_aeris_> i'm currently looking for a nosql backend to store some tests results to generate reports afterwards
[16:04:21] <_aeris_> mongodb seems great, but I don't succeed to retrieve my data as I want
[16:04:45] <_aeris_> here is some example document i want to store : http://paste.imirhil.fr/?b0d46513dd019a7f#fAuxOQkgaxudGrLH7MsPdx26Ivm3Vu1epx2SZyXVWVs=
[16:05:32] <_aeris_> user can input any filter on the 'config' fields, and i have to aggregate the corresponding 'results' in a report
[16:06:21] <_aeris_> but i don't find a way to retrieve only the files matching a criteria, mongodb seems only able to find the full document :(
[16:27:58] <Derick> please do report it when it happens again
[16:42:01] <Nodex> amazing how much work gets done when HN is down LOL
[17:00:11] <rafaelhbarros> Good morning, new project will be coming up this february, and I need a few use cases that used mongo and scaled well, or some videos / literature. Any guidance is appreciated.
[17:00:21] <rafaelhbarros> Good afternoon / depending on timezone.
[17:01:01] <Nodex> probably better to give people an idea of your project and they advise you
[17:02:27] <rafaelhbarros> user generated content, it's a side project of a currently successful "social-network" with a specific area
[17:05:27] <rafaelhbarros> now about this: http://nosql.mypopescu.com/post/12466059249/anonymous-post-dont-use-mongodb, are some of these issues fixed?
[17:08:54] <cheeser> i would probably not put any stock on anonymous, self-described rants like that, personally.
[17:10:39] <Nodex> certainly the global lock doens't exist anymore
[17:11:08] <rafaelhbarros> cheeser: Yeah, I know about the locks
[17:11:18] <rafaelhbarros> cheeser: but I'm looking at random bad stuff to write them down later.
[17:11:30] <rafaelhbarros> cheeser: I'm going to advocate in favor of mongodb, btw
[17:11:35] <Nodex> and that user seems to have a problem with his own arcitecture. He assumed that MongoDB did things that it never really claimed
[17:11:46] <Nodex> which is what most people who moan about it do
[17:12:26] <WhereIsMySpoon> Yo, if I have an object with a list of strings in mongo, how do I remove a string from that list/add a string to that list?
[18:09:15] <anykey> there's absolutely nothing going on with the db
[18:10:37] <anykey> another thing: I want to completely migrate to SSDs in the near future for battery power savings and performance reasons. Now I read on the SSD page that write endurange is a concern and got afraid of that. I'm just using mongo for development...