[11:39:52] <SirHirzu> anyone here with mongodb scaladriver(Casbah) knowledge?
[11:46:00] <SirHirzu> I have a very fundamental problem, when creating the MongoClient instance ( val mongoClient = new MongoClient() ) Ii complains about parameters, what kind of parameters do I need there?
[13:50:17] <SrPx> kali: so pardon but if I get it, mongodb is more similar to mysql with queries, but couchdb is faster if you prefer using mapreduce operations? Is that it?
[13:56:05] <kali> SrPx: this is kinda right. the thing is... i think couchdb introduced a lot of confusion by calling "map/reduce" what is actually materialized views
[13:56:45] <kali> SrPx: but we can safely say that mongodb has nothing that look remotely like materialized vied
[13:57:01] <kali> SrPx: and mongodb map/reduce is batch oriented. you can not use it for real time queries
[13:57:54] <kali> SrPx: you may want to check mongodb aggregation framework, it allows to solve quite nicely some of the problems that you can address with materialized views
[13:58:54] <SrPx> kali: I see! I've read some about it - it's the part that is kinda like SQL, right? Is there any reason it's faster than mapreduce?
[13:59:10] <kali> SrPx: yes. it's native code, no js
[13:59:31] <kali> SrPx: so no interpreter, and no mutual exclusion
[14:01:22] <SrPx> kali: also, I'm just learning about the view model. It looks really interesting. Say I'm storing 1k "players". I have a page that displays the ranking of players. I've been thinking about it... even if you dont know about it... Isn't the building of that page just a mapreduce of the list of players?
[14:02:39] <SrPx> kali: that is, first you select the interesting data (the player level and name)... then you reduce it (sort and create html rows)...
[14:05:22] <kali> SrPx: it's not a problem, as far as i'm concerned, i just want to make sure we're not confusing materialized views (a db feature) with the "view" of the MVC models (a UI framework abstraction)
[14:06:15] <SrPx> kali: I probably am, I don't know anything about MVC and am just learning about materialized views, but I made the association, they seemed like the same concept pretty much
[14:07:13] <kali> SrPx: well, you can map them in some simple apps, or in simple parts of some apps
[14:07:55] <kali> SrPx: but in most circumstances, you need some logic between what your database provides and what your user will manipulates in the UI
[14:09:52] <SrPx> kali: yes and that's the controller part of the "mvc" , which would be, eh... mapreducing the data ... am I completely mistaken as I feel I am? u.u
[14:11:43] <kali> SrPx: controller receive commands from the user, interacts with the model (which itself interacts with the DB) then prepare a view to be rendered, or alter what is displayed in a view, the view present stuff to the user
[14:12:21] <kali> SrPx: that's the theory. it works well with 1980's apps, where you have keyboard and a screen :)
[14:12:23] <SrPx> kali: I get it but in pratice whats the controller? The backend program? The server?
[14:12:49] <marcules> hmm I guess I could also ask here: Is there a way to not only group by a single character but a range of characters? So for example I have a ranged group from a to d and want all my users whose Last Name starts with a, b, c, d in a group returned?
[15:44:49] <capnkooc> hi guys, can someone please point me to the right direction on how to filter an array of objectIds with the timestamp store on the id?
[15:46:26] <capnkooc> I now how to do it using the object id of the document and filter the collection or a collection or objects but I really feel a little lost trying to do the same thing but with the objectIds inside an array
[16:11:49] <failshell> hello. does anyone have a backup tool/script for sharded clusters to recommend?
[16:46:24] <fommil> in the SQL mapping chart example, http://docs.mongodb.org/manual/reference/sql-aggregation-comparison/ what would be the mongo aggregation to get all the "item" entries as rows?
[16:46:42] <fommil> i.e. flatten an array into individual documents
[18:27:50] <Rakko_> hi there.. I am taking my first steps to mongodb and I was wondering if you gurus know about sharding.. I know that sharding key cannot be changed "on the fly" but is it possible to kind of reconfigure the sharding like shard A contains all the records between a: 0-100, shard B contains a: 100-200, shard C contains a: 200-300 so that after my changes shard A contains all record where a: 0-250 and shard B contains a: 250-300
[18:27:56] <Rakko_> and all this change, on the fly
[18:28:16] <Rakko_> does it make any sense what I am trying to do, to anyone ?
[19:01:39] <cookiem0nster> Trying to update mongo PHP driver to latest version, have been googling for a while and can't figure out the problem, can anyone help me out?
[19:11:16] <diminoten> what's a good way to estimate an upper end of capacity on a single mongodb instance
[19:11:27] <diminoten> I was going to calculate an "object footprint"
[19:11:42] <diminoten> like, I know the size of a single document, and I know that document will trigger other documents to be created, so the aggregate size of the created documents as well as the base document
[19:12:01] <diminoten> would constitute one object footprint, then divide the total available ram by this footprint value
[19:12:15] <diminoten> to get a sort of ballpark, order-of-magnitude value for what amount of data the app can handle before mongo performance tanks
[19:12:37] <diminoten> well not tanks, but grows larger than available ram, and... degrades
[20:06:37] <varunv> Hey, I am trying to optimize indexes for a collection, where I mostly only access data upserted over the last hour or so. The data format is like: {_id: ObjectId( ... ), url : "something", clicks: {ref1: <count>, ref2: <count> ..., } }.
[20:08:25] <varunv> We retrieve the whole documents according to url and time. We have indexes on it, but it's too big to hold all of it in memory across all of the different datasets.
[20:08:50] <varunv> Can it be optimized so that it holds only the "recent" documents?
[20:21:27] <sinisa> in aggregation framework should one use $project{field:0, field:1} if wants only field 1 to be in stream?
[20:48:02] <ins0mnia> does $pull accept an array of values?
[20:50:46] <ins0mnia> sinisa: this is not what I'm looking for
[20:50:51] <ins0mnia> sinisa: I don't want to remove all instances
[20:53:59] <ins0mnia> sinisa: { a: "b", arr:[{a:1}, {a:2}, {a:3}] } <- trying to pull for example {a:1} and {a:2}, anyway will try to pass an array of elements to pull see if it works
[21:07:22] <therealkasey> is that a no sinisa? sure i could make a new collection, push the producers over to it, then wait until the consumers finished the old one, then move them over. but if it's possible to increase the size in place that would obviously be preferrable.
[21:09:59] <sinisa> kasey, dont know is it possible.. did you check the docs
[21:12:25] <therealkasey> the docs do not specify one way or the other. you can convert an existing collection to capped, which gave me a glimmer of hope. hoped someone in here had experience or knowledge of internals.
[21:13:55] <sinisa> im looking for answer about aggregation .. also its not clear in the docs, should I use $project:field:1 to get ONLY field 1 in the stream
[21:14:08] <therealkasey> jira answers my question: https://jira.mongodb.org/browse/SERVER-1864
[21:35:33] <motiooon> is journaling required for a replica set?
[22:01:01] <AAA_awright> Where am I supposed to go for information on the wire protocol and client development?
[22:06:50] <hjeong> hello all, first time IRC user
[22:07:54] <hjeong> not sure what the etiquette is here, but can I just start posting mongodb questions here?
[22:11:26] <strnadj2> etiquette is on the boundary healthy mind .)
[22:11:54] <nDuff> hjeong: ...trying to get people to volunteer to help before they've had a chance to hear your questions is poor form, so opening with questions first is generally much preferred. (And yes, thank you for asking).
[22:30:44] <hjeong> I have Students collection. Students has a list of Meetings (embedded), ordered by the field Meeting.time. And I want to do a query to get all students whose last meeting time is before 9pm. I expected {"meetings.-1.time"} to get the last meeting in meetings array, but it didn't seem to work. How can I query on the last element in the array?
[22:41:51] <bgummadi> guys, can I download mongodb web shell?
[22:42:06] <bgummadi> like the one hosted on try.mongodb.org
[22:48:09] <bgummadi> I found this project on github but there is no activity