[00:12:04] <oxabhishek> Nov 11 05:32:26 0xportable mongod[5954]: Starting mongod: forked process: 5964 Nov 11 05:32:26 0xportable mongod[5954]: all output going to: /var/log/mongo/mongod.log Nov 11 05:32:26 0xportable mongod[5954]: [FAILED] Nov 11 05:32:26 0xportable systemd[1]: mongod.service: control process exited, code=exited status=1 Nov 11 05:32:26 0xportable systemd[1]: Unit mongod.service entered failed state.
[00:12:24] <oxabhishek> this is the msg i found for mongod
[00:12:34] <ckd> always paste logs and such to pastie.org
[00:44:56] <mattbillenstein> joe_p: thanks for that - figured that might be the issue, but I don't see a way to pass slaveOk to copyDatabase either
[00:50:56] <joe_p> mattbillenstein: last time I tired I had to do the clone/copy from the master and had found that note. maybe someone has a way but not one that I had found
[00:55:04] <mattbillenstein> ahha, this seems ot be doing something: > db._adminCommand({copydb:1, fromdb:'ciddb', todb:'ciddb', fromhost:'173.247.206.179:27017', slaveOk:1})
[02:14:40] <ciupicri> when I run something like col.insert(json.loads(data)) that data is available immediately to other mongodb clients?
[06:08:09] <LouisT> Hi, for some reason i'm having an issue deleting a database and user completely... i'm use "db.dropDatabase()" in test, but the user i created (test) can recreate the database.. i thought the user should be deleted with the database, what am i doing wrong?
[07:05:09] <shesek> Hey all. I have an "places" collection, and "events" collection with a reference to place's _ids and a timestamp. I need to fetch a list of places that has an event that matches some criteria. How should I go about doing something like that?
[07:05:31] <shesek> (that criteria is an event that's upcoming in the next few days, but that's not very relevant)
[07:07:20] <shesek> I see two ways to do that - a. save that data directly on the places collection as I save new events, which I'd prefer to avoid. b. get a list of all places, than filter them with separate queries, which I'd also prefer to avoid
[07:07:29] <shesek> is there any third way using some Mongo magic that I don't know?
[10:35:59] <jammanbo> Can map reduce be used to group documents by some attribute say `type`, so that the output is just { 'type1': [ array of docs of type 1 ], 'type2': [ array of docs of type 2 ], … }?
[10:40:37] <kali> jammanbo: it can, but you can also do that with the aggregation framework, and it is much more efficient
[10:41:17] <jammanbo> kali: Aggregation framework means `group`?
[10:41:53] <kali> nope. it means aggregation framework :)
[10:44:24] <jammanbo> I'm coming at Mongo through the Mongoid adapter … I seem to have missed this in the process!
[12:58:54] <jammanbo> So in the aggregation framework, is it impossible to $addToSet the entire document? It seems like I need to reference all the fields explicitly? $addToSet: { someField: $someField, someOtherField: $someOtherField } …
[17:40:41] <sent_hil> My linode server crashed and when it restarted, I tried running "mongo" and I get this: "exception in initAndListen: 10296 dbpath (/data/db/) does not exist, terminating".
[17:41:01] <sent_hil> I did have mongo up and running before, so I guess it was using a diff. dir
[17:54:29] <sent_hil> I'm getting "couldn't open /var/lib/mongodb/db_dev.ns errno:13 Permission denied" when using "sudo service mongodb start", but no errors when starting it manually with "mongodb --dbpath ..."
[19:57:49] <mrpro> when are collection locks coming?
[20:13:09] <coopsh> is there a way to query the state of a replica set member? I'm especially interested if a member is in state "RECOVERING". The server status doesn't contain that information as far as I can see.
[21:46:46] <teotwaki> Hi, I do realise that I did ask the same question yesterday, but I didn't get a definitive answer. The C++ client is supposed to be licensed under the Apache License, however it appears to be using files from the core MongoDB project, which is AGPL; wouldn't that make the C++ driver (and any code that includes/uses it) AGPL also?
[21:47:51] <Derick> teotwaki: I'm not comfortable answering that question, but let me see what I can find out.
[22:11:26] <teotwaki> ckd: got it, dbclient.cpp, dbclientcursor.h, dbclient_rs.cpp, mongo_client_lib.cpp and even examples/mongoperf.cpp use the db/json.h file, which is AGPL licensed.
[22:12:15] <Derick> teotwaki: it's unlikely that we'll cause you troubles for it though
[22:12:40] <teotwaki> Derick: I know, I doubt it could ever even become an issue
[22:13:15] <teotwaki> Derick: considering that what I'm planning is to use the C++ client in an application that never faces the outside world
[22:14:51] <ckd> teotwaki: hah! I was looking at the C driver, didn't realize the C++ driver was part of the server source, so of course you knew about the client dir :D
[22:15:54] <teotwaki> basically, I'm a software architect/lead dev for a voip company, and I'm currently working on a complete overhaul of our mediation part. We've always used MySQL, historically speaking, and reached limits very quickly (usually after a couple of months). Basically, I'm writing a few documents that present MongoDB, mainly due to the replication features, which fit our usage perfectly. I want to cover all bases (technological/leg
[22:15:54] <teotwaki> al) during the presentation.
[22:16:29] <Derick> yeah, sounds like a clever thing to do!
[22:18:31] <teotwaki> I'll keep an eye on future developments and mongodb-dev for the licensing discussions.
[22:49:49] <therealkoopa> Is it possible to run a query that filters on a boolean within a subdocument? There's an array in the document: people: [{name: 'Jim', active: true},...]. And you want to filter the active people
[23:13:37] <crudson> just ensure you have the right indexes and your query is as specific as it can be. If you have to do some fiddling in code on the results, just ensure you've done the first bit, and then see what the performance is. Do you have an application that returns a million documents in a single query?
[23:14:13] <therealkoopa> Ok, I'll play it. No it's not a million :)
[23:14:44] <ckd> yeah, if you anticipate more inactive than active users, at that scale, you're moving much more data across the wire than you need and then have to process it…. if you're anticipating only a small percentage of of inactive users, then do it in code
[23:25:42] <therealkoopa> Why does the unwind turn people into an object? I'd like to return the document as is, but with just filtered out inactive people.
[23:31:55] <therealkoopa> Oh, you need to group it. COol, thanks!