PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Friday the 2nd of November, 2012

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[00:04:23] <chronidd> I have a composite _id field (i.e. my documents look like {"_id":{"foo":1, "bar"2}, "value":{"v1":1, "v2":2}}, and in my aggregations, I can't seem to group by a sub-component of my _id, just the entire thing. Anybody know if that's supposed to work?
[00:06:01] <chronidd> i.e. { $group : { _id : "$_id.foo" , v : {$sum: "$value.v1" } } produces null for the group's key. BUT if I just specify "$_id" in the groups id, it includes the entire id as the id of the group.
[00:10:50] <chronidd> Just found out that if I add a $project step before my group, I can pull the items I want out of the composite id, so that's an okay workaround for now, I just wonder why I can't include subfields of the id in my aggregation.
[00:30:54] <opus_> http://stackoverflow.com/questions/13187486/mongoose-nested-document-update-failing Hey guys I'm having this problem
[01:03:20] <chronidd> For those following along at home, found the bug that was tripping me up -- https://jira.mongodb.org/browse/SERVER-7491
[01:06:10] <hdm> chronidd: thanks!
[03:18:01] <mariooo> hi there. working on a quick URL shortener app to learn more about mongodb
[03:18:21] <mariooo> kinda stuck at generating a unique base62 'code' for a shortened URL
[03:18:45] <mariooo> kinda stuck conceptually in SQL land, where I'd just id.base62_encode
[03:19:09] <mariooo> but mongo's document IDs are not numeric, and incremental index numbers don't seem to be encouraged, so unsure what the go would be here...?
[03:20:15] <mariooo> a solution is to just have a separate function that brute forces a unique code based on random numbers, but was wondering if mongodb had something elegant built that would be cleaner
[03:36:34] <crudson> mariooo: document IDs can be whatever you want, but even so you could use any other field. Performing atomic number incrementing (ala SQL sequence) is simple in mongodb and is explained in the core docs. I'd also suggest base 36 as upper and lower can sometimes be hard to determine between certain characters.
[03:39:25] <mariooo> crudson: ok thanks
[03:39:52] <mariooo> crudson: going with base62 for the ^26 extra possibilities
[03:43:11] <crudson> mariooo: are you imposing limits on the id or the length of the shortened url?
[03:45:08] <mariooo> crudson: not imposing a limit no, have just settled with generating a base62 encoded random large integer as the default code
[03:45:20] <mariooo> crudson: most seem to turn out to be 5 chars
[03:45:40] <mariooo> crudson: I figure that gives me just shy of a billion combinations, plenty fine for a little exercise =)
[03:51:14] <crudson> mariooo: you'd have by definition ~2billion on a 32bit arch, 2^63 - 1 on 64bit before mongo starts doing double conversions
[05:29:47] <reza> hi i'm learning more about mongo but was wondering why my brand new empty db has about 200mb allocated
[05:30:10] <reza> http://timwhitlock.info/blog/2012/09/mongodb-fail-databases-reserve-disk-space/
[05:30:24] <reza> i saw this but i'm just wondering why it is reserving that much space
[05:56:09] <crudson> reza: because of file preallocation.
[05:56:47] <crudson> 64M+128M + namespace file = ~200M
[05:57:23] <reza> is that related to leaving empty space so documents can grow?
[05:57:42] <reza> and not having to change indexes?
[05:57:42] <crudson> and having a new file ready to go if you fill the current one up
[05:58:54] <reza> so that article i linked to ... he was creating multiple db instances and that's why he ran out of space?
[05:58:57] <reza> right?
[05:59:30] <crudson> I didn't read it sorry - bit busy :)
[05:59:44] <reza> no worries
[05:59:46] <reza> thx for the reply
[07:28:20] <fleetfox> Hey guys. Can i sort buy expression?
[07:29:39] <fleetfox> by*
[07:30:25] <ron> how do you mean?
[07:30:32] <crudson> https://jira.mongodb.org/browse/SERVER-153
[07:31:12] <crudson> fleetfox: so no, but it's on the radar. vote for and watch that issue.
[07:31:22] <fleetfox> meh
[07:31:36] <crudson> (if that's what you meant)
[07:31:56] <fleetfox> .sort({'somejavascript': 1})
[07:31:57] <fleetfox> ?
[07:32:26] <fleetfox> .sort({'A - B': 1})
[07:32:59] <crudson> fleetfox: no go, sorry
[07:33:26] <fleetfox> ok. so no workarounds either?
[07:33:37] <fleetfox> besides resaving all docs
[07:34:20] <crudson> fleetfox: right, have a computed sort field that does it, or...with aggregation you can calculate a new field in the pipeline then use that to sort
[07:35:19] <fleetfox> i honestly want to punch i the face one whoo choose mongo for this project
[07:35:44] <crudson> fleetfox: if it's a relatively simple mathematical expression you can do it with aggregation: http://docs.mongodb.org/manual/reference/aggregation/
[07:36:31] <fleetfox> aggregate value, then sort?
[07:36:39] <fleetfox> ok. thanks
[07:36:49] <crudson> fleetfox: so first $project a new field that is the result of your expression, then $sort on that new field
[07:36:59] <fleetfox> yeah got it. thanks
[07:37:02] <crudson> fleetfox: but as for arbitrary javascript, then no
[08:16:39] <Guest88699> Hi Has anyone here used morphia to access mongodb?
[08:17:57] <Guest88699> My question is that if I use @Embedded to make a List of Child Java Objects, then what is morphia's default fetching behavior. when I get the parent object will everything embedded also get loaded? or is this some sort of a lazy load?
[08:18:19] <Gargoyle> Morning all!
[08:21:13] <crudson> evening
[08:34:38] <Gargoyle> Odd. I'm getting a non utf error string when trying to write data… but the data is coming from mongo! o_O
[08:37:50] <[AD]Turbo> hola
[08:39:33] <Gargoyle> hi
[08:53:10] <Gargoyle> I somehow seem to have gotten a lot of non UTF-8 chars into my db! :/
[08:55:43] <Gargoyle> This can't be right! most of these are just apostrophies! "St Paul???s"
[09:00:57] <NodeX> my apostrophe's get escaped
[09:01:58] <kali> Gargoyle: well, there are apostrophes and apostrophes
[09:02:09] <Gargoyle> NodeX: This is data coming from mongo, I am doing a mb_strtolower() and trying to put it back (with $set) and getting non utf-8 errors. If it's non utf-8 how the hell did I get it in there in the first place! :S
[09:03:06] <Gargoyle> According to a bit of checking.. .it's all ASCII!
[09:03:08] <kali> Gargoyle: the ascii character is a quote, not an apostrophe, so many people will use the more accurate unicode characters
[09:05:20] <ron> `'
[09:07:13] <Gargoyle> no ron: Thats a backtick and a quote. ASCII = `'", UTF-8 = “ ” ‘ ’
[09:07:26] <NodeX> Gargoyle : I use mb_convert_encoding($item,'UTF-8','auto');
[09:07:59] <ron> Gargoyle: I don't care. :)
[09:08:35] <Gargoyle> I just passed them through iconv('ASCII', 'UTF-8//IGNORE//TRANSLIT', $searchname), and afterwards, mb_detect_encoding() thought even more of them were ASCII!
[09:12:06] <Gargoyle> Thanks NodeX, That seems to be working even though mb_detect_encoding tells me its ASCII
[09:12:30] <Gargoyle> Oh and.. Processed 179160 of 176908 (Skipped: 0).
[09:13:22] <NodeX> lmao
[09:13:58] <NodeX> Gargoyle : I add that code into my wrapper and clean everything that goes into the DB - else I found sometimes I had problems
[09:18:09] <Gargoyle> NodeX: Seems to be an issue with converting them to lower case!
[09:18:50] <Gargoyle> mb_strtolower(mb_convert_encoding($doc['name'],'UTF-8','auto')) = not-utf-8 exception from mongo
[09:19:24] <Gargoyle> mb_convert_encoding(mb_strtolower($doc['name']),'UTF-8','auto') = Mashed £ signs!
[09:25:59] <NodeX> Gargoyle : works fine for me
[09:26:29] <Gargoyle> NodeX: Which way round?
[09:27:37] <NodeX> I dont do strtolower so I dont know
[09:28:09] <NodeX> are you usre that your £ signs are correect to begin with?
[09:28:25] <Gargoyle> Gents Haircut £10.00 : gents haircut ?10.00
[09:28:29] <NodeX> sometimes they have an &acirc; (circumflex)
[09:28:43] <Gargoyle> left = original title, right = attempted lowercase
[09:28:52] <NodeX> 1 sec I'll try somehting
[09:30:14] <Gargoyle> OK. It's not the mb_convert_encoding.
[09:30:26] <Gargoyle> It's the strtolower / mb_strtolower
[09:32:03] <NodeX> it doesn't happen to me
[09:32:34] <NodeX> but I dont call it inside the function (not that it should make a difference)
[09:32:54] <Gargoyle> Right. Final combo that seems to have worked… mb_strtolower(mb_convert_encoding($doc['name'],'UTF-8','auto'), 'UTF-8');
[09:34:10] <NodeX> weird
[09:34:30] <ron> yes, that is weird. normally php is very consistent.
[09:34:38] <Gargoyle> rofl!
[09:35:09] <kali> lg:)
[09:35:10] <kali> :)
[09:35:46] <NodeX> ron : did you want to ask me about that domain stuff or were you trolling yesterday?
[09:36:05] <NodeX> coz you asked me if you could ask me then didn't say anythign else lol
[09:36:26] <ron> NodeX: no, I really did. I did a little more research. didn't want to disturb you late at night.
[09:37:01] <ron> NodeX: if you won't be busy, I may bug you about it in a few hours.
[09:37:27] <NodeX> bug me whenver you like, if i have time I'll answer ;)
[09:37:56] <ron> \o/
[09:38:22] <NodeX> slightly off topic but does anyone know a deamon that will accept any stream I throw at it, check some authentication and pass onto another service
[09:38:28] <NodeX> a little like proxy passing
[09:39:05] <Gargoyle> NodeX: Isn't that what queuing systems are all about?
[09:39:23] <NodeX> no I mean a tcp stream
[09:39:29] <NodeX> in my case rtmp
[09:39:50] <ron> rtmp ftw!
[09:39:51] <NodeX> tcp/udp
[09:40:31] <NodeX> basically a firewall but with username/password authentication I suppose is the correct terminology
[09:40:58] <NodeX> I really don't want to have to build my own :/
[09:41:28] <Gargoyle> NodeX: Can't you get proxy servers that require authentication?
[09:41:39] <ron> haproxy!
[09:42:24] <Gargoyle> On OSX under the network tab, just about every proxy option has a checkbox for "Proxy server requires auth"
[09:43:04] <NodeX> good point, I'll see if haproxy supports rtmp
[09:48:55] <NodeX> ok, that's not going to work, looks like i'll have to write one in node and redis :/
[09:53:12] <Gargoyle> NodeX: Could you tunnel rtmp through http and use a http-only proxy?
[09:56:07] <NodeX> I tried and it wont go through http because of buffers
[09:57:51] <Gargoyle> NodeX: http://www.live555.com/proxyServer/ ??
[10:06:06] <NodeX> could work, thanks Gargoyle
[10:06:11] <NodeX> I'll try it out
[10:34:55] <Gargoyle> Woo Hoo! new TV arriving soon! :D
[11:29:46] <NodeX> what TV Gargoyle ?
[11:30:00] <NodeX> I just got a new LED Samsung - pretty sweet
[11:36:33] <Gargoyle> NodeX: snap!
[11:36:47] <Gargoyle> UE46ES8000 !
[11:37:03] <Gargoyle> It's just connecting to the interwebs and downloading an update!
[11:39:00] <NodeX> I got the 43" version
[11:39:08] <NodeX> or 41, I forget
[11:41:26] <Gargoyle> Was A bit expensive, but my previous samsung has done 10 years hard time - so I don't really mind! :)
[11:42:38] <mamalujo> hi! Are there any instructions, or pitfalls you might know of, in running mongo on top of a distributed filesystem?
[11:44:15] <Derick> mamalujo: what is the underlaying thought about doing that?
[11:48:17] <mamalujo> Deric, rather than dedicating storage resources for mongo machines, and fiddling w sharding and replication in the mongo layer, and since we already have a cluster (w moosefs) running, we though to use it, w each mongo server storing in some directories in the distributed fs.
[11:48:39] <Derick> mongodb is mostly limited by memory, so distributing the filesystem doesn't help really
[11:50:04] <mamalujo> Derick: ah, so for performance reasons, we'd still need to shard etc. I see.
[11:51:16] <Derick> yup
[11:52:28] <NodeX> Gargoyle : mine was on offer for £325 - (£150 off)
[11:54:58] <mamalujo> Derick: a related q then, if you'd indulge me - provided we do shard the dataset on the mongo machines, we could still alleviate the need for replication if the storage layer were already on a replicating dfs, no?
[11:55:53] <Derick> mamalujo: I would leave the replication to mongodb. Having each of the replica nodes use the same files seems like a receipe to disaster as nothing would be locked on the FS level causing lots of corruption
[11:58:28] <mamalujo> I thought, w separate dirs there for each machine, each buffering a part of the data, hopefully that wouldn't include accessing the same files, but anyhow, y, I see your recommendation is still - do it in mongo; which is sufficient response, since we were mostly wondering about the recommended practices.
[12:00:30] <dingens> Is there a limitation for the aggregation framework's ability to match? My example collection has documents where the _id field is a dictionary (e.g., _id : { key: <somevalue>, bucket: <some-othervalue> }). When collection.aggregate is called with { $match: { _id : { key: <somevalue>, bucket: <some-othervalue> } } } no result is returned although documents with these values for _id are in the database. Is this some kind of general l
[12:00:30] <dingens> that I should have seen in the documentation?
[15:29:17] <Pego> Hello
[15:31:50] <Pego> i have an issue with lock, if anyone can help it would be great :) : i use mongodb 2.0.6 when i lock a secondary with { fsync: 1, lock: true } it's getting stuck and even login after that. the primary is ok. but the mongos is stuck/slow. any idea please ?
[17:10:05] <denom> Hey all I'm using mongoose (node.js) to connect to mongodb and I'm noticing that 'open' event is never being fired on my connection. How can I debug this?
[17:16:43] <tystr> is comparing optime of members in a replica set a good way to monitor the status of the replication?
[17:16:56] <tystr> e.g. monitoring how far behind a secondary may be?
[17:20:15] <kali> tystr: yep
[17:31:14] <tystr> kk that's what I though, thanks for confirming kali :)
[17:33:25] <mrgreenfur> I'm finding some weirdo behavior with mongoid; can someone double check my thought process please?
[17:35:44] <hdm> mrgreenfur: sure, just say it :)
[17:36:01] <mrgreenfur> hdm: thanks much. I'm trying to use find_or_create_by with a bunch of params
[17:36:21] <mrgreenfur> and it seems to work in the rails console, but the objects aren't actually being created in the db
[17:36:24] <hdm> does that use an upsert internally?
[17:36:28] <mrgreenfur> and the objects seem to be .valid?
[17:36:33] <hdm> it could be failing on save
[17:36:35] <mrgreenfur> upsert?
[17:36:40] <hdm> try appending a !
[17:37:01] <hdm> mongo has a much better way to do that using update with the upsert flag
[17:37:25] <hdm> which is basically a find clause followed by commands to update, and you can use things like $set or $inc or $push
[17:38:06] <hdm> my guess is your save() fails for some reason though in the create, check the return value or add a !, but consider using an upsert instead
[17:39:08] <mrgreenfur> hdm: interesting. Where do I put the ! ? Foo.find_or_create_by(bar:=>…)! returns a syntax error. Is it Foo.find_or_create_by!(params)?
[17:39:43] <mrgreenfur> or should ij ust tack on .upsert?
[17:40:20] <mrgreenfur> adding .upsert returns false
[17:40:22] <mrgreenfur> i think you've found it
[17:41:22] <tystr> hmm seems optimeDate might be better
[17:42:40] <tystr> wtf..how can a secondary's optime timestamp be greater than the primary?
[17:42:52] <tystr> server times must not be synced up i guess
[17:45:49] <mrgreenfur> hdm: found the errors, thank you!!
[17:47:16] <mrgreenfur> hdm: oh never mind. .persisted! and .save! all return true
[17:47:20] <mrgreenfur> but it's still not being saved
[17:47:34] <mrgreenfur> .upsert is also true
[17:51:40] <hdm> odd, sorry
[17:55:07] <tystr> ah, must just be latency
[17:55:19] <tystr> from the primary, the optimes are always smaller on the secondaries
[17:57:16] <mrgreenfur> hdm: I'm using a polymorphic association and I noticed a "_field" attribute, any idea what it does?
[17:57:21] <aheckmann> denom: you can listen to the connections error event. how are you connecting?
[18:02:43] <hdm> mrgreenfur: not sure
[18:28:20] <jaimef> should swappiness=0 be set for mongodb servers? or is it bad given the mmap nature of mongodb?
[19:03:39] <mrgreenfur> Did I miss something dumb? https://github.com/mongoid/mongoid/issues/2520
[19:05:30] <hdm> mrgreenfur: i bet its delayed rejection on the mongo side
[19:05:46] <hdm> you save, the drive says go, but then mongo deletes it because your unique index is violated
[19:06:09] <hdm> you will see ghost inserts like that - they get saved, but then are purged as mongo processes them
[19:06:51] <mrgreenfur> hdm: hem, let me try without the indx
[19:07:25] <mrgreenfur> actually, i think you're right
[19:07:30] <mrgreenfur> testing...
[19:09:12] <mrgreenfur> BINGO
[19:09:16] <mrgreenfur> the award of the day goes to hdm
[19:10:07] <mrgreenfur> hdm: Thank you so much!! Is there any way to debug these?
[19:10:45] <kali> mrgreenfur: keep an eye on mongodb log
[19:10:54] <kali> mrgreenfur: or use safe mode on the writes
[19:11:16] <mrgreenfur> "with(safe: true)." ?
[19:11:59] <kali> mmm if that's the mongoid way, then yes :)
[19:12:41] <mrgreenfur> kali: awesome, thanks
[19:19:00] <hdm> mrgreenfur: yeah, the safe flag
[19:33:35] <mrgreenfur> hdm: thanks again. you've been tremendously helpful!
[19:44:41] <hdm> mrgreenfur: np, good luck, just started to use mongoid recently as well
[19:58:11] <wting> I'm trying to get mongo running on a Debian server following the instructions here: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-debian/
[19:58:26] <wting> I'm unable to start mongo daemon, and no logs are being written to /var/log/
[19:59:00] <Guest56110> What command are you using to run it?
[19:59:59] <wting> sudo /etc/init.d/mongodb restart
[20:00:34] <wting> It just says starting database failed and exits.
[20:00:53] <NodeX> check your logs
[20:01:19] <NodeX> nano `locate mongodb.conf`
[20:01:34] <wting> Where? /var/log is empty
[20:01:38] <Guest56110> If you didn't set up a config file, you need to pass --dbpath parameter when you run it
[20:02:03] <wting> I have one in /etc/mongodb.conf
[20:02:13] <wting> logpath=/var/log/mongodb/mongodb.log
[20:02:52] <NodeX> check /etc/init.d/mongodb
[20:02:55] <doxavore> wting: does /var/log/mongodb/ exist and writeable by your MongoDB user?
[20:03:12] <wting> doxavore: No, I'm creating / chowning now
[20:05:23] <wting> There we go, have log files now. Not sure why mongodb doesn't create directory if missing considering I'm starting/restarting it as root.
[20:06:02] <doxavore> I think I ended up just changing my config to /var/log/mongodb.log because I was tired of forgetting to change that. :)
[20:07:57] <wting> error: [initandlisten] exception in initAndListen std::exception: boost::filesystem::exists: Permission denied: "/home/wting/mongodb", terminating
[20:08:19] <wting> the directory is owned by mongodb:mongodb
[20:08:34] <hdm> /home/wting needs to be mode 755 for it to read it
[20:08:42] <hdm> by default its usually 700
[20:09:13] <hdm> 711 might work too, i forget
[20:09:20] <Ephexeve> Hey guys, question, I am using mongodb with Python, but I wonder, I have a function where the user add a srctype and a link (http://bpaste.net/show/AuCi2Bwq0stDWfpwWfck/) and another function which I am trying to implement which gets the data according to the src type, somthing like "SELECT * from tablename where srctype="hello"), but I wonder how this would be.. find_one(srctype) ?!
[20:10:06] <hdm> db.collection_name.find({ srctype : "hello" })
[20:10:15] <hdm> db.collection_name.find({ srctype : "hello" }).limit(1) for a single record
[20:10:38] <hdm> (not sure how that maps to the python api)
[20:11:15] <Ephexeve> hdm: find_one is the function.. Hmm will try.. a bit confused here.. still used to sql..
[20:15:22] <aranea> Hi there. I have an enhancement proposal for your code, but I'm too lazy to create an account on your JIRA.
[20:16:10] <aranea> in src/mongo/util/version.cpp, line 161, the following call is done: if (boost::filesystem::exists("/sys/devices/system/node/node1")){
[20:16:36] <crudson> O.o
[20:16:43] <ron> you weren't lazy to make the proposal but you're too lazy to create an account on JIRA? seriously?
[20:17:22] <aranea> on my system, /sys/devices/system/node isn't readable for the account under which mongo is running, that leads to a complete failure of mongo
[20:17:23] <NodeX> ron is lazy
[20:17:28] <NodeX> he doesn't even have a job#
[20:17:38] <ron> actually, I do :)
[20:17:41] <Ephexeve> Hmmm, not working: http://bpaste.net/show/zf4qfm2plarHbUJ4LcJg/
[20:17:42] <NodeX> dont take advice from a bum
[20:17:44] <NodeX> :P
[20:17:50] <ron> I was even working most of the day even though it's friday :(
[20:18:03] <ron> NodeX: I got a domain!
[20:18:04] <NodeX> what's friday got to do with anything?
[20:18:06] <aranea> imho it would be better if this case was just treated the same as if /sys/devices/system/node/node1 wasn't there
[20:18:12] <NodeX> ron : cool beans
[20:18:27] <Ephexeve> since the user says when inserting the source type is called "something": "www.google.com" -> if I try to find({srctype:"something"}) doens't work
[20:18:50] <aranea> what do you think about that?
[20:20:21] <crudson> aranea: I'd create a JIRA for it. That's the only way it will be addressed.
[20:21:45] <aranea> crudson: If I'd create an account for each software I find bugs in, that would be /a lot/ of accounts, so I'm trying to avoid that...
[20:22:34] <hdm> Ephexeve: or, you need to see if the key is set
[20:22:40] <crudson> aranea: maybe there needs to be a JIRA for JIRA to use openID
[20:22:54] <Ephexeve> hdm: uh?
[20:22:57] <hdm> find({ $exists : "something" })
[20:23:11] <hdm> i thought you were looking for value, not for the key
[20:23:26] <aranea> crudson: that would actually be great ;)
[20:23:31] <hdm> $exists might be slow, i think there are better ways
[20:24:51] <Ephexeve> hdm: Hmmmm
[20:25:44] <aranea> crudson: I never understood how open source projects like Mongo can use stuff like JIRA
[20:26:06] <aranea> there are also great oss solutions for bugtracking...
[20:26:42] <Ephexeve> hdm: well, I would like to do something like: In SQL: a Column called srctype, and another column called url
[20:27:13] <Ephexeve> so you .. select * from tablename where srcytpe="hello" -> gives me the url..
[20:27:47] <aranea> Isn't there anybody around here willing to file that bug for me?
[20:28:01] <aranea> I'm sure most of you have jira accounts...
[20:28:28] <Ephexeve> aranea: Will do it when I have time
[20:29:20] <hdm> JIRA drives me mad, i love redmine
[20:29:29] <hdm> if you dont like something, you can go change it
[20:30:03] <aranea> Ephexeve: Great! I'll write a small text for you...
[20:30:45] <Ephexeve> aranea: k
[20:41:11] <aranea> Ephexeve: http://dpaste.com/823219/
[20:44:51] <Ephexeve> aranea: No worries, when I finish writting some code I will do that, 30min or so, are you sure this is a bug? What title ?
[20:55:41] <Ephexeve> I really wonder how this would work out
[20:55:58] <aranea> Ephexeve: What about "Mongod fails if it doesn't have read permissions on /sys/devices/system/node/"?
[20:56:36] <Ephexeve> column called srctype, another called url, where when calling the first row of scrtype, gives me the first item in the row of url
[21:07:12] <aranea> Ephexeve: Could you just write an email or a memo when you're done? I've got to go now...
[21:08:22] <aranea> Ephexeve: sent you my mail as pm
[21:09:44] <aranea> and thanks again :)
[21:11:43] <meghan> btw if any of you are planning to come to mongosv (silicon valley conf) today is the last chance for early bird (see mongosv.com)
[21:32:54] <Ephexeve> Anyone?! http://stackoverflow.com/q/13203294/1649067
[22:57:04] <Ephexeve> Anyone knows the error here? http://pastebin.com/a1txk9BL
[23:09:12] <silverfix> hello
[23:11:32] <silverfix> I'm starting with MongoDB. I've got a collection and I'd want to retrieve one item of this collection, do something with it (with python/flask) and then update one of its attribute. The point is: how can I use e.g. findOne for retrieve a different item at once ?
[23:29:09] <crudson> silverfix: not sure I understand the question...
[23:29:42] <crudson> silverfix: how do you specify which document you want to retrieve?
[23:29:55] <Gargoyle> gimme a mongo driver, and I'll segfault it.
[23:30:11] <crudson> lol
[23:30:22] <crudson> I've got a bag of tricks on how to segfault the mongo console
[23:50:06] <denom> aheckmann, I cant reproduce it with a simple test script. It's a problem with my code :/