[00:14:45] <zejackal> is it possible to create a user that can create/delete databases, except for a specific one?
[00:15:05] <zejackal> and that specific one, the user can only readWrite
[00:16:42] <StephenLynx> I think so, I think you mostly set permissions per database.
[00:17:56] <MacWinne_> what's the simplest way doing a snapshot of a specific database and all it's collections? I want to run a script every 5 minutes to do this.. but I don't want to actually save a snapshot if nothing has changed
[00:18:09] <zejackal> i guess the trick is that the user should have the ability to create/drop databases on the cluster, so the names aren't known at user creation time
[00:18:14] <MacWinne_> it's basically a very infrequently updated configuration database
[00:18:32] <MacWinne_> is there some sort of internal counter on the database that indicates the last timestamp it was updated?
[00:23:16] <diegoaguilar> MacWinne_, I'm not sure of that
[00:23:31] <diegoaguilar> but there's a variable u can use to append date to a doc
[00:23:40] <diegoaguilar> Also, u mean per database or per collection?
[06:37:48] <Painter> Hello, i have a problem with mongodb database after HDD problems - http://pastebin.com/kMPbv8BK . I think that the recovery has not happened. How can I remove the assertions like "Assertion: 10334:BSONObj size: -286331154 (0xEEEEEEEE) is invalid. Size must be between 0 and 16793600(16MB) First element: _id: ObjectId('55e7a0a0350f020879f94bc1')" ?
[06:54:33] <Painter> "Assertion: 10334:BSONObj size: -286331154 (0xEEEEEEEE) is invalid. Size must be between 0 and 16793600(16MB) First element: _id: ObjectId('55e7a0a0350f020879f94bc1')"
[06:56:20] <joannac> Does that make the mongod crash? or do you get the exception but the server stays up?
[07:35:56] <Painter> joannac: i repair my database by deleting some collections and then do --repair... Very fortunate that these tables hold not critical data like logs and stats.
[09:05:38] <jesusprubio> hey, could it have sense that a find query (with ".toArray()") returns 3 documents (ie) but the exlanation of this query says that nReturned is 1 ?
[09:53:03] <mbuf> I have a datadog user created for the admin database that has "roles" : [ { "role" : "read", "db" : "admin" }, { "role" : "clusterMonitor", "db" : "admin" } ] }. How can I update the same for the same role for a different database?
[09:59:04] <xorol> hi guys.. i got a mongodb around 40Gb it takes AGES to make a backup for this (around 2 days) using mongodbdump ;is there any alternative to get a fast way to backup this data?
[10:24:04] <xorol> cheeser, more looking into a DIY solution
[10:24:23] <xorol> it is for backuping (in case of restore needs), and for refreshing test environments
[10:26:27] <xorol> but I do understand that mongodbdump is not the way to go in these cases I assume ..
[10:40:23] <m4k> Hello all getting Client Error: bad object in message: invalid bson type in object with _id: while restoring mongodump, what could be the issue?
[11:42:11] <revoohc> How do I force a full table scan on an indexed column? Backstory, we’ve upgraded from 2.2->2.6 recently and have data in an indexed column that can’t be indexed due to violating the length constraints. I’m trying to find and delete that data.
[11:56:40] <BadCodSmell> When using mongodump and mongorestore I get error: E11000 duplicate key error index
[12:26:46] <m4k> getting Client Error: bad object in message: invalid bson type in object with _id: while restoring mongodump, what could be the issue?
[12:35:51] <sachinaddy> Hi. Could you please tell me how to do data partition in mongodb?
[12:37:43] <sachinaddy> StephenLynx: I'd like to keep data in a single server. I checked, is Sharding used for distribute data on different servers? Can we keep partitioned data in the same server?
[13:08:54] <saml_> on any changes to mongodb, need to sync the change to elasticsearch. looking for a proper tool for that
[13:09:43] <saml_> and you mentioned node.js to do so. that sounded like you're writing to both mongodb and elasticsearch at the same time.. on http requests , which i assumed for nodejs being commonly used as http stuff
[14:00:17] <BadCodSmell> mongorestore doesn't work
[14:00:32] <BadCodSmell> I still get duplicate keys with no indexrestore
[14:48:00] <saml> how can I calculate proper oplog size?
[14:48:14] <saml> http://docs.mongodb.org/manual/core/replica-set-oplog/#workloads-that-might-require-a-larger-oplog-size it just says you might need larger oplog for following
[15:05:25] <BadCodSmell> I should have a word with whoever is packaging this for debian
[15:06:34] <StephenLynx> are you using the default debian packages?
[15:09:45] <jayjo> I have a errno:61 connection refused... connection failed. Is there a very simple solution to this? I don't see any mongo processes running
[15:15:55] <jayjo> uh oh... there was an instance! solved
[15:45:36] <BadCodSmell> StephenLynx I tend not to use the default packages for critical components, debian of course wont increase versions for new features, yet will add loads and loads of random third party patches from whereever they can find them complicating compatibility and packaging.
[15:45:54] <StephenLynx> so you are not using debian's?
[15:46:04] <BadCodSmell> I'm using the mongo one :)
[18:45:44] <dorkmafia> is there a way to get json from the mongo shell? I'm trying this: mongo --quiet mydb --eval 'printjson(db["mydb"]["mycollection"].find())'
[18:48:01] <Rou> What is the default username and password for authorization??
[22:01:33] <daidoji> Rou: people in here are probably going to be biased
[22:01:44] <terminal_echo> its better than a join that crashes your server?
[22:01:45] <daidoji> however, the answer will always remain "what's your use case?"
[22:02:04] <Rou> daidoji: Well clearly I'm looking for confirmation bias
[22:02:05] <daidoji> terminal_echo: a join that crashes your server is a sign of an amatuer DBA
[22:02:26] <daidoji> Rou: you might do better with that question in #postgres then or #mysql
[22:03:34] <Rou> Is the data integrity issue true for all document based databases?
[22:04:09] <stickperson> daidoji: does this look like a reasonable way to create a connection for my views? https://dpaste.de/xhrR
[22:05:46] <daidoji> Rou: no, data integrity issues don't result from top-level abstractions (usually) but suffer from implementations and people using those implementations for things outside of teh intended use case
[22:07:25] <jmrpfio> Hey there. If mongodb doesn't have transactions, how can I reliably know that my data is being saved?
[22:09:08] <Rou> I'm getting a lot of hate on the internet whenever I mention MongoDB
[22:13:13] <daidoji> jmrpfio: you can't, however, document updates/inserts/deletes are atomic so as long as you're not trying to do 2+ writes that you need to succeed 100% of the time, you'll probably be okay
[22:18:54] <Milos> How come mongodb uses boost...? That's such a massive dependency.
[22:20:01] <morenoh149> Milos: it's popular enough
[22:21:39] <terminal_echo> daidoji: not really joins with big data don't really work
[22:22:24] <daidoji> Rou: a lot of people don't like it. However, #mongodb is probably not where you want to come if you're looking for more of all that
[22:22:41] <daidoji> Milos: what's wrong with Boost?
[22:23:12] <Milos> I'm now sitting and waiting for boost etc to compile, so I can use mongo. :-)
[22:23:56] <daidoji> terminal_echo: I've never had a join take down a server and at my last job we were doing 2billion transactions a day with 0% data loss and 5 9's etc...
[22:24:19] <terminal_echo> yeah transactions a day doesn't have anything to do with it but okay
[22:24:21] <daidoji> generally queries taking down servers are a failure of teh DBA or process within the development/QA team
[22:24:46] <terminal_echo> its the size of the two tables, not the number of transactions
[22:24:46] <daidoji> terminal_echo: only emphasizing that we were write-heavy
[22:50:06] <Milos> If I inserted a jsonArray into mongodb, so that mogo now only has "one" entry, can I parse this "one" entry to receive something more specific, for example the 0th entry object has an _id, of course, but it also has "default" which points to more json data, and so on. How could I query "default" out of this "one" "0th" entry? i.e. db.my_col.find(0) gives me the whole thing, can I now query for "default" within this?