[00:30:32] <jekle> autoburger: you are good with mongo, just throw mysql out of the window. you won´t regret =P
[00:53:25] <jekle> autoburger: for me the biggest difference is that you need to think about what you want to accomplish at the very beginning to end up with a proper schema. there are no normal-forms like in sql databases.
[02:58:32] <classicc> In Mongoose, if how do I exclude certain properties from the resulting object on .save? eg. newUser.save(function(err, user) {... - exclude specified fields from the user object?
[03:31:09] <rfk_> any support for storing filesystem metadata in gridfs? or should i add the fields myself?
[04:21:34] <ome> With mgo, if I am scanning a query into a limit subset of the document attributes. Would that operation would be cheaper than scanning the document into a complete struct?
[04:44:51] <Boomtime> on the client it will certainly be cheaper, there is less data in the response to parse into native
[04:45:02] <Boomtime> it may be cheaper also on the server
[05:33:39] <ome> Boomtime: it may, or may not, that is the question. :)
[05:36:44] <Boomtime> so you are asking if there will be less work for the server?
[05:37:50] <Boomtime> your question was phrased entirely around the client, to which the answer is a definite yes, the client will have less work to do due to the less data it receives
[05:38:52] <Boomtime> the server-side is a bit more complicated; if you restrict the return fields to only those used by the index that services the query, then absolutely, the server will do less work - it can skip the document lookup and use the data contained in the index only
[05:39:38] <Boomtime> if the return subdocument contains fields not in the index, then the document has to be pulled into memory anyway
[05:40:16] <Boomtime> it can then return it all as is (it's BSON already, set to go) or it can reformat it the way you asked for
[05:40:40] <Boomtime> the reformatting might still be faster if you chop enough out
[05:41:40] <Boomtime> it is generally the case that restricting results to only include the fields you actually want is 99% of the time better off
[06:23:51] <adil> Hello. I have a PHP mongodb driver question
[06:37:10] <Boomtime> @adil: i don't know PHP very well, but you should ask your question as somebody else here might
[07:50:09] <nEosAg> im facing weird issue, don't know if mongo has anything to do with it..
[07:52:02] <nEosAg> im saving "✓" in one of the document as part of content...
[07:53:50] <nEosAg> but while query on shell like db.coldata.find({object:6588}) it shows actual "✓" sign which is html representation of that code(✓)
[07:54:40] <nEosAg> so..does mongo do formatting while showing o/p on shell..i tried shell for viewing raw content of doc..
[07:55:36] <nEosAg> how to check raw content of doc...to see what actually get stored in DB..?
[07:57:39] <Eremiell> nEosAg: I believe, mongo stores everything in BSON, which is a binary format, so unless you can read ones and zeros, it needs to convert it back to JSON to show you.
[07:59:10] <Eremiell> but if you really really want to see the stored data, I guess, you can just cat the db storage files...
[08:00:23] <nEosAg_> Eremiell: so how can i know ..where is the mess..did code trying to insert that doc, has transformed that "code" to "html" ..
[08:00:57] <nEosAg_> or mongo client did ? or mongo did?
[08:01:37] <Eremiell> nEosAg_: whatever you get in mongo shell is what your program will get as well. you can tell, if the data is all right or not, don't you?
[08:03:23] <nEosAg_> Eremiell: i will take "✓" to "✓" as change in data..
[09:22:42] <joelmoss> I think my problem is that the data is written by a Java app, but I need to read it from a Ruby app, so the byte order is different
[09:22:47] <ranman> joelmoss: so you're trying to get back: zUa8BN3haCgbHtmhvGy0tA== ?
[09:38:46] <joelmoss> may have to dig into https://github.com/mongodb/mongo-csharp-driver/blob/master/uuidhelpers.js
[11:58:14] <nofxx_> Crazy, strange issue, got a find() in my system was working flawless yeasterday, today its a devil's playground.... crazy pattern: 5 finds, 0.0042s each, then comes a 30seconds one! then 5 fast, 1 slow, 5 fast, 1 slow...
[11:58:26] <nofxx_> wtf??? nothing in profile, nothing is slow... totally lost what to try
[11:59:29] <nEosAg_> nofxx_: any updates on that collection/db ? version of client,mongo ?
[12:00:22] <Eremiell> indices reevaluation? some specific pattern to the queries?
[12:00:33] <nofxx_> nEosAg_, now there's lot of stuff running, but earlier on the morning same issue w/o load. mongodb 2.6.3
[12:02:23] <nEosAg_> nofxx_ : journaling enabled? pages flushing to disks after 5 finds..?
[12:02:55] <nofxx_> nEosAg_, humm.... its a find and modify* pardon ...
[12:03:04] <nofxx_> maybe linode's I/O playing with my patience
[14:19:34] <adamcom> lgm: realise it has been a while since you asked but basically if you are wiping and starting from scratch you can just drop the config database and then restart everything - all shard config and other meta data live in the config database (on the config servers), so once you delete it (and restart to make sure the old data is not cached somewhere) then you are back to square one. The removeShard command (as you have found) is for altering the config of an
[14:21:09] <Derick> adamcom: stopped at "the config of an"...
[14:28:43] <adamcom> was almost complete: is for altering the config of an existing sharded set up.
[14:29:01] <adamcom> and annoying that I don't get any messaging to tell me when that happens :/
[14:30:03] <adamcom> Derick: likely, but I refuse to run more than one, so I must sacrifice quality for broad compatibility
[15:05:33] <PeepDurple> Good day. I have a question related to updating an list of arrays. I have something like this in my documents -> http://pastebin.com/mhpKzVxD .. can someone explain how I can remove the second array out of the list entirely? It seems like there is no trivial way out there for this
[15:07:30] <Derick> that's not a document though, is it? it's only a part of it?
[15:10:32] <mipo> cheeser: mailing list was about developer manual?
[15:11:52] <Derick> PeepDurple: so with a key "FOO" ?
[15:12:55] <PeepDurple> It was just an example. Its a list containing n-amounts of addresses. I want to remove one address out of this list by using an index or in a similar way.
[15:12:56] <Derick> PeepDurple: you should be able to do: db.collection.update( { _id: YOUROBJECTID }, { $unset: { 'FOO.1' : true } } );
[15:52:03] <saml> hello, I have docs like {_id:1}, {_id:3}, .... where _id are natural numbers. not packed. there are jumps like 1, 2, 6, 50, 230 ... etc
[15:52:28] <saml> given an existing _id, can I have one query that gives me successor and predecessor ?
[23:34:11] <joannac> mongodb only logs queries >100ms by default
[23:40:05] <zfjohnny> is that somethign I can do in my mongo conf file? If so, what’s the commadn exactly? I’m a little confused about the syntax. Thank you for your help!
[23:40:58] <freeone3000> What is causing my replication to take forever? My infomessage on my seocndary has said "still syncing, not yet to minValid optime 540e1259:1"" for three hours.