[00:47:22] <tracker1> I'm bumping up against a limit on the number of indexes I can have in my collection... if I only do indexes in one direction, but say the sort is the other direction, will it use the index?
[00:47:48] <tracker1> "too much data for sort() with no index. add an index or specify a smaller limit"
[00:50:45] <tracker1> I already have a compound index on the fields in the {find} and {sort} combined
[00:58:45] <oinkon> can you index a collection based on fields inside an object??
[02:22:19] <sg> can i evaluate a regex as true/false in a $project?
[02:25:58] <arnpro> Hey guys, Im trying to use mongodb cli to test out some commands, however when pasting them into it, the console either stays on "..." or just says Display all 144 possibilities? (y or n). I am sure my command is well formed, so I don't know what could be going on? I can paste it if needed
[03:01:12] <JoeyJoeJo> How can I kill a .remove()?
[04:19:01] <arnpro> is there a CASE WHEN equivalent in mongodb? ... for range queries, for example a 'field' that is greater or equal than 0 and lower or equal than 10 = 1, greater or equal than 11 and lower or equal than 20 = 2, and so on...
[04:19:44] <arnpro> How can I nest them $cond-itions in 1 field ?
[04:35:35] <oinkon> how do i sanitize sub-document keys?
[04:37:14] <oinkon> nevermind i shouldn't really be using user input for keys
[05:16:27] <oinkon> would removing dots(.) from a subkey make it safe to use?
[05:34:33] <zaki_> Hey, anyone used GridFS on Amazon S3 ??
[10:59:57] <mortah> hey, I've just brought on another secondary and letting it do a sync over the network. If I do rs.status() it doesn't tell me what member its syncing from... any ideas where this disappeared? (2.2.2)
[13:01:49] <kali> Guest22427: this is a mongoose question, not realy a mongodb specific question, so i'm not sure you'll find much help here (it does not mean i'm aware to point you to a better place, but...)
[13:02:04] <kali> and please reorder my words when needed
[14:59:11] <JoeyJoeJo> I did db.dropDatabase() and it returned "ok", but when I do "show dbs" that database still shows up and says it's using 163GB. How can I get rid of it completely?
[15:17:03] <pringlescan> Mongo is crazy… when I do explain some of my queries return in less than a MS… is that possible?
[15:24:45] <JoeyJoeJo> I have 4 shards, each with 256GB of ram and the mongod process on each of them is taking up 200GB+, and insertion performance is getting pretty bad. Is it normal for this to happen? My db is 227GB and 227M documents
[15:39:31] <jiffe98> if I have a config server drop, can I reconstruct it by copying the data directory from another config server?
[16:36:16] <Derick> probably the most time I've even spend on a SO question: http://stackoverflow.com/questions/14626653/how-can-two-amazon-ec2-instances-share-the-same-data
[16:58:45] <Black_Phoenix> Is there any way I could import files into GridFS and have the filenames converted to UTF-8 automatically
[17:11:25] <E1ven> I'm having an issue (on 2.2.2) where mongos can't connect, on one of my QA servers; I've tried restarting it, as well as the mongod instances, but it's being stubborn. The other mongos servers can connect. Watching the log, it looks like it's acquiring locks somewhat frequently, but otherwise pretty normal. I've tried running it in -vvvv mode. Is there anything else I can/should do to try to diag?
[17:16:31] <AlecTaylor> I am porting a MongoDB database to a relational syntax (for an abstraction layer). Is there an automated MongoDB to MySQL converter?
[17:16:46] <AlecTaylor> (because then I can just convert that programically to my relational syntax)
[17:20:30] <AlecTaylor> Mmm, NVM; not that much more code to get through before it's fully reverse engineered by hand
[17:47:10] <arnpro> is there a channel support for mongodb php ?
[17:49:49] <bjori> nah, but feel free to ask here arnpro
[17:51:09] <arnpro> alright so I'm doing a db.runComm() with aggregate functiona and the pipeline option. However I need to check if it returned any data and display it. I have been looking for methods of iterating over that set of data, but can't find any
[17:51:35] <arnpro> I have tried foreach, even var_dump(), nothing, so how can I print 1 by 1 the docs returned by the aggregate() ?
[17:54:53] <bjori> foreach($coll->agregate()["results"] as $document) { var_dump($document); } ? :)
[19:55:24] <nb-ben> In a replica set, say I have 3 nodes on 3 different servers which also serve HTTP at 3 different data centers. Do I need to make a connection to the remote master node when using the two slave servers in order to write information?
[19:56:03] <nb-ben> or can I simply connect to the local mongod instance and it will asynchronously take care of the update?
[20:04:19] <kali> nb-ben: you need to connect to the master
[20:04:54] <kali> nb-ben: if you open the connection with a slave, the driver will also open a connection to the master
[20:05:32] <nb-ben> so as far as the application layer goes, I can just connect tot he local mongod, but behind the scenes connection will be made to the master
[20:40:56] <jiffe98> is there a quick way to perform this kind of operation in mongodb? update test set c = concat('INBOX2.', substr(c, 7, length(c) - 6)) where c like 'INBOX.%';
[21:07:02] <totic> Let says I have a crawler that cashes in mongo all the domain of pages it has visited what will be the best way to get that as a set?
[21:11:28] <shadfc> i feel like i'm getting inconsistent results with read preferences. Does this make sense to anyone? http://dpaste.org/OkyOm/
[21:12:27] <shadfc> actuall, http://dpaste.org/GAsZg/ shows a little more weirdness
[21:13:35] <kali> looks eventually consistent to me :)
[21:14:54] <kali> shadfc: without knowing what else is happeengin on the collection, it's hard to know if this is corrent or not
[21:15:22] <shadfc> how so? i query without a read preference and get no results (should be querying the primary, i would assume). Then I specify the primary/secondary and get results. Then the real problem is that the first queries give me _ids which the later queries do not find
[21:16:13] <kali> shadfc: are you sure there is not another process altering the collection ?
[21:17:33] <shadfc> kali: not removing those objects. I've been working with the same ones for the last hour without problem. here is a new session i just recorded which shows the queries that do return results at either end of the ones that dont -- http://dpaste.org/UoXzc/
[21:17:56] <kali> shadfc: just to meake sure... this is not a capped collection, right ?
[21:29:37] <shadfc> so the faid, url query hits all shards and gets some results, while the _id query goes to a specific (wrong) server and gets nothing
[21:35:45] <shadfc> we had some balancer migrations that got killed a while back. its probable that the objects existed in two places, then got removed the "correct" one. now when we run queries that hit all shards, we still get results
[21:36:02] <shadfc> guess i'm writing something to clean that data up
[21:44:54] <JoeyJoeJo> How can I kill a .remove() command?
[21:47:45] <JoeyJoeJo> Also, how can I tell what is currently holding the lock?
[22:45:24] <diamonds> what the heck http://pastie.org/pastes/5998821/text
[22:46:02] <diamonds> I put {a:1} in a mongo collection and now it's using almost 200M on disk?
[22:54:52] <IAD> diamonds: it's reserved for future
[23:03:43] <diamonds> IAD, seems a bit excessive, no?
[23:03:58] <diamonds> reserving 200MB when I write 1 document with 1 key?
[23:59:33] <diamonds> this upsert behavior is a bit shocking...
[23:59:59] <diamonds> if no document matches the criteria, insert a new document with the fields and values of the update parameter and if the update included only update operators, the query parameter as well ."