[00:54:57] <sabrehagen1> morenoh150: not quite, think of this structure: { channel: 'MTV', subscribers: [ObjectID1, ObjectID2, ObjectID3, etc] }. There are many of these. I want to return all of the channels, ordered by the number of subscribers. can this be done without the aggregation pipeline?
[00:59:31] <joannac> sabrehagen1: no, unless there's a field with the length of the subscribers array
[04:31:37] <tim_t> Hi. Using Morphia with Java. How can I update an embedded HashMap<String, Object> entry in place? The only way I can do this right now is put the entire hashmap into memory, change values and then save the new state of the hashmap, which if it is large is quite a wasteful operation.
[04:32:34] <tim_t> I guess another way of asking is how to I target a deeply embedded object for an update?
[05:49:56] <lyscer> Hello all, I am looking at trying out mongodb for the first time for a project that I am working on that will have many rows and was hoping that you could tell me if my data structure will potentially hose me in the future. I am going to be searching only on the "number" document; http://pastebin.com/z2UUgP2U
[06:18:32] <morenoh149> lyscer: use .pretty() to make it readable
[06:24:41] <lyscer> wasn't sure if I was structuring the key/values correctly
[06:25:23] <lyscer> it seems like as long as the program that will be reading the values can easily pull and parse I should be fine - which I know the key I will be using 100% of the time so I think it should be fine
[09:35:18] <robopuff> Hi guys, can you help me with rewriting this $where into basic statements? https://gist.github.com/robopuff/c851959a59706ed67ff4
[10:38:24] <morenoh150> robopuff: db.calendar.find({ date : { $gte: start, $lt: end }})
[10:38:55] <davidcsi> Hello guys, I posted an issue i'm having with mongodb, can you please help me out? it seems to me either there's a bug or a lock issue or (of course) I have an indexing problem. http://stackoverflow.com/questions/28253720/mongodb-upsert-doesnt-update-if-locked
[10:48:11] <morenoh150> davidcsi: concurrent updates should be queued http://stackoverflow.com/questions/6997835/how-does-mongodb-deal-with-concurent-updates
[10:48:31] <morenoh150> unless there's a limited size to the queue I'm not aware of. All updates should eventually happen.
[10:51:01] <morenoh150> davidcsi: 'packet' doesn't look like an array in the example
[10:51:14] <morenoh150> do you mean nested document?
[10:52:51] <robopuff> @morenoh150 not really - calendar is an array from bigger document, and I need to check if calendar entry exist (between start & end) and if status: flase occurs, hide it, or if dates do not exist return alwaysAvailable state. When writing this I've found solution for that calendar: { $not: { $elemMatch: { date: {$gte: 'start', $lt: 'end'}, status: false} } }
[10:58:26] <morenoh150> davidcsi: I'm not sure mongodb was intended to store network traffic. It may not be fast enough for that
[11:00:47] <joannac> davidcsi: what's the full logline for "can't unlock b/c of recursive lock"?
[11:01:47] <Climax777> Why would capped collections deliver the same performance as standard collections? using rc7 with wired tiger
[11:05:19] <davidcsi> @morenoh150 in which example? you mean the documents pasted? yes, those aren't arrays, i had to change upserts to inserts, but you know what i mean. If you need it i can paste a real array. The point of pasting those two was to show how they'd look individually.
[11:07:05] <morenoh150> davidcsi: no in the description you explicitly state `these are arrays and you'll see why` then I saw documents
[11:09:12] <davidcsi> monrenoh150, "you'll see why" I meant that because all packets belong to the same transaction, they would end up as an array, the field "packet" is an array where new packets are push'd into
[15:00:20] <bybb> Derick: well the server is pretty reliable until now. It's my first project with mongodb, do I still need a replica set on a single server?
[15:00:28] <cheeser> basically. hell, i use mongodump for nightly backups. real top shelf stuff. :)
[15:00:46] <Derick> bybb: any important production environment should use a replicaset
[15:01:05] <cheeser> running a single node of mongodb is no more dangerous (or reliable) than a single pgsql server.
[15:01:29] <cheeser> it's a SPOF either way. mongodb makes it easier to remove that than others, though.
[15:03:41] <Derick> that wasn't the case with 1.4 though :)
[15:03:48] <bybb> Well I'll use the strategy I use for the services, multiple services for a single server. It'll buy me some time to restart it, if it's down
[15:24:47] <bybb> I'm just a developer doing everything
[17:31:15] <panshulG> Hello.. I am using Spring-data-mongodb -> how can I restrict the length of a text field in my domain for mongodb?
[17:31:53] <panshulG> or should I be asking this question somewhere else... if so please point me to that IRC channel
[17:40:35] <StephenLynx> not that you should ask that somewhere else, is that you have an issue with some unusual 3rd party software, so you may not find many people here.
[17:47:45] <panshulG> Its more about making ur life easier in complex scenarios... like using an ORM framework is better than using old JDBC
[17:49:36] <StephenLynx> you still have to define your rules for data. but without a framework you have less bloat and you are able to find issues more easily because you took a layer of generic software.
[17:50:44] <Derick> StephenLynx: or you have to fight the layer...
[17:51:15] <StephenLynx> not to mention when the frameworks put constraints on you.
[17:51:57] <Sticky__> there are positives and negatives to ORM, if performance is not a huge issue that you are willing to sacrifice some for simpler code...fair enough
[17:52:51] <StephenLynx> the problem with the "simplicity" these frameworks provide is that is not real simplicity. on the contrary, the code is even more complex, it is just hidden.
[17:53:16] <Sticky__> yeah, I agree when things go wrong they are a nightmare to debug
[17:53:25] <ldiamond> What do you guys use for admin client on mongo?
[17:58:10] <panshulG> for everything else i use shell or for GUI Robomongo
[19:00:03] <twinings> does the new security.authorization config value replace the old --auth config parameter? and without it, in both cases, you don't need to log in?
[19:48:53] <morenoh150> Mmike: mongohub is the best on osx
[20:11:40] <lilgiant> hello, short question: is the _id field indexed by default or should i include an index on this field explicit in the schema definition?
[21:05:54] <rodd> Hi, I'm having some issues setting up an admin user on 2.4, I added a user through db.addUser with the following role: userAdminAnyDatabase. I can connect with its credentials (mongo -u...) but whenever I try to query I get unauthorized, what am I missing?
[21:16:33] <Torkable> mongoose is shit and I hate it
[23:28:17] <gozu> anyone willing to take a small fix for an extremly nubtasmic bug in the mongodb perl module without me jumping through various "sign up for random websites on the internet" hoops?
[23:28:59] <gozu> (the summary is ... in C, there _is_ a difference between "checking the boolean value of a pointer" and "checking the boolean value of the thing pointered to" ...)
[23:45:11] <hahuang61> any way to get mongorestore to upsert instead of straight insert?
[23:45:38] <hahuang61> I've been restoring mongodumps and hadn't noticed that it just drops the restore if that _id already exists, whereas I want it to update.
[23:57:03] <joannac> hahuang61: requested but not yet implemented