PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Friday the 8th of March, 2013

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[00:19:29] <FrankBullitt> Is there a tool like mongoimport that will follow/tail a log and continually import JSON?
[00:21:30] <stdim> Hi. How fast are array queries for _id. For example: findOne({ 'parentArray._id': ID }) ?
[00:21:38] <stdim> Are they indexed in some way in MongoDB?
[00:22:03] <stdim> Or does MongoDB just loop through the whole array?
[00:43:26] <bootstrapper> anyone can help with aggregate funciton?
[00:47:51] <stdim> bootstrapper: maybe
[00:48:03] <bootstrapper> tnx
[00:48:06] <bootstrapper> i have this query
[00:48:08] <bootstrapper> db.items.aggregate( { $group: { "_id": { id: "$id" } , version: { $max: '$version' } } , $sort: {'version' : -1 }} ).result
[00:48:21] <bootstrapper> but it returns 3 objects and not 1
[00:48:36] <bootstrapper> all 3 objects has the same id ($id)
[00:49:00] <bootstrapper> oh sorry
[00:49:02] <bootstrapper> my mistake
[00:49:14] <bootstrapper> i put the version inside the group :)
[00:49:23] <bootstrapper> i wanted to query the latest version
[00:49:25] <stdim> :)
[00:50:02] <bootstrapper> how do I select the max version?
[00:50:09] <FrankBullitt> Is there a tool like mongoimport that will follow/tail a log and continually import JSON?
[00:51:30] <stdim> bootstrapper: Hmm...
[00:53:05] <stdim> bootstrapper: how about $limit: 1?
[00:53:16] <bootstrapper> well i have different ids as well
[00:53:37] <bootstrapper> need to return a list of objects , each object must be the latest version
[00:55:25] <stdim> bootstrapper: Your command should work OK then...
[00:55:36] <bootstrapper> it doesn't
[00:55:44] <bootstrapper> it returns 3 objects with the same id
[00:57:11] <bootstrapper> http://www.sourcedrop.net/c7h936f8152c9
[00:58:10] <bootstrapper> i paste my result from this query
[00:59:38] <dstanek> the data in my dbpath totals about 29G while my backup is only about 7G - why such a big difference?
[00:59:43] <bootstrapper> if i remove the sort, it does return 1
[00:59:45] <bootstrapper> wtf
[01:00:38] <stdim> bootstrapper: and it returns only the highest version?
[01:00:44] <bootstrapper> yes
[01:01:05] <stdim> OK, so what is the purpose of your query again?
[01:01:09] <bootstrapper> > db.items.aggregate( { $group: { "_id": { id: "$id" } , version: { $max: '$version' } } , $sort: {'version' : -1 }} ).result.length
[01:01:10] <bootstrapper> 3
[01:01:10] <bootstrapper> > db.items.aggregate( { $group: { "_id": { id: "$id" } , version: { $max: '$version' } } } ).result.length
[01:01:11] <bootstrapper> 1
[01:01:45] <bootstrapper> i want to get the latests objects, where each object is the latest version
[01:02:08] <bootstrapper> it looks like there is a bug
[01:02:16] <bootstrapper> why the $sort returns everything
[01:05:11] <stdim> bootstrapper: $max
[01:05:12] <stdim> Returns the highest value among all values of the field in all documents selected by this group.
[01:05:28] <bootstrapper> yes
[01:05:48] <bootstrapper> so it returns the highest version
[01:06:28] <bootstrapper> so I don't need to add a sort?
[01:07:11] <stdim> IDK, but to me it seems that what you want to do can't be done...
[01:07:24] <stdim> With aggregation in that form at least...
[01:07:36] <bootstrapper> seriously? that a simple query
[01:07:52] <bootstrapper> i'll have to take a deeper look
[01:08:36] <stdim> Please do, since I don't know how MongoDB would know what is the 'highest version' of a document...
[01:08:57] <stdim> Your documents don't seem to have references to past versions or a common grouping element...
[01:08:59] <bootstrapper> its a field i have on the document
[01:09:33] <stdim> Ah, but you have the "id" field...
[01:09:43] <stdim> That seems to be common among all documents, correct?
[01:10:01] <stdim> all from the same version...
[01:10:24] <stdim> Now I'm even more confused... :P
[01:11:08] <bootstrapper> ok
[01:11:11] <bootstrapper> think about it this way
[01:11:15] <bootstrapper> i have 3 objects
[01:11:17] <bootstrapper> all have the same id
[01:11:26] <bootstrapper> but different creation date
[01:11:50] <bootstrapper> { id: 1, version:1}, {id: 1, version:2 }
[01:12:38] <stdim> Yeah, got that...
[01:12:46] <bootstrapper> i think i need to project
[01:12:50] <bootstrapper> as the sort causes issue
[01:12:56] <bootstrapper> is there a way to project the entire object?
[01:13:23] <stdim> Try $group: { "_id": "$id" }
[01:13:51] <bootstrapper> tried
[01:14:02] <bootstrapper> it is not always returning the last version
[01:14:26] <stdim> db.items.aggregate( { $group: { "_id": { id: "$id" } ,
[01:14:36] <stdim> arr copy-paste! :(
[01:14:53] <bootstrapper> i added a project
[01:15:08] <bootstrapper> and it returns again all the objects
[01:15:10] <bootstrapper> k
[01:15:10] <bootstrapper> sec
[01:15:23] <bootstrapper> http://www.sourcedrop.net/c7h936f8152c9
[01:15:28] <bootstrapper> this is how my objects look
[01:16:08] <stdim> db.items.aggregate( { $group: { "_id: "$id", "version": { $max: "$version" } } })
[01:16:13] <bootstrapper> http://www.sourcedrop.net/7F793b7019014
[01:16:22] <bootstrapper> this is two queries
[01:16:24] <bootstrapper> one with project
[01:16:44] <stdim> try that one...
[01:17:03] <stdim> Even if that fails, then it must be some sort of bug...
[01:17:29] <bootstrapper> it fails on syntax
[01:18:10] <bootstrapper> i'll bbl
[01:18:14] <bootstrapper> gotta run
[01:18:17] <bootstrapper> tnx stdim
[01:18:24] <bootstrapper> if i find a solution i'll post it here
[01:18:29] <stdim> please do
[02:39:31] <owen1> after restoring my data i noticed that the size of my db is big, but i don't see any records. any ideas?
[02:39:41] <owen1> (mongorestore)
[02:50:53] <ferai> does anyone know why using .sort({"$natural": -1}) would fail to return any documents, but .sort({"$natural": 1}) would return all documents?
[03:10:06] <bootstrapper> is there a way to filter a collection.aggregate ( {$group...
[03:10:09] <bootstrapper> ?
[03:44:29] <frozenlock> Hello gentlemen, I'm trying to add indexes, but can't seem to get mongo to use them... is there a minimum number of documents to get before the 'cursor' switches to BTREE?
[04:11:42] <zarac> Hey folks! ; )
[04:19:19] <zarac> Reading the documentation for the node.js driver; ( http://mongodb.github.com/node-mongodb-native/api-generated/collection.html#find ) it's stated that if i give find(..) a callback, the second parameter will contain the result. What kind of an object is this?
[04:20:39] <zarac> It looks very similar to what gets returned (a cursor). I'd just like to get an array (without having to use the toArray method like the examples do).
[04:32:52] <zarac> Hmm.. it seems the documentation inconsistent with the driver. Anyone else got an opinion on this?
[04:34:08] <zarac> E.g. it says Db.collection.find(..) returns null. It clearly doesn't.
[04:49:14] <LuckyBurger> hmm. After executing a loop of db.collection.save(), how do I tell node that all db ops are done and to disconnect?
[04:49:40] <bootstrapper> found a solution
[04:49:44] <bootstrapper> [ { '$match': { 'owner.id': '100' } },
[04:49:44] <bootstrapper> { '$group': { _id: '$id', dbid: [Object] } } ]
[04:49:52] <bootstrapper> it changed to an array
[04:53:26] <zarac> LuckyBurger: Got some code to paste of your looping? : )
[04:55:29] <LuckyBurger> sure
[04:55:31] <LuckyBurger> 1 sec
[04:56:08] <LuckyBurger> @ zarac http://pastebin.com/vyRDQxZd
[04:56:37] <LuckyBurger> dont yell at me for the stringify/parse :P
[04:56:52] <LuckyBurger> too lazy to find something else to clone a document
[04:57:22] <zarac> ; )
[04:57:46] <zarac> Isn't there a .clone() ?
[04:57:54] <zarac> Object.clone();
[04:58:37] <LuckyBurger> didnt think so
[04:58:41] <LuckyBurger> i think i tried it
[04:59:05] <zarac> Dunno.. anyway. One solution is to have a counter in your callback for .save and when it hits 0 you call your cleanUp() function.
[04:59:18] <LuckyBurger> ah
[04:59:24] <zarac> The counter would start at how many saves you're doing.
[04:59:26] <LuckyBurger> yeah
[04:59:37] <LuckyBurger> no clone or Clone
[04:59:56] <zarac> I'm fairly new to javascript / node.js / mongodb myself.. i bet there's a better solution.
[05:00:05] <zarac> hmm ; )
[05:00:11] <LuckyBurger> w/e works at this pt ;)
[05:00:18] <LuckyBurger> hense my bastardization of parse/stringify
[05:01:05] <zarac> ; )
[05:01:47] <LuckyBurger> excellent.
[05:01:51] <LuckyBurger> works just fine
[05:02:03] <zarac> LuckyBurger: What about just Planet = PlanetTemplate?
[05:02:22] <LuckyBurger> i thought it stored as ref
[05:02:23] <zarac> Doesn't that make a copy in javascript?
[05:02:42] <zarac> Hehe, dunno.. whatever. I probably don't know what i'm talking about.
[05:03:08] <LuckyBurger> naw ur right
[05:03:10] <LuckyBurger> on both accounts
[05:03:28] <LuckyBurger> which means its time for me to goto bed cuz im being an idoit on basic things rofl
[05:03:42] <zarac> haha. naw. Glad i could help. ; )
[05:04:13] <LuckyBurger> ty
[05:05:26] <zarac> LuckyBurger: http://stackoverflow.com/questions/728360/copying-an-object-in-javascript might enlighten you (and me)
[06:23:57] <shmoon> need some help
[06:24:34] <shmoon> i have a users collection, i want to generate small unique ids for each (they dont have usernames, so ...). my initial thought is to implement auto increment ids, how do i go about doing that, and is that sane?
[07:37:19] <wereHamster> shmoon: why don't you use objectids?
[08:48:01] <[AD]Turbo> ciao all
[09:26:41] <mtsr> Hi! If 'db.questions.find({ 'user.email': 'bla@example.com' })' returns multiple documents, shouldn't 'db.questions.update({ 'user.email': 'bla@example.com' }, { $set: { 'user.test': 'bla' }})' also update multiple documents? Since that's not what I'm seeing.
[09:27:51] <Gargoyle> mtsr: You have to explicitly specify that you are intending to update multiple docs with one query.
[09:28:17] <mtsr> ahh
[09:28:46] <mtsr> thanks!
[09:32:10] <mtsr> That works, thanks again.
[09:42:32] <remonvv> And the prize for most confusing default parameter goes to.....
[09:44:19] <Gargoyle> remonvv: ?
[10:10:56] <Nodex> and the award for friday speaker goes to....
[10:11:04] <Gargoyle> me!
[10:11:07] <Gargoyle> :P
[10:11:25] <Nodex> on a slightly off topic note, this whole responsive website malarkey is easier than people make out
[10:11:41] <Gargoyle> You're just bored because there's no Friday troll for you to feed on...
[10:11:43] <Gargoyle> yet.
[10:11:45] <Gargoyle> ;)
[10:11:52] <Nodex> I've been to busy to troll recently
[10:11:55] <Zelest> MySQL is sooo much better than NoSQL!
[10:11:59] <Zelest> please discuss!
[10:12:00] <Zelest> :-)
[10:12:04] <Nodex> Trollololololol
[10:12:11] <Zelest> \o/
[10:12:26] <Gargoyle> Zelest: Indeed. I mean, no JOINs…. WTF!
[10:12:37] <Nodex> well if nosql could do joins then nosql would rock
[10:12:44] <Gargoyle> I'm going back to flat file XML docs.
[10:12:47] <Nodex> but as it stands mysql is the awesumz
[10:13:25] <Nodex> http://www.nodex.co.uk/
[10:13:28] <Nodex> \o/
[10:13:47] <Gargoyle> WOW!
[10:13:58] <Zelest> what's the deal with co.uk btw?
[10:14:02] <Zelest> why not just .uk ?
[10:14:04] <Gargoyle> You must have blown a shedload of iStock credits on that one! :P
[10:14:11] <Nodex> lmao
[10:14:18] <Nodex> those cheesy images are being removed
[10:14:33] <Nodex> Zelest : I dont know but .co.uk has been around for ever
[10:14:46] <Zelest> yeah
[10:14:47] <Nodex> and it's easier than telling people ".uk" not ".co.uk"
[10:14:53] <Zelest> same with co.kr :P
[10:15:02] <Gargoyle> jQuery!
[10:15:16] <Zelest> just qidding!
[10:15:33] <Nodex> bleh
[10:15:41] <Derick> you can't do a .uk here btw
[10:16:13] <Nodex> anyonebuying "the sims" ?
[10:16:23] <Nodex> -anyonebuying + anyone buying
[10:20:54] <Nodex> I guess that was a bad question LOL
[10:22:16] <remonvv> I'm not even sure how to respond.
[10:22:35] <Nodex> sorry I meant Sim city
[10:22:37] <Nodex> wtf lol
[10:22:45] <Nodex> brain is not working todya
[10:22:46] <Gargoyle> ha ha!!!
[10:22:50] <Nodex> ffs
[10:22:54] <remonvv> Oh, then no. EA are idiots.
[10:22:55] <Gargoyle> bit of a difference!
[10:23:08] <Nodex> Sim city on the Snes was amazing
[10:23:15] <Nodex> I used to play that all the time
[10:23:53] <remonvv> It's a very good game I think. It's just...it's EA
[10:24:13] <remonvv> You have to be permanently online to play, you can't log in about 60% of the time because they can't even get a scalable auth server right.
[10:24:19] <remonvv> And it's super expensive to get all content.
[10:24:48] <Nodex> :/
[10:24:58] <Zelest> expensive.. fair enough.. but complaining about being online? how often are you offline?
[10:24:59] <Nodex> they really should sort that DRM out
[10:25:18] <remonvv> Zelest, I'm not complaining about it. That's actually the only part of the shitstorm I don't agree with.
[10:25:25] <Nodex> Zelest : from what I gather... when the servers go down, your city can't make money and you lose
[10:25:27] <Zelest> Derick, btw, something must be b0rked in the php driver :/
[10:25:29] <remonvv> Or at least, don't think is a problem.
[10:25:41] <remonvv> The problem is that IF you want to require online online your servers have to work.
[10:25:44] <Zelest> remonvv, ah
[10:25:44] <remonvv> Right now they don't.
[10:25:46] <remonvv> At all.
[10:25:47] <Nodex> ++
[10:26:12] <remonvv> So you're stuck with a game that doesn't work because it requires you to be online for a DRM check rather than for gameplay.
[10:26:15] <remonvv> And that's messy at best.
[10:26:31] <remonvv> Maxis is amazing.
[10:26:33] <Nodex> and i bet it's already been cracked
[10:26:40] <Nodex> making DRM check redundant
[10:26:46] <remonvv> It's just EA that's the ever present shitstorm waiting to happen
[10:27:09] <remonvv> Probably, which is a shame because Maxis deserves their income.
[10:27:17] <remonvv> And people are willing to pay mind you.
[10:27:21] <remonvv> It's just...they can't.
[10:27:44] <remonvv> It's the movie discussion all over again. Studios release movies here 6 months later and then bitch people pirate them.
[10:27:58] <remonvv> They don't pirate because they're cheap bastards usually, it's because they don't want to wait 6 months for the bloody thing.
[10:28:07] <remonvv> Anyway, I'll get off my soapbox.
[10:28:08] <Nodex> no crack yet :/
[10:28:35] <Nodex> remonvv : HBO are tackling this with the new Game of thrones
[10:28:49] <Nodex> they're releasing it worldwide within 1 week of American release
[10:29:49] <remonvv> Nodex, amen.
[10:30:10] <remonvv> Also first american paid channel that's doing something in EU
[10:30:15] <remonvv> Good for them.
[10:30:33] <Nodex> They used to do it with Lost/24 too
[10:30:38] <Nodex> (fox)
[10:31:02] <remonvv> Yeah but those only because foreign broadcasters wanted to pay huge sums for multi-year licenses
[10:31:07] <remonvv> Anyway, it's progress
[10:31:15] <remonvv> Which makes EAs move that much more baffling.
[10:31:36] <remonvv> EA isn't run by gaming people. I've worked for them and noticed that more than anything.
[10:31:50] <Nodex> :/
[10:32:04] <remonvv> Too much focus on how to get as much money per consumer.
[10:32:25] <Zelest> http://static.fjcdn.com/large/pictures/1e/a2/1ea250_3509882.jpg
[10:32:26] <Zelest> nuff said.
[10:32:29] <remonvv> Ignoring the fact that just making great shit and getting more consumers is as effective, if not more so from a brand reputation point of view
[10:32:45] <remonvv> idd
[10:32:59] <remonvv> Anyway, this is sideline commenting, I'm sure there are a lot of factors involved.
[10:33:13] <remonvv> But in this case there are more succesful altneratives so it's just....weird.
[12:53:18] <rickibalboa> Would there be a way to keep an array inside a document at a fixed size, ie $pop'ing when an element is $push'ed and the array is of a certain size without any application logic, just in queries?
[12:53:46] <Nodex> no
[12:54:21] <Nodex> you could probably add to the array but you would need a counter to add against
[12:55:01] <rickibalboa> Hmm.. Maybe $pop if the counter is above x, after the push?
[12:56:27] <Nodex> there is no "if" in the query
[12:56:56] <Nodex> you can only do a conditional update where foo :{ $lte : N }
[12:56:59] <rickibalboa> I mean, {$gt: {counter: x}}, {$pop}
[12:57:02] <rickibalboa> etc
[12:57:18] <Nodex> in 2 queries yes
[12:57:33] <rickibalboa> Hmm okay
[12:57:37] <Nodex> first to try the pop second to push
[14:33:42] <richwol> Does anyone know if it's possible to use the aggregation framework to perform a group on a subdocument (not grouping documents together)
[14:38:58] <fishfish> hi everyone! does anyone know where does mongo store its log files by default while in verbose mode?
[14:44:56] <knarr> hey
[14:49:55] <alex88> hello guys, i'm new to mongodb, actually I've got how to find with a simple filter, suppose that I've an element like { metrics: [["key", 123],[...]] }
[14:50:01] <alex88> how can I get a list of "key" values?
[14:51:10] <wereHamster> get the metrics array, extract the keys
[14:51:29] <wereHamster> like doc.metrics.map(function(x){ return x[0] });
[14:52:39] <alex88> wereHamster: ok thank you very much for the tip ;)
[14:55:08] <alex88> also, is there that let me easily let manage the db contents?
[14:55:16] <alex88> *something that
[14:55:22] <alex88> like phpmyadmin for mongodb
[14:57:01] <Derick> ghengis
[14:57:07] <Derick> or rockmongo
[14:57:32] <Derick> http://rockmongo.com/
[14:58:35] <alex88> thanks Derick
[14:59:01] <alex88> one last question, I've actually var metrics = collection.find({}, { metrics: 1, internalHostname: 1, collection_timestamp: 1 }).toArray(function(err, data) { ... }
[14:59:03] <alex88> and it works fine
[14:59:44] <alex88> if I do var singleMetric = collection.findOne({}, { metrics: 1, internalHostname: 1, collection_timestamp: 1 });
[14:59:58] <alex88> I get this http://pastie.org/pastes/6421125/text
[15:00:14] <alex88> findOne isn't the same but just returns a single document?
[15:12:20] <alex88> Derick: I've installed rockmongo
[15:12:25] <alex88> but it says auth failed
[15:12:36] <alex88> I've then created an admin user using
[15:12:41] <Derick> i got that too
[15:12:47] <Derick> but I don't even run with auth
[15:12:54] <Derick> I just put in admin/admin and it worked :)
[15:12:57] <alex88> use admin; db.addUser("root","root");
[15:13:03] <alex88> and it says still auth failed
[15:13:06] <Derick> hmm
[15:13:13] <alex88> oh :) admin/admin
[15:13:25] <Derick> to be fair, I don't get why...
[15:13:45] <alex88> maybe since I haven't set the db to admin
[15:13:48] <alex88> why knows :)
[15:13:52] <Derick> there is a config.php where you can turn off auth
[15:14:49] <Derick> $MONGO["servers"][$i]["mongo_auth"] = false;//enable mongo authentication?
[15:14:49] <Derick> $MONGO["servers"][$i]["control_auth"] = false;//enable control users, works only if mongo_auth=false
[15:15:22] <alex88> oh thanks, just did and it worked
[15:15:23] <alex88> thanks!
[15:15:26] <alex88> about the findOne question?
[15:16:10] <Derick> I don't see how you go from yoru query on the shell to an exception...
[15:17:03] <alex88> just calling findOne
[15:19:01] <Derick> your path says "node_modules" .. and it's in server.js
[15:19:05] <Derick> i don't know that file
[15:19:32] <alex88> it's the mongo client library
[15:19:36] <alex88> maybe an update fill fix :)
[15:20:48] <Derick> hmm, odd
[15:20:54] <Derick> i'll ask the dev to drop in
[15:21:46] <Derick> oh wait, maybe there is no findOne?
[15:22:58] <alex88> Derick: nope? http://docs.mongodb.org/manual/reference/method/db.collection.findOne/#db.collection.findOne isn't this one?
[15:23:27] <Derick> hmm
[15:23:32] <Derick> I'm at a loss :-)
[15:24:28] <alex88> well, limit(1) did the trick ;)
[15:24:32] <Derick> alex88: you need to pass in a callback
[15:25:07] <alex88> Derick: inside findOne? you sure?
[15:25:36] <Derick> yes, you referenced the *shell* docs, which are also in JS , but not the same as node
[15:26:05] <wereHamster> alex88: how are you calling findOne()? Pastebin your actual code
[15:26:54] <alex88> wereHamster: http://pastie.org/6421448
[15:27:08] <Derick> alex88: you need to refer to: http://mongodb.github.com/node-mongodb-native/api-generated/collection.html#findone
[15:27:32] <alex88> Derick: oh!
[15:28:07] <Derick> everything is a callback in Node...
[15:29:00] <alex88> Derick: correct, that works fine! thanks for pointing that out!
[15:29:15] <alex88> forgot I had to get into the node driver
[15:35:17] <fommil> hi all - if I use stdout for mongodump, is it just the BSON that is piped? is the JSON metadata simply ignored?
[15:43:56] <Nodex> anyone know if foo == bar?
[15:44:17] <deepy> From what I know, foo and bar are two separate things and therefore not equal
[15:44:41] <Nodex> but what if they're equal
[16:09:28] <jiffe98> what is the best way to resolve config servers differing?
[16:18:38] <nonent> i've been using the $inc operator to do realtime statistics for quite a while with mongo. we're pushing a lot of io, and i'm curious if a) every individual $inc gets written to journal, and likewise if each $inc has to be propagated individually over oplog replication.
[16:20:07] <nonent> i'm thinking about locally caching the stats in app-space instead of inc'ing each individually, and wondering if it's worth the effort (and loss of true realtime), or if the way mongo works at a deep level means i won't actually see efficiency gained
[16:36:33] <jiffe98> I removed the content on one of the config servers it was complaining about and restarted it and it rebuilt but I'm still getting complaints that it differs
[16:42:23] <kali> jiffe98: config server do not rebuild, you need to sync it yourself
[16:44:03] <lethjakman> hey, does anyone have a good resource on learning how to query and insert mongo?
[16:44:11] <kali> jiffe98: http://docs.mongodb.org/manual/tutorial/manage-sharded-cluster-config-server/#sharding-config-server-replace
[16:53:33] <bmcgee> hey guys, are any of you familiar with a bitemporal data model? Better still, implemented one with mongo? (I know it's a longshot)
[17:05:12] <jiffe98> kali: good call
[17:19:26] <bmcgee> hey guys, having trouble devising an aggregation. Think i'm most of the way: https://gist.github.com/brianmcgee/5118104
[17:22:20] <Derick> _id : { a: $key, b: $endValid } ← like that? it would group them together
[17:22:45] <bmcgee> what sort order would endValid be? can i specify it?
[17:23:17] <Derick> you can always sort late
[17:23:23] <Derick> on _id.b
[17:23:29] <bmcgee> true
[17:29:35] <JakePee> what are the differences between using a boolean vs an integer in relation to indexes and querying
[17:38:58] <bmcgee> Derick: I've elaborated a bit on my problem in the gist: https://gist.github.com/brianmcgee/5118104 taking into account your suggestion. Am i using $first correctly?
[17:41:00] <bmcgee> Derick: don't think i'm using first correctly, i don't want to pick out values, I want to grab the first entry for each grouping
[19:08:43] <bmcgee> when grouping is it possible to specify the first instance of the grouping for each _id
[19:09:05] <bmcgee> or perhaps filter it after the grouping has occurred
[19:11:28] <bmcgee> i've looked at first but i don't want to extract the first value of a field, i want to extract the first document for the grouping
[19:11:36] <bmcgee> *$first in $group
[20:55:30] <templaedhel> Hello, I have a collection with documents that looks like this https://gist.github.com/anonymous/16e94e3cad3c0c111ace and I want to do a query to find all the documents that "cover" a point. Aka a point exists within the bounds. What would the best practice be for something like that?
[21:11:32] <nDuff> templaedhel: http://docs.mongodb.org/manual/core/geospatial-indexes/
[23:36:19] <bobinator60> what's a good ODM for python + mongo?
[23:37:11] <bobinator60> micromongo requires all models to be in their own collection, and mongoengine is just way too big
[23:48:21] <hahuang65> what happens when I mongoimport an object with an ID that already exists?
[23:58:08] <TkTech> hahuang65: It will be skipped
[23:59:39] <hahuang65> TkTech: warnings or anything?
[23:59:53] <TkTech> Can't recall, haven't done so in a long time.