[03:44:54] <csalvato> Oh, I forgot - I have a question. If one wanted to learn MongoDB from the ground up, what do you guys think is the #1 best way to do that? Best book/tutorial, for example?
[06:08:11] <nerd> how about getting this one http://www.amazon.com/MongoDB-Definitive-Guide-Kristina-Chodorow/dp/1449344682/ref=sr_1_1?s=books&ie=UTF8&qid=1442901733&sr=1-1&keywords=mongodb
[06:08:36] <nerd> Boomtime: i linked to the same book :)
[10:24:00] <es-kb09222015> <es-kb09222015> hi [15:43] <es-kb09222015> i am using mongodb with codeignitor and the select query is very slow [15:43] <es-kb09222015> please help
[10:25:21] <es-kb09222015> i am using mongodb with codeignitor and the select query is very slow please help
[10:27:37] <es-kb09222015> i am using mongodb with codeignitor and the select query is very slow tryed with limit and where please help
[13:11:35] <antiPoP> Hi, is this syntax correct for finding a subdoc? db.ads.find({type: {_id: '1'}}).pretty() ?
[13:39:07] <StephenLynx> I actually made that mistake in my software once.
[13:39:36] <StephenLynx> because on my older ones I would validate the authentication tokens as any other mandatory parameters
[13:40:09] <StephenLynx> but in my last one I changed how I did things and that detail slipped, which allowed users using the json api to use the first account in the database freely
[13:41:02] <cheeser> StephenLynx: interesting. i hadn't thought of that attack vector but i do very little javascript.
[13:41:08] <cheeser> a good read. thanks for sharing.
[14:04:58] <m3t4lukas> cheeser: I use gradle with 'org.mongodb:mongodb-driver:3.0.2'. com.mongodb.client.MongoCollection<TDocument> seems to not implement findOne(). Is that correct?
[14:06:10] <m3t4lukas> Derick, GothAlice, joannac: also goes to you, I just saw that cheeser wrote something, so I thought it might be a good time to poke it in there
[15:17:44] <kedare> I have a little question, when I run sh.status(), I don't get a standard JSON output but a kind of humanized json with sections and title, how can I get pure json ?
[15:17:57] <kedare> Or it's just like this when calling the command from the mongo shell ?
[16:31:14] <deathanchor> you might just have to query the config server directly
[16:31:24] <deathanchor> if you want straight up json
[16:31:38] <deathanchor> you are safe to do finds there
[19:37:46] <lindenle> HI all. I created a sharded cluster using two replica sets as the shards. Now when i try to insert into a collection that I have sharded it gives me an error about: "no progress was made executing batch write op in test_db.test_collection after 5 rounds". What did I miss?
[19:56:59] <steeze> hey all, trying to do a text search with a phrase that is being programmatically passed in. i tried building a string with the req to match mongodb's documentation but it doesnt seem to be working
[19:58:08] <steeze> here's a small snippet to show you what i tried http://pastebin.com/3BPGBEQv
[19:59:50] <StephenLynx> you are trying to return the value on an asynchronous function
[20:00:06] <StephenLynx> exports.returnSearchJson will ALWAYS return null
[20:00:50] <StephenLynx> this function will have to take its own callback as one of the parameters and execute this callback inside the toArray's callback passing the array of values.
[20:01:40] <StephenLynx> or even better, pass the callback received by it directly to toArray
[20:11:13] <steeze> i was experiencing some network issues so not sure if this went through but:
[20:11:17] <steeze> hey all, trying to do a text search with a phrase that is being programmatically passed in. i tried building a string with the req to match mongodb's documentation but it doesnt seem to be working
[20:11:23] <steeze> here's a small snippet to show you what i tried http://pastebin.com/3BPGBEQv
[20:12:05] <StephenLynx> StephenLynx> you are trying to return the value on an asynchronous function
[20:12:06] <StephenLynx> <StephenLynx> exports.returnSearchJson will ALWAYS return null
[20:12:06] <StephenLynx> <StephenLynx> this function will have to take its own callback as one of the parameters and execute this callback inside the toArray's callback passing the array of values.
[20:12:06] <StephenLynx> <StephenLynx> or even better, pass the callback received by it directly to toArray
[20:36:30] <steeze> sorry about that, they're replacing the modem at my work
[20:36:46] <steeze> so yeah it doesn't look like $text supports any kind of wildcard or anything
[20:40:04] <steeze> yup see https://jira.mongodb.org/browse/SERVER-15090
[20:50:13] <mick27> hey folks, should I specify a db for my backup user if I want it to be able to mongodump everything ?
[20:50:25] <mick27> like the admin db, or should I skip to set any db
[22:12:56] <MacWinner> is there a bug with the Perl MongoDB package? It seems to use a minimum of 100MB resident ram
[22:23:45] <pasichnyk> I currently am running a cluster of 3 replicasets across a set of servers (each running multiple mongod instances, one per replicaset). I needed to do this to logically partition things, and the sets should fit fine given the server specs. However i'm seeing the mongod processes on one of my sets getting killed of once in a while, due to OOM. This set has a lot of data, and is wiredtiger,
[22:23:46] <pasichnyk> but is basically insert only. It looks like i can tune down my cache size on this set, as i rarely query it. Is that my only option to limit memory on these instances so they don't get killed off randomly?
[22:54:12] <bigstacks_> Got a question about arrays. I have a collection that contains documents which have arrays within them. In this particular case, each document has an array of two integers representing time values. I want to sort the documents based on one of the array values, initially the first.
[22:54:28] <bigstacks_> I can't seem to use "entries[0]" as a locator. Is there a way to do this?
[22:55:02] <Boomtime> have you tried "entries.0" ?
[22:55:02] <bigstacks_> In other words, each document has a start and an end time, and I want to sort the documents by their start times.
[22:55:32] <bigstacks_> but I can't use: find().sort({entries[0]:1})
[22:56:01] <bigstacks_> Actually no - I should have. One sec.
[22:57:12] <bigstacks_> No, it says "unexpected number"