PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Sunday the 26th of August, 2012

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[00:00:53] <vsmatck> Yiq: That error means some other program is binded to port 27017. Try something like netstat -pl |grep 27017
[00:01:11] <vsmatck> Probably what is happening is there is an instance of mongod running already.
[00:01:35] <vsmatck> Maybe try ps ax |grep mongod
[00:12:08] <Yiq> So in python i insert a dict? db.insert( {title : text} )?
[00:27:11] <Yiq> http://hpaste.org/73706 I dont understand what im doing wrong
[00:30:27] <MikeFair_> Yiq: It's complaining about mongo.db.find yes?
[00:31:58] <Yiq> yes
[00:33:18] <MikeFair_> It seems to be saying that find() is not a member of mongo.db
[00:34:05] <Yiq> but the examples uses that
[00:34:48] <MikeFair_> I think DB is a collection of documents
[00:35:03] <MikeFair_> posts = db.posts
[00:35:17] <MikeFair_> >>> db.collection_names()
[00:35:17] <MikeFair_> [u'posts', u'system.indexes']
[00:35:36] <MikeFair_> for post in posts.find():
[00:36:24] <MikeFair_> I might be wrong, but the errors seem to be saying that a "Collection" is not callable (the collection of documents in mongo.db perhaps?)
[00:37:33] <MikeFair_> So I'm just following the rabbit hole of what the error itself is saying
[00:37:50] <MikeFair_> And marrying it up to a little Google on the Mongo API
[00:37:55] <Yiq> i got it, i need to do mongo.db.blogposts.find() for example
[00:38:20] <MikeFair_> I think that's right
[00:38:44] <MikeFair_> At least it's consistent with the 45 seconds I spent examing your code and the API pages ;)
[00:52:51] <MikeFair_> Yiq: Did that work for you?
[00:53:21] <Yiq> i got some more help in #python now it works, ty
[00:55:24] <MikeFair_> Yiq: Was that at least part of the problem?
[00:56:36] <Yiq> y
[00:57:24] <Yiq> anyone is using mongodb on heroku?
[00:57:26] <MikeFair_> cool
[01:04:29] <Yiq> Anyone here is using mongodb on heroku? mongolab vs mongohq?
[01:16:52] <Dreamer3> nope
[03:22:59] <ryanair> I'm trying to merge two documents from two different collections and add the result to a third.
[03:23:11] <ryanair> So for example {'key1':'v1','key2':'v2'} from collection1 and {'key3':'v3','key4':'v4'} from collection2 gives {'key1':'v1','key2':'v2','key3':'v3','key4':'v4'} which is saved in collection3.
[03:23:24] <ryanair> Should I be using map/reduce for this?
[03:23:57] <ryanair> or is there another simpler/faster way?
[04:00:30] <MikeFair_> ryanair: Do you mean to avoid the slow joiner problem where you miss messages?
[04:19:57] <ryanair> MikeFair: I'm not sure what you mean.
[04:20:49] <emocakes> who uses play framework here?
[04:29:18] <ryanair> MikeFair_: I'm not aware of the slow joiner problem. What is that?
[04:32:44] <MikeFair_> ryanair: Sorry wrong channel
[06:20:50] <emocakes> anyone uses play framework here?
[07:52:30] <ron> emocakes: assuming it's mongodb related, just ask.
[07:53:09] <emocakes> just wondering if there is any simple scaffold lying about, I'm trying out mongodb and scala, wanting to learn something new, and its jumping quite a big ship
[07:53:23] <emocakes> i.e: i come from sql and php background :p
[07:54:22] <ron> yup. that's quite a big change.
[08:06:22] <kali> some giant leap indeed :P
[08:29:19] <_johnny> one small step for man, [...]
[08:29:21] <_johnny> :)
[08:44:31] <emocakes> kali: i know
[08:44:38] <emocakes> im like, hold on, im not scripting anymore
[08:44:44] <emocakes> and b, wtf, mongo
[08:45:14] <zishh> hey, i need the mongodb c++ driver for windows (visual studio) - the wiki page http://www.mongodb.org/pages/viewpage.action?pageId=10092800#C%2B%2BTutorial-Windows says "The MongoDB Windows binary packages include a file lib/mongoclient.lib. Include this library in your client project." but there is no binary of the lib
[08:45:34] <emocakes> with mongo is there performance degradation based on how many nested objects you have?
[08:45:36] <emocakes> i.e:
[08:45:53] <emocakes> like 3 levels or 4 levels?
[08:56:13] <zishh> btw: i've also tried to compile it myself but i dont have any experience with scons and the library is over 200mb in size - so i assume it's a debug version
[09:21:02] <zishh> mongodb still cant work with boost filesystem v3?
[13:18:34] <Yiq> With mongodb can i extract and order on descending datetime?
[13:18:40] <Yiq> or i have to do that in python?
[13:32:26] <Yiq> is there a possibility to sort on a field, for example date?
[13:57:07] <Bartzy> Hi
[13:57:18] <Bartzy> Besides cursor timeout - there are no other timeouts for a connection in itself ?
[13:57:52] <Bartzy> For example, I have a long running PHP worker. It creates a MongoCollection object when it starts, and when it gets a job - it calls update() on that MongoCollection object.
[13:57:57] <Bartzy> Can that MongoCollection object time out ?
[13:58:04] <Bartzy> meaning the connection itself will timeout ?
[13:58:15] <Bartzy> And if it can - the drivers handle it internally, or I need to do something ?
[18:58:44] <cakehero> is there an admin UI ya'll would recommend for mongo?
[20:25:22] <jeromegn> hey guys, got a schema design question.
[20:25:53] <jeromegn> I'm building a chat app, I have rooms as a collection in which I embed the various chat room events (messages, leave, join, etc.)
[20:26:41] <jeromegn> It can get pretty big at some point. After x embedded messages, should I just remove them as embedded objects and put them in their own collection ("events") for archive purposes?
[20:26:50] <jeromegn> is that a common schema design?
[20:28:24] <jeromegn> I think this might work: http://cookbook.mongodb.org/patterns/perform-two-phase-commits/
[21:20:18] <ThisGuy> Anyone do PHP Troubleshooting?
[21:21:26] <ThisGuy> Hello?
[21:22:37] <ThisGuy> Anyone do PHP Troubleshooting?
[21:23:54] <fitzagard> ThisGuy: can you describe the problem you are having?
[21:24:13] <ThisGuy> Ok, thank you
[21:24:31] <ThisGuy> I am having a register_global issue
[21:24:54] <ThisGuy> since PHP 5.2 does not like rg turned on
[21:25:10] <ThisGuy> I had to use the $_POST...
[21:25:35] <ThisGuy> When I process it does not product the variable
[21:26:05] <ThisGuy> Its a simple script
[21:26:47] <fitzagard> ThisGuy: Sorry, Is this is mongo issue or a PHP issue?
[21:26:57] <ThisGuy> PHP
[21:27:36] <fitzagard> Are you using a framework of some sort?
[21:27:44] <ThisGuy> Nope
[21:27:57] <ThisGuy> Straight PHP
[21:29:33] <fitzagard> Okay. This is the mongodb irc room so its primarily dedicated to the db side of the house. Unless this is a PHP/MongoDB driver issue
[21:29:49] <ThisGuy> ok thank you
[21:41:26] <ryanair> how in mongodb map/reduce can I emit all keys in each document?
[22:53:24] <jmikola> ryanair: https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Statements/for...in iterates across keys, which you can emit
[23:47:33] <Simkin> hey guys