[06:39:54] <preaction> if it's beta, it probably can't be known not to corrupt data, or cause the server to go unresponsive, or any number of other unknowns
[08:27:16] <beepbeep_> I've always worked with relational db's (mysql) and want to experiment with mongodb. Any must read articles about developing applications that use mongodb?
[08:29:12] <Nodex> tbh the best thing you can do is do the opposite to what you would do in a relational DB
[08:29:21] <TeTeT> hi, a question on mongojs: i try to count the number of objects in a collection, basically doing: mongo pwo --quiet -eval "db.User.count()"
[08:29:25] <Nodex> and it's more or less nearly the right way to do things
[08:30:06] <TeTeT> I try http://pastebin.ubuntu.com/5615193/ but no result is returned
[08:30:41] <TeTeT> looks like the function in docs.count is never triggered
[11:44:33] <jon_r> Hi, does anyone know how to stop the mongodb shell from evaluating documents it returns? gives me weird errors rather than just printing the document
[11:44:49] <jon_r> used to work fine but i think 2.4 has introduced this weirdness
[11:47:00] <jon_r> ah nm, answering my own question, it's a bug that might be fixed in 2.4.2
[13:11:33] <DinMamma> Hello yall, I have a 4 shard cluster with 3 replicas in each shard.
[13:12:33] <DinMamma> One of the replica in each shard runs on one machine in our office as hidden, just so that we have an onsite 'backup'. Today I noticed that 3 of the 4 mongos in the replicasets was ~1 day behind in the oplog, but one of them was up to date.
[13:12:40] <DinMamma> How to start figure out what is going on?
[13:21:52] <oskie> how can I show what collections are sharded and using what key? when I do sh.status() it gives me only a database list
[13:22:53] <DinMamma> You need to enable sharding in a collection aswell.
[13:23:33] <oskie> so you are saying that if I only see databases in the sh.status() output and no collections, it means that no collections have been sharded yet?
[13:23:35] <DinMamma> sh.status() shows me collection-level info for the collections I have enabled sharding for.
[16:27:32] <harenson> Mech0z: with "db.system.profile.find()", you're querying for the subcollection "profile" within collection "system" within the db you selected before
[16:28:07] <harenson> and your mongoimport importing to the db "m101" in the collection "profile"
[16:29:13] <harenson> Mech0z: that's why I told you that follow the steps
[18:21:19] <mcilrain> hi, I'm using a query that selects documents based on items it has in an array and then sorting based on a timestamp (20 most recent posts with tags foo+bar), what sort of indexes should I be using for such a query?
[19:02:02] <Scrivener> Heya guys. I was having this particular problem and wanted to see if there was any other solution to it than the one posted in this stackexchange answer: http://askubuntu.com/questions/180319/mongod-fails-to-start-with-error-mongod-symbol-lookup-error-mongod-undefined
[19:02:19] <Scrivener> Is it a known issue? I could find almost nothing about it through googling.
[19:02:46] <Scrivener> In my case, Amazon Linux, yum-installed mongodb instance, mongod itself starts okay, and things seem to work.
[19:02:59] <Scrivener> Until one uses the mongo prompt. When you enter in anything it gives that error and quits.
[19:03:36] <Scrivener> Using the precompiled binaries sounds like a really ugly solution.
[19:04:14] <Scrivener> I would think that non-working MongoDB packages would be something of a larger concern than they seem to be. I'm not sure why it's happening.
[19:05:41] <kali> Scrivener: this is with the ubuntu maintained packages, right ?
[19:06:01] <Scrivener> I'm on Amazon Linux, so this'll be EPEL
[19:06:07] <Scrivener> But I've got the same problem.
[19:06:30] <Scrivener> Seeing that that stackexchange post was made last year, I expected to find a bit more of a fuss about it at least surrounding Ubuntu, but I can't seem to.
[19:07:29] <kali> Scrivener: i don't know what epel is... but as 10gen maintains packages for most distribution in the right form in their own repository, i think there is less pressure around distribution-maintained packages
[19:08:15] <Scrivener> Kali - It's a Fedora/CentOS/Redhat repo.
[19:10:15] <Scrivener> I will give this a go and report back -- thanks already.
[19:10:58] <ehershey> Scrivener: 2.0.4 is fairly old
[19:11:15] <kali> yeah, that too. 2.0.4 is ancient
[19:11:44] <Scrivener> I'm not using 2.0.4 -- it's not me in this particular post, but I'm having the same kind of issue. I believe the version I had was 2.2.x or 2.4.x
[19:11:55] <Scrivener> Whichever is in the EPEL repo.
[19:23:57] <GRMrGecko> Can someone translate this SQL query to mongo? UPDATE t1 SET b=b*2 WHERE a>=0 AND a<10; The problem I'm having thinking about is the B=B*2
[19:36:52] <ixti> probably stupid question, can somebody point me to the article explaining why docs in collection should be with as similar schemas as possible
[19:37:05] <ixti> i'm nearly 100% sure that i read something like this
[19:37:16] <ixti> and nearly 75% sure it was on official web site :D
[19:37:44] <ixti> or probably it was in m101 or m102... :D
[19:40:13] <BobFunk> Is there any way to stream a binary field from a document to a file without loading the whole field in memory with either the ruby or java mongodb driver?
[19:40:39] <wereHamster> ixti: they should be of similar size, but I don't think mongodb cares about the actual content
[19:41:14] <wereHamster> also, if you have non-sparse indexes on fields that are only in selected docs, the index will be inefficient
[20:15:49] <ron> and that's just a guess as I've never used the mongodb C# driver, it's just that your question doesn't make sense at all.
[20:17:21] <Mech0z> but then how do I use the ID field if I cant access it on my model
[20:17:59] <Mech0z> mongodb will autocreate a _id field, but that is "hidden" because my c# model wont know about it
[20:18:43] <ron> well, then make it know about it?
[20:18:59] <ron> if it won't know about it, how do you expect updates to work?
[20:20:46] <the_lord> Hello, I'm trying to make some indexes, I'm using mongoid, and it's generating the query like 'collection.find( { "$query" : { query params }, "$orderby": { sort params}})', that query does not make use of an index I have for that query, instead, if I use collection.fing({ query params }).sort({sort params}) it does, any ideas on how to make mongo use the index in the first query?
[20:25:09] <ixti> the_lord: you want to pass query and sort into find?
[20:25:22] <the_lord> ixti, I don't want to, mongoid does that
[20:26:22] <the_lord> ixti, I suppose I could make a bug in mongoid and see the reply, but I just want to make sure there's no way of making that work
[20:26:43] <ixti> the_lord: are you sure. i think mongoid executes command
[20:51:47] <andre_fffff> Is normal having this error while initiating the replica set configuration? "couldn't initiate : need all members up to initiate,
[20:51:50] <ixti> andre_fffff: i really don't know how to help you
[20:52:08] <bean__> andre_fffff: are all of the members that you've defined up?
[20:52:23] <the_lord> ixti, this was my test, I created the collection, with no special indexes except the _id one
[20:52:27] <ixti> your rs config could tell little bit more than "i have problems"
[23:19:13] <dcholth_> Hello. I have a newbie question... _id is generated by Mongo. I have 3 object collections, and I want to have my own ID thats unique to each of them as well that I track.
[23:19:54] <dcholth_> Where I want Question.id, Category.id, Zone.id... But I feel its dirty to have both _id and id... So I started doing Question.qid, Category.cid... Is that a valid concern or should I just go with id and _id ?
[23:39:21] <Raynos> I'm running into 'Error: connection closed due to parseError' coming out of the node driver
[23:39:38] <Raynos> mainly because the protocol header says this packet contains more then 16mb
[23:43:01] <bartzy> Derick: I tested the remove() question I had yesterday