[00:26:27] <Boomtime> also, why do you need to call .Ping()? what does it do for you?
[00:26:53] <Boomtime> what driver/version is that anyway?
[00:27:01] <kexmex> Boomtime: it's call up during some setup. To make sure credentials are ok etc. Easier to fail it right there instead of failing somewhere deep down the line
[00:30:35] <Boomtime> alternatively, you might find that inserts are fine by getCollectionNames fails because the creds permit insert on only a single collection
[00:45:45] <crazydip> does mongodb 3.0.5 use standard or a mongodb-specific modified version of boost? is it safe to use the distributions' boost-devel when compiling mongodb, especially if it's more up to date than the boost included w/ mongodb?
[02:37:03] <brockfredin> I have a question about mongo queries. Wondering if anyone can help? :)
[02:42:14] <Boomtime> brockfredin: hi there - ask your question, perhaps someone will be able to help
[04:02:07] <asa_> May I ask if the risk of MongoDB losing data higher than relational database like MySQL? don't mean to put down MongoDB but someone warned me against using MongoDB. I have not used it before. So, personally, I don't know enough to make a judgment call.
[04:04:51] <Boomtime> asa_: why would the risk be any different?
[04:05:24] <Boomtime> a lot of people have a misconception about mongodb due to a poor choice of 'default writeconcern' in the drivers from many years ago
[04:05:30] <asa_> Boomtime: i really don't know. I've never used MongoDB. It's just what people say and what I read.
[04:05:56] <asa_> At the risk of offending the people here, here's one article I read that made me scared. http://cryto.net/~joepie91/blog/2015/07/19/why-you-should-never-ever-ever-use-mongodb/
[04:06:20] <Boomtime> and do you believe everything you read on free blogs?
[04:06:59] <Boomtime> note that guy cites the same source, from a self-described 'developer' that doesn't know what he is doing
[04:07:12] <asa_> I don't know enough to believe or not to believe. That is why I am here. To get expert, objective information from MongoDB folks
[04:07:36] <Boomtime> like any technology, if you use without bothering to understand how it works, you might be surprised by behavior it exhibits and leap to conclusions that aren't true
[04:08:19] <asa_> Boomtime: what has led to the complaints in MOngoDB? Misuse?
[04:08:26] <Boomtime> since you asked about data safety, the place to start is to understand the ways that mongodb provide levels of assuarance
[04:08:49] <Boomtime> this is called writeconcern: http://docs.mongodb.org/manual/core/write-concern/
[04:09:35] <Boomtime> asa_: here is a simple thought experiment -> let us install a mongodb and an sql on the same hardware.. now let us say the hard-disk in that machine fails - which database is safer?
[04:13:57] <Boomtime> the link you gave basically summarizes to that situation
[04:14:49] <Boomtime> there is lots more to this, and i would urge you to read about writeconcern
[04:15:00] <Boomtime> it can provide the assurance of data durability that you want
[04:15:32] <asa_> with writeconcern, data integrity is assured? Not possible to lose data?
[04:16:13] <asa_> was writeconcern introduced only recently? Is this why MonogoDB has some bad press?
[04:16:14] <Boomtime> of course not, if every host that holds data suddenly explodes then you will losoe data
[04:16:30] <Boomtime> this is true of SQL or mongodb - all you can ever do is lower the risk
[04:16:52] <asa_> i mean, barring uncontrollable situation, data will not be lost due to MongoDB's fault?
[04:17:10] <Boomtime> writeconcern allows you to control the risk, by specifying how many hosts to ensure that writes have propagated to
[04:17:22] <Boomtime> before returning an answer to the application
[04:39:09] <pylua> what is the diff netween mongodb search engine and elasticswarch engine ??
[05:02:20] <preaction> mongodb is not a search engine
[06:24:49] <jamiel> if sharding by foo: 1, bar: 1 ... will documents with the same "foo" be on the same server where chunksize permits and "bar" just decides how the "foo"'s are split?
[06:30:44] <Boomtime> jamiel: i don't believe so, there is no reason for a split point to occur only on a field boundary
[06:36:08] <jamiel> So if I have a dataset of 3 million records, foo has 3 distinct values, I have 3 shards and I want the data to be split across 3 shards 1 million of each type of foo on each server (as queries are always for one type of foo at a time) ... I have no way of doing this? Shard key can't only be foo as the chunk will be un-splittable if my shards are only big
[06:36:08] <jamiel> enough for 1 million of each type.
[06:38:46] <Boomtime> you can do that, but you need to tell the balancer how you want your data arranged
[09:15:18] <m3t4lukas> hey guys, I got a problem with the mongodb java driver, two days ago my code was still working , but today I cannot create an authenticated client anymore.
[09:16:47] <m3t4lukas> I use com.mongodb.MongoClient.MongoClient(ServerAddress addr, List<MongoCredential> credentialsList) as a constructor and it throws http://pastebin.com/1JwqrCGS
[09:17:08] <m3t4lukas> seems like the problem lies within the java driver
[09:18:58] <m3t4lukas> and I'm building with gradle using 'org.mongodb:mongodb-driver:3.0.2' as a dependency
[09:32:29] <m3t4lukas> fixed it,just switched back to 3.0.1 and it works again
[09:33:04] <m3t4lukas> guess I shoudn't go bleeding edge for production
[09:33:28] <m3t4lukas> although I thought those in gradle were stable
[10:33:25] <Gemtastic> Is there anyone who knows the difference between insertMany, writeBulk and the intitializeUnorderedBulkOp?
[18:07:05] <tzahi> hello, i was wondering if i can get help with a schema im thinking about using? im coming from a mysql background
[20:03:30] <riot> hmm, i get "ImportError: cannot import name _unicode" in "from bson.py3compat import (_unicode," - on a rather fresh debian install.. wtf?!
[20:17:16] <riot> hah, old installed python-bson package.. gnf
[21:11:23] <bros> Hi. All of my data is missing from my database?
[21:11:28] <bros> I have backups, but I am trying to figure out what happened.
[21:12:20] <bros> I just did a new deploy to the node.js codebase. Nothing change in terms of the mongo code. I've been working on /develop database, and now I moved it back to the production database, and it's entirely empty?
[21:14:09] <bros> I did a apt-get upgrade, and now it's all gone?
[21:15:29] <bros> are there any log files anywhere?...
[22:03:31] <bros> can somebody help me figure out why my replicated sharded cluster isn't working?
[22:12:49] <bros> 339 inactive users in the channel for the database that drops data?