[04:47:32] <bunbury> joeyjones: : what gui client do you use with mongo ent ?
[04:48:17] <joeyjones> I use standard Mongo but I use Robomongo. It's very simple.
[04:55:32] <guest-mongo-user> Hi - how does this work? Do you ask questions and and since it's logged check it later?
[04:55:43] <guest-mongo-user> Or is anyone on this channel now?
[04:56:17] <Boomtime> hi, ask your question and maybe someone here can help
[04:57:12] <joeyjones> guest-mongo-user: you ask a question and see if someone answers, logging of the channel is outside of the bounds of asking a question
[04:57:55] <Boomtime> (i will only be here another couple of minutes, but there are many people here)
[05:01:33] <guest-mongo-user> I'm running mongod on my local machine with --dbpath set to './data/db', even when I insert data into collections, once I escape the python interactive environment I can't access the data and my log is reporting 0 connections. Any ideas?
[05:02:15] <guest-mongo-user> Developing mac osx, python 2.7.6, using pymongo to try and make connections
[05:05:22] <guest-mongo-user> but my production server will be ubuntu 14.04
[05:17:02] <joeyjones> guest-mongo-user: have you accessed Mongo directly?
[05:20:54] <guest-mongo-user> Running 'mongo' in my directory and 'show collections' gives no results, either.
[05:22:31] <bmillham> Is ./data/db writeable for mongo?
[05:23:25] <guest-mongo-user> I have accessed it through mongo, it was a permissions issue on the directory. Thanks for your help - sorry it was a dumb reason. Why are all of my databases in 'show dbs' listed at 0.078GB regardless of data. Is that standard initialization size?
[05:27:23] <guest-mongo-user> I ran mongod --dbpath ./data/db to start running the database (inside the development directory) and through the mongo interactive shell it's showing all of the databases I've created over the last few weeks when I run 'show dbs'. What's the significance of './data/db'?
[05:28:37] <bmillham> Doing it as ./data will use the data directory in the current directory that you are in.
[05:28:54] <bmillham> So if you are in your home, that's one data directory.
[05:29:13] <bmillham> If you are in Documents, data is a different directory.
[05:29:57] <bmillham> Why are you even using the dbpath switch? You are overriding the default database that mongo will use.
[05:30:27] <guest-mongo-user> The directory I'm in now was created today, but I can view databases that were created earlier, which I thought would've been outside the scope of this session.
[05:30:45] <guest-mongo-user> I was getting this error: ********************************************************************* ERROR: dbpath (/data/db) does not exist. Create this directory or give existing directory in --dbpath. See http://dochub.mongodb.org/core/startingandstoppingmongo ********************************************************************* , terminating
[05:31:03] <guest-mongo-user> so I created the directory and set it via --dbpath
[05:36:02] <bmillham-zzz> I'd suggest permissions on /data/db, but that seems to be an odd place for the database. Maybe remove and re-install mongo. (if you don't care about the data)
[05:36:10] <bmillham-zzz> Off to bed now. Nite all.
[08:32:47] <gnu_d> Hi, would a collection speed up the database ? For instance one collection having the user accounts, and other for game statistics ?
[08:34:56] <Nilium> I think that would really depend on the data and how you're using it
[08:35:50] <quydo> hi, how can I check what mongodb recommend index in collection?
[08:39:09] <gnu_d> Nilium: well, one hand we have a user creation, somebody could start registering a user, but in meantime we got users moving in the game, so the player moves will be written in the database, or that's not good ?
[08:40:23] <Nilium> I think I'd just reference a player's user ID rather than stuff them in the same document
[08:41:24] <Nilium> But then I only ever think about how games like Quake 3 handle networking, which never required a DB, so depends on what you're doing with your documents as usual
[08:42:17] <gnu_d> Nilium: I mean if I have a game play at the moment, for instance 4 players on a map, when I player moves the coordinates will be written in mongo, or I rather use websockets and keep the coordinates in memory for each game ?
[08:43:15] <Nilium> I couldn't say because that's something you'd have to test depending on how you want to do things.
[08:45:20] <gnu_d> Nilium: ok, so mongodb will be used as static data collection, I'll use something else for the dynamic stuff then.
[08:45:59] <Nilium> Depending on how often you're planning on updating a document, it may be fine for dynamic stuffery
[08:47:11] <Nilium> i.e., 60Hz probably won't fly, 1Hz probably would, less than 1Hz I'd guess is perfectly doable.
[08:47:20] <gnu_d> Nilium: come to think of it, it's too much code, because I need to create a document, the ask the db if there is a new document, then send it to all the players in the that map id, then delete the document.
[08:48:21] <Nilium> You'd probably only need to create a document on init, which isn't exactly a lot of code.
[08:49:11] <Nilium> Also, I'm not sure why you'd need to ask the DB if there's a new document.
[08:49:26] <Nilium> I feel like you're over-thinking it more than you should be.
[08:51:33] <gnu_d> Nilium: but I'm not certain if I need to keep the coordinates or not
[08:53:54] <gnu_d> Nilium: maybe this is better: having a document with key: gameplay1234, which has players list, that contains player object, when I receive players movements, I just update the document, and then broadcast all the other players the updated document.
[08:58:54] <Nilium> Again, it depends on what you're doing. Look at your data, see how it's used, what you need, build from there. DB access for any game that isn't turn based just to get players' positions seems unnecessarily circuitous to me, but I don't know what you're trying to do.
[14:50:48] <MongodbUser> Hi there, is anyone from the PHP team around?, I've just installed MongoDB php driver from git and I all I get is "Segmentation Fault"
[14:52:20] <MongodbUser> here is a gdb bt of the core dump http://pastebin.com/idctUjAJ
[16:50:09] <SoulSeeker> somebody here who could help me?
[16:51:28] <SoulSeeker> somebody here who could help me?
[16:52:14] <changerOfSea> SoulSeeker: I have no knowledge of running mongod on windows 8, but maybe if you give more explanation (error message, etc), someone could chime in
[16:52:49] <SoulSeeker> well i am not even able to extact the .zip file
[16:54:25] <SoulSeeker> Error when trying to open the .zip : "Could not find the End of Central Directory Record"
[17:07:13] <davemackintosh> Hey, I have a question about the MongoDB node module. I'm running an aggregated query, it takes between 1 second and 2 seconds on average to run. If I run the query in Robomongo it runs in 0.125 seconds.. Why is there such a big difference?
[17:07:46] <davemackintosh> Plus the NodeJS version returns all rows in the collection whereas the Robomongo query returns the one result I hardedcoded specifically for this query
[17:12:59] <davemackintosh> Okay, forget the second problem. It's a bug in the driver, streaming the cursor result seems to iterate every record available.
[17:13:36] <davemackintosh> Okay, that also seems to be the issue with the speed.
[17:52:54] <topwobble> can mongodb allow for read-only access to only 1 collection?
[18:34:56] <qpls_> is there a reason the find method on the collection object in the 2.0 node driver doesn't accept a projection object??
[18:35:17] <qpls_> or an alternative I can use in the new driver?
[20:37:53] <proteneer> I can pull elements from an array using some pattern like db.graphs.update({"_id": "test_graph"}, {"$pull": {"edges": {"$or": [{"to": "b"}, {"from": "b"}]}}})
[20:38:02] <proteneer> is it possible to pull from a dictionary?
[20:53:17] <kexmex> how does a mongodb cluster run on amazon or azure... are VPSs clustered via OpenVPN or something?
[21:04:38] <proteneer> “As such, field order matters and you cannot specify that MongoDB compare only a subset of the fields in the document to determine whether the document is a duplicate of an existing array element.”