PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Sunday the 15th of June, 2014

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[01:04:55] <MatheusOl> asturel: yes. Just use a 64bit machine
[04:50:51] <fisch> Would anyone mind giving a few minutes of their time? I'd appreciate some help learning how to connect to a mongodb via php
[04:52:15] <fisch> object(MongoClient)#1 (4) { ["connected"]=&gt; bool(true) ["status"]=&gt; NULL ["server":protected]=&gt; NULL ["persistent":protected]=&gt; NULL } is the error I am receiving when I var_dump the MongoClient class
[04:52:45] <joannac> um, okay?
[04:52:58] <joannac> I think that says connected => true
[04:53:47] <fisch> I'm wondering if I missed something when I setup the database, server:protected => null ?
[04:56:46] <joannac> old version of the driver?
[04:57:07] <joannac> how did you create the MongoClient option?
[04:58:29] <fisch> Here is my basic setup, so just as a test I'm dumping a few variables to check their output: https://gist.github.com/Aaronfischer/d3b99a8c7dc404aa8075 and here are the results: http://gitcommit-m.com/show.php
[05:01:28] <fisch> I have a collection titled commitcol and I know there is data.... ha! exhaustion is a funny thing. I was setting the database name instead of the collection name when I was doing my $docs output
[05:02:17] <fisch> Just switched it to commitcol and it is now outputting the correct data. Whelp, I guess all it took was me to ask.
[05:03:10] <fisch> @joannac thanks for the eyes!
[05:03:39] <joannac> no prob
[05:03:43] <joannac> i didn't do much
[05:04:37] <fisch> Got me to re-look at all of my setup and make sure I wasn't missing something stupid, which of course i was. :) so thanks for that!
[05:04:47] <fisch> Have a good night!
[05:04:57] <joannac> you too :)
[07:01:56] <lxsameer> hi guys, how can i make to field unique together ?
[09:10:23] <Tulsene> hello
[09:11:28] <Tulsene> I would like to know why I can't run my mongod daemon (with service mongod start) after I configure my reclica set plz
[09:12:03] <Tulsene> because my replica set work when I launch it with mongod --port 27017 --dbpath /var/lib/mongodb/ --replSet rs0
[09:12:43] <Tulsene> I configure my /etc/mongodb.conf with replSet = rs0
[09:13:13] <Tulsene> but still not working when I would like to start with service mongod start
[09:13:44] <Tulsene> if anyone have an answer plz
[09:18:17] <joannac> what's the error when you start as a service?
[09:22:05] <Tulsene> service mongod start * Starting database mongod [fail]
[09:22:46] <Tulsene> and nothing in /var/log/mongodb/mongod.log
[09:25:46] <shoshy> Hey, i'm new to mongo. I got 2 collections. One named "items" and the other "groups" , groups has an array property that should hold items and a group id. Items has a property id that looks like: "<group_id>_<item_id>". I want to "run" over items and get the group id from it (substr) and put the items in the specific group array. Do i must use mapreduce for this?
[09:37:08] <shoshy> i was able to achieve this using map reduce with only a mapper and a reducer... (i used mongohub)
[09:54:26] <lxsameer> is it possible to create an index for a embedded document which check for existance of exact same values in an other document ?
[10:43:35] <lxsameer> how can i execute a mass query, i mean i want to check for existence of a list of embeded documents
[10:52:41] <Tulsene> lxsameer : that's what you search ? db.collectionName.find({ indexName : "indexValue"}, {multi : true})
[10:53:44] <kali> multi on a find ? no.
[10:55:46] <lxsameer> Tulsene: i think you misunderstood my buddy, I want to save multiple embedded documents to a db, and I want to check if each of them already exists in an other document
[10:56:10] <kali> lxsameer: you can put a unique index on the subdocument
[10:56:34] <lxsameer> kali: i see, let me ask my question this way
[10:57:26] <lxsameer> kali: Tulsene I have A document which embeds many B document, when i want to save multiple B docs , I want to check if each B exists in C or not, C is a standalone document
[10:58:09] <Tulsene> lxsameer ok, sorry for the bad answer
[10:58:31] <lxsameer> Tulsene: np buddy
[11:05:13] <kali> lxsameer: i'm not sure i fully understand what you're after, but it doubt you'll find something off the shelf
[11:07:06] <lxsameer> kali: i'm so confused right now, can i explain to you my current situation so maybe you can help me?
[11:32:28] <kali> lxsameer: your descriptions so far are confused too. show an example of what you're trying to do, what you get and what you expect (use gist or pastebin or whatver)
[12:36:01] <the_drow> Hi, is there a way to log new records insertion into syslog?
[13:23:24] <inad922> Is there a startswith like query for string fields in mongodb
[13:28:33] <joannac> regex queries?
[13:40:27] <mylord> how can i update only the fields in the update arg? db.events.findAndModify({query:{name:"gym1"}, update:{name:"t1"}});
[13:40:32] <mylord> it’s replacing the entire document
[13:44:33] <mylord> nvm, found it: db.events.update({name:"gym1"}, {$set:{name:"t1"}});
[13:47:38] <kali> mylord: look for $set
[13:48:08] <kali> ho, you foud it. nevermind
[14:33:40] <asturel> can i break the db.repairDatabase(); operation? w/o data loss?
[16:12:54] <YuviPanda> hello there
[16:13:00] <YuviPanda> is having a large number of databases in mongodb bad?
[16:13:20] <YuviPanda> I'm setting up a shared user cluster at Wikimedia with Mongo, and am giving every user an empty database with full rights on it to start with
[16:13:29] <YuviPanda> however mongo seems to become really slow as more databases are added to it
[16:15:37] <YuviPanda> wtf, I ran out of space just creating new databases?!
[16:15:43] <YuviPanda> does mongo pre-allocate database space or something?
[16:16:07] <Shapeshifter> Hi. I'm new to this, and I'm having an odd but simple problem. I have documents in my db like { "_id" : ObjectId("539dc4e82d0e6505b792064d"), "methodCount" : { "nom" : 1 } } - and these show up if I do a simple db.vertex_data.find() or even db.vertex_data.find({methodCount:{ nom: 1}} ), but if I try db.vertex_data.find({methodCount:{ nom: { $gt: 0}}} ), nothing shows up. I want those documents with nom > 0...
[16:25:55] <kali> YuviPanda: yes. mongodb preallocates space
[16:26:03] <YuviPanda> hmm, no way to turn it off?
[16:26:14] <YuviPanda> or is there some way I can just create user accounts, and let them create databases if they want?
[16:26:21] <YuviPanda> without giving them access to *all* databases?
[16:27:51] <kali> YuviPanda: you can disable it, but it has a performance cost. you can also use --smallfiles (it preallocates less space). all this is unfit for production http://docs.mongodb.org/manual/faq/storage/
[16:28:32] <YuviPanda> kali: right. in that case I guess I can't really setup mongodb for this use case :(
[16:30:00] <Shapeshifter> I'm really stumped. http://lpaste.net/4529587701384478720
[16:30:21] <Shapeshifter> why doesn't the query at the bottom return any documents?
[16:30:46] <kali> Shapeshifter: db.vertex_data.find({'mcc.mcc': 1 } } ).pretty()
[16:31:02] <YuviPanda> kali: and the 'just create an user account without databases' part isn't doable as well, with the restriction that the users can only create new databases and not access existing ones?
[16:31:03] <kali> you were matching the entire subdocument
[16:31:13] <YuviPanda> I read 'user previlages' and it didn't seem to offer anything
[16:31:14] <YuviPanda> (am running 2.4)
[16:31:17] <kali> YuviPanda: i have no idea about that, i've never used auth
[16:31:23] <YuviPanda> hmm, ok
[16:31:24] <Shapeshifter> kali: ohh, so that's how it works... >.>
[16:33:00] <YuviPanda> kali: thanks for the help! :( :)
[19:07:38] <niteshkp> join #python
[21:31:41] <Tulsene> hello /hello again, after some research I posted http://stackoverflow.com/questions/24228971/service-mongod-start-fail-with-replica-set with more explanation of my problem with the mongod daemon