PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Monday the 30th of July, 2012

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[03:20:58] <duck1123> if I have a key in one of my records named $set, how would I remove it?
[03:28:32] <jarrod> del(record['$set']) ?
[03:28:40] <jarrod> db.collection.save(record)
[03:30:26] <duck1123> odd, when I tried using one of the admin clients, it didn't work
[03:30:36] <duck1123> as soon as I ask, I get it
[03:31:00] <jarrod> ?
[03:31:09] <duck1123> I got it, thanks
[03:31:14] <jarrod> oh what was it
[03:31:32] <duck1123> I don't know. I did it with a normal update
[03:31:42] <jarrod> yea you can use $unset also
[03:31:43] <duck1123> using unset
[03:31:45] <madrigal> db.collection.update({ "_id":"object_id"},{"$set":{"$unset":1}})
[03:32:06] <jarrod> oh i thought it was {$unset: {"$set": 1}}
[03:32:10] <jarrod> but if you got it
[03:32:11] <jarrod> awesome
[03:32:25] <duck1123> it was just a stray key from earlier testing that was causing me problems now
[03:32:32] <jarrod> glad you got it bro
[04:09:51] <SalocinTEN> hi, i have a problem with a 3 shard cluster. i couold add the first and third shards but the second shard keeps saying that it cannot connect.
[04:10:34] <SalocinTEN> i am also using the ports 27107 for all the servers of each shard replicaset.
[04:12:26] <SalocinTEN> "errmsg" : "couldn't connect to new shard mongos connectionpool: connect failed
[04:22:22] <SalocinTEN> thanks i think i have found the issue.
[05:43:27] <circlicious> tell mw how to backup my mongo database
[05:58:32] <thestereobus> hi! I'm having trouble connecting to a replicaset from the ruby driver.
[05:58:54] <thestereobus> I asked this question on Stack Overflow
[05:58:54] <thestereobus> http://stackoverflow.com/questions/11714675/mongo-ruby-driver-cannot-connect-to-replica-set
[05:59:37] <thestereobus> I'd really appreciate any help you might be able to provide
[06:01:14] <adiabatic> it's around midnight on a Sunday/Monday. I'd recommend waiting 10 hours or so.
[06:01:34] <thestereobus> fair enough :) thanks
[06:23:29] <omid8bimo> hello. i have this error when i post some photos on my db after i switched primary masters in replicaSet
[06:23:50] <omid8bimo> ‏‎<h1>MongoGridFSException</h1> <p>Could not store file: E11000 duplicate key error index: bimodb.image.chunks.$files_id_1_n_1 dup key: { : ObjectId('501505c8be98f0ff12000079'), : 1 }</p> 
[06:23:54] <omid8bimo> any ideaS?
[06:27:50] <thestereobus> I figured out my replica set problem... about 12 hours of debugging. Will answer my own SO question
[06:28:33] <omid8bimo> how did u debug?
[06:36:49] <thestereobus> well first I thought it was a YML problem
[06:36:52] <thestereobus> then a parser problem
[06:36:54] <thestereobus> then a mongoid problem
[06:37:03] <thestereobus> until I chased it down to the ruby driver itself
[06:37:24] <thestereobus> then I noticed that setting :require_primary to false worked
[06:37:35] <thestereobus> but only the secondary node was visible
[06:37:48] <thestereobus> so I realized that mongo couldn't see the other node by the name I was providing
[06:38:06] <thestereobus> here's my answer: http://stackoverflow.com/a/11716412/365993
[06:39:39] <thestereobus> most of the 12 hours was upgrading various libraries to the latest
[06:49:08] <Guest76115> hello all..I am a newbie, and I wonder when will the version 2.2.0-rc0 become the production level? since I found some shard operations are quite enhanced in the development version..
[07:53:41] <[AD]Turbo> hi there
[08:48:16] <Dreamer3> s i is a signet supposed to cleanly stop mongo?
[08:48:56] <kali> Dreamer3: depends which one
[08:49:02] <Dreamer3> which one?
[08:49:04] <kali> Dreamer3: i assume you meant signal
[08:49:15] <Dreamer3> SIGINT
[08:49:16] <Dreamer3> i meant to type
[08:49:34] <Dreamer3> https://github.com/remysaissy/mongodb-macosx-prefspane
[08:49:47] <Dreamer3> looking at this new thing, it sends a SIGINT to stop, but for me that still leaves a lock file
[08:49:50] <Dreamer3> which means it can never restart
[08:53:43] <Dreamer3> the log looks like a clean shutdown
[08:53:46] <Dreamer3> but it leaves the lock file
[08:53:49] <Dreamer3> wtf
[08:53:56] <kali> Dreamer3: mine restarts even with the lock file
[08:54:06] <Dreamer3> oh?
[08:54:24] <Dreamer3> hmmm
[08:54:24] <kali> the lock file contains the PID
[08:54:34] <kali> i guess mongo checks if the process is realy alive
[08:56:36] <Dreamer3> ok
[08:56:56] <Dreamer3> so i guess if i move my mongod.conf that maybe this control panel thing will really work
[10:28:06] <hjb_> howdy. I#ve been requested to deploy mongodb on a test machine, but got stucked on the following question now: should i go for v8 or spidermonkey?
[10:31:42] <Gizmo_x> I got error like this: http://pastie.org/4357977 unauthorized using zend framework 2 and doctrine-mongo-db
[10:36:04] <Lujeni> Hello - It's dangerous to launch two mongodump on different collection ? ( shard environment) Thx
[10:42:50] <NodeX> hjb_ : use whatever you like
[10:43:25] <NodeX> I'm pretty sure the default is spidermonkey
[10:48:17] <hjb_> NodeX: great. I feel thought, that i'd not use what i like, but what's more stable ;-)
[10:48:40] <hjb_> NodeX: mongodb website says v8 support is under development, whatever that means
[10:54:46] <hjb_> NodeX: i've found a quite fresh comment in gentoo bugzilla that suggests that upstream mongodb developers think that v8 isn't stable enough yet
[10:55:02] <hjb_> NodeX: i'll stick with spidermonkey for now...
[11:05:26] <NodeX> perhaps you shouldv'e posted your question in a different manner like "Is spidermonkey or v8 more stable" ;)
[11:09:19] <cromeno> Anyone using both Mongo and Mysql in same setup?
[11:09:36] <neil__g> @cromeno yup
[11:09:58] <cromeno> I want to use mongo for storing visitor statistics like clicks, views etc.. and then use mysql for client data.
[11:10:18] <cromeno> the system is for our customers to view statistics on their "campaigns"
[11:10:37] <neil__g> ok
[11:10:52] <cromeno> and the common reference is the "object id", that is the id that every object (banner for example) has
[11:11:12] <cromeno> should I go with this or use mongo all the way, thoughts?
[11:11:57] <neil__g> we have product IDs and we've used that with some success, so the mongo object just has product: <id>
[11:12:01] <cromeno> btw, never used mongo before, but looks great for gathering statistics etc..
[11:12:13] <neil__g> i guess it depends on what queries you would want to do against the mongo data
[11:13:13] <cromeno> For example "Give me all the clicks on this banner(object id) for this client (client id)"
[11:14:12] <cromeno> A client have many objects(banners) and manny campaigns(A campaign have many objects)
[11:15:14] <cromeno> Hard for me to get out of the rdbms thoughs, so I want to use this project to go mongo
[11:17:50] <IAD> cromeno: max document size is 16Mb http://www.mongodb.org/display/DOCS/Documents
[11:26:32] <cromeno> how do you do then if you have for example a list of products that takes more 16mb in space? For example a shopping website.
[11:28:17] <cromeno> hehe, sorry this noob questions, I will go read the docs, time to go mongo I hope
[11:43:39] <NodeX> cromeno : do you mean programatically?
[11:44:35] <cromeno> I got help, collection was the thing :)
[12:19:33] <newbieeeee> how can i do date.timestamp != date.timestamp2 ?
[12:20:00] <newbieeeee> find, sorry
[12:22:02] <NodeX> $gt
[12:22:07] <NodeX> or $lt lol
[12:23:52] <newbieeeee> but it wil think "date.timestamp2" its a word not a refer to a collunm isnt it?
[12:24:18] <NodeX> if its $gt then it's not equal
[12:24:56] <NodeX> are you reffering to a key in the same document?
[12:25:06] <newbieeeee> yep
[12:25:32] <NodeX> you can only do that in map/reduce / aggregation framework (possibly)
[12:26:06] <newbieeeee> i thought it because i done other thing with that but i was onderring if i was doing something wrong...
[12:26:22] <NodeX> you can't reference a document inside a query
[12:27:56] <zakG> I having some problem starting mongodb server
[12:28:31] <NeoNmaNDK> zakG: what OS are you using?
[12:28:43] <zakG> ubuntu
[12:29:09] <NeoNmaNDK> zakG: orh okai, i know there are problems on MacPorts on Mac, i don't know about Ubuntu,
[12:30:35] <zakG> actually when i am issueing the command to start mongodb,it shows that the process is started/running but i coudn't find the process in the system monitor
[12:39:12] <kali> it don't know what the system monitor is, I assume it is some kind of ui wrapping ps. anyway, you should look out mongodb logs
[12:47:23] <zakG> kali,it is.btw there's nothing in the system logs.the process isn't started.
[12:48:30] <NodeX> there will be a log in /var/log/mongodb.log
[13:04:54] <zakG> NodeX,there's some kind of problem with the mongod.lock file.mongo is gets shutdown automatically.
[13:12:39] <NodeX> zakG : delete the lock file
[13:14:34] <zakG> NodeX,are you sure?the manual says not to remove it.
[13:15:02] <kali> zakG: you can look for the PID in it and check if the matching process is running
[13:15:10] <NodeX> ps ax | grep mongo | wc -l
[13:15:20] <NodeX> see how many (more than 1 it's running)
[13:16:09] <zakG> its 1.
[13:16:31] <NodeX> then it's not running, remove the lock file
[13:16:43] <NodeX> I am assuming you had a reboot without shutting mongo down?
[13:17:04] <zakG> might have been the case.
[13:18:50] <NodeX> it's just a stale lock file - it's fine to remove
[13:21:24] <zakG> NodeX,Done.and its running alright now.thanks.
[13:24:45] <NodeX> ;)
[13:25:36] <s0urce> hi
[13:26:57] <s0urce> Is there any way to get a list of values returned by "find"? I mean instead of "...find(...).toArray() -> {'foo':1,'foo':2,'foo':3}" something like this: {1,2,3}
[13:27:25] <logik-bomb> guys, how do I seed a txt file into mongo? I'm getting SyntaxError: missing ; before statement script_mongo.txt:1
[13:27:53] <s0urce> Or in other words, is there function like toFlatArray()? ;)
[13:28:46] <NodeX> logik-bomb ?
[13:31:21] <logik-bomb> NodeX: https://raw.github.com/gist/3cf13896326aa9c32d29/bbd64d9ecfa71b5c78334657773e5a310b9f7e29/gistfile1.txt
[13:31:21] <logik-bomb> is it possible to feed a txt file with that into my mongodb?
[13:31:21] <NodeX> http://www.mongodb.org/display/DOCS/Scripting+the+shell
[13:34:06] <logik-bomb> thanks
[13:37:23] <Bofu2U> For anyone using the Ruby driver: had issues with it setting the max BSON doc limit to 4 MB when the server is 16?
[13:58:31] <hjb_> i've enabled --auth and added an admin user to the admin db
[13:58:44] <hjb_> but now i've got trouble accessing the admin http interface
[13:58:53] <hjb_> it keeps asking for user/password
[14:16:40] <hjb_> noone?
[14:16:58] <hjb_> it's really weird, as i've done exactly what the documentation says ;-)
[14:18:11] <madrigal> hjb_: are you accessing the http interface from localhost
[14:18:28] <hjb_> madrigal: no, from another machine
[14:20:47] <madrigal> hjb_: mongodb docs say If security is configured for a mongod instance, auth is required for a client to access the http interface from another machine
[14:23:28] <hjb_> madrigal: got an explanation: i'm running 2.0.5 and was puzzled by the problem fixed in issue SERVER-2917
[14:23:44] <hjb_> madrigal: thanks anyway
[14:39:42] <zenista> hi i want to update a doc... but instead of replacing or modify existing fields i want to append more data to it... ie. say collection of images: {....}
[14:39:42] <zenista> how to do it
[14:39:42] <zenista> it puts the new image: {} but replaces old data instead of appending to it
[14:40:18] <bjori> zenista: http://www.mongodb.org/display/DOCS/Updating/#Updating-%24push
[14:41:15] <zenista> k thanks buddy let me c
[14:42:06] <devdazed> Hi all, I downloaded the 2.2rc0 to try out the new aggregation framework and i get this "no such cmd: aggregate"
[14:42:11] <devdazed> on all aggregation queries
[14:42:14] <devdazed> even the examples
[14:42:20] <devdazed> not sure what im doing wrong here
[14:42:42] <devdazed> here is the full response: http://pastie.org/4345234
[14:44:01] <NodeX> did you restart your mongo ?
[14:44:26] <NodeX> and is that a shell error or your driver?
[14:44:47] <bjori> devdazed: what does db.serverBuildInfo() tell you?
[14:45:12] <devdazed> it says 2.0.2
[14:45:15] <devdazed> not sure why
[14:45:38] <devdazed> but the shell version says 2.2.0-rc0
[14:46:05] <bjori> devdazed: yes, you are using the mongo command line shell version 2.2.0-rc0, but you are connecting to your old mongod 2.0.2 server
[14:46:23] <devdazed> thats odd, i installed using homebrew.
[14:46:35] <bjori> restart mongodb
[14:49:02] <devdazed> bjori: ok i see the issue here. my launch agents werent updated properly.
[14:50:51] <devdazed> bjori: that seems to have been the issue, thanks!
[14:51:59] <lonnylot> Is there a way to determine the size of a specific object property in a document?
[14:59:20] <NodeX> via the shell?
[14:59:42] <NodeX> not unless you're map/reducing and you count it's length
[15:00:09] <NodeX> if you're trying to count the number of array members for example the common approach is to save the count aswell
[15:03:25] <lonnylot> NodeX: I am recording stats that are broken down by year/day/hour. I am trying to determine how many hrs. I can add stats before there is a problem w/ the size of the document.
[15:03:49] <NodeX> so you mean the whole document as a size?
[15:05:09] <lonnylot> Well we are adding stats as properties to the document. So each yeardayhour will be a different property. I am trying to figure out how many of those can be added to a document before there are problems w/ the document size.
[15:06:29] <NodeX> the document size as a whole has a limit of 16mb currently
[15:06:34] <NodeX> so a lot!
[15:07:06] <lonnylot> Do you know if there are any commands to help figure this out or would it be best to just count the bytes and do the math?
[15:14:13] <NodeX> imo count the bytes
[15:14:34] <NodeX> how big do you expect a document to be?... 16mb is alot
[15:16:40] <lonnylot> I have no idea. I was just asked to figure out the math.
[15:18:17] <kali> lonnylot: why don't you serialize some sample doc and check out the resulting size ?
[15:18:18] <NodeX> if your documents are creeping that high then performance will take a hit as the document goes over the wire
[15:18:36] <NodeX> might be better to rethink the structure to allow for scaling
[15:19:42] <kali> lonnylot: also, be aware that growing documents is not what mongo does faster
[15:20:14] <lonnylot> NodeX , kali : thanks for the warnings - I will definitely take that in to consideration
[15:22:28] <NodeX> good luck ;)
[15:23:55] <soumya> i am trying to run some regression tests to see how my query performs with and without indexes.... everytime i run the query it runs faster bacause of data moved to RAM. how do i run a test where the same query runs consistently
[15:24:06] <soumya> i mean takes same amount of time
[15:25:41] <NodeX> I dont think you can turn off the query cache
[15:25:46] <NodeX> check the docs to be sure
[15:25:52] <kali> soumya: you need to stop mongodb and tell the OS to empty its FS buffers
[15:26:38] <kali> soumya: if you're running linux, you can try this "free && sync && echo 3 > /proc/sys/vm/drop_caches && free"
[15:27:09] <soumya> ok il try that @kali
[15:27:12] <soumya> thanks!
[15:53:04] <revnoah> hello, I'm having trouble with the syntax for a mongoose query using a regular expression on multiple fields. I hope someone can point out what's wrong with the statement: app.User.find().or([{ 'firstName': { $regex: re }}, { 'lastName': { $regex: re }}]).sort('title', 1).exec(function(err, people) { /* do stuff */ });
[15:55:00] <revnoah> I have the regex working well enough with a single field, it's the 'or' clause that's giving me problems.
[16:09:44] <dbler> can someone explain me this?
[16:09:52] <dbler> "You may use sort() to return data in order without an index if the data set to be returned is small"
[16:10:20] <dbler> does it mean that I should NOT use an index if I return little data?
[16:11:27] <W0rmDrink> Hi
[16:11:44] <W0rmDrink> how do I find all open issues on say 2.0.x
[16:32:03] <slava_> W0rmDrink: search the issue tracker? (I would search for all open bugs)
[16:32:09] <W0rmDrink> ehrm
[16:32:30] <W0rmDrink> yeah, I made a query, checked few fields, more or less got what I was looking for
[16:34:36] <dbler> You may use sort() to return data in order without an index if the data set to be returned is small" does it mean that I should NOT use an index if I return little data?
[16:40:19] <soumya> has anyone seen this issue where every consecutive run of a query is faster than the previous one?
[16:40:28] <soumya> i know why it happens the first time
[16:49:46] <slava_> soumya: you call that an issue?
[16:49:55] <slava_> so, better cache hit is bad?
[16:54:41] <SNow> hi guys, i want to install mongodb infrastructe on openvz, but I see that even error log tells me that openvz and mongodb seems to be broken, how actually it is?
[16:59:52] <dbler> what is about redundancy in Mongo?
[17:00:44] <Vile> dbler: http://www.mongodb.org/display/DOCS/Replica+Sets
[17:01:51] <dbler> not this way, I meant redundancy in the bad way: I have for example products belonging to categories, in relational databases I would save the category ID and then do a join to the category table
[17:03:11] <dbler> would I simply accept it or how do you handle?
[17:05:47] <lizzin> how do you increment all documents with a field 'x' by 7? i thought db.stuff.update( , {$inc : {x:7}}) would work. but it fails?
[17:06:00] <lizzin> what should be in the first param slot of the update?
[17:07:16] <mids> first param is the criteria; the query that selects the record(s) you wanna update
[17:07:28] <mids> for all documents try {}
[17:12:07] <Vile> dbler: you can handle referential integrity manually (on the software level) or just embed necessary data into documents and do not care about extra data
[17:12:10] <lizzin> mids: so {} appears to work. but it seems to only update the first document. what's need to do it for all?
[17:12:28] <Vile> There is no joins in mongo :)
[17:13:59] <dbler> what do you mean with "on the software level", looking at the category example, would I save then the ID in the database and the name in my source code or what do you mean?
[17:16:49] <slava_> if I want documents to refer to each other, is this something that can be handled on the mongodb side or is it something my app has to enforce?
[17:19:19] <madrigal> lizzin: multi - indicates if all documents matching criteria should be updated rather than just one.
[17:19:22] <SNow> what about openvz and mongod?
[17:21:25] <slava_> dbler: software level == your code
[17:22:20] <lizzin> madrigal: db.stuff.find().update({}, {$inc: {x:777}}, , "multi":1)?
[17:22:32] <dbler> yes, I had understood this, but can you explain it with my category example?
[17:24:13] <dbler> in the first moment I thought MongoDB would be perfect for me (product catalog with about 100 attributes in general, each object has about 35, in OOP a 5 step depp inheritance), but now I have some doubt
[17:24:28] <dbler> *deep
[17:26:25] <lizzin> madrigal: ha, nvm. just realized what i was doing wrong
[17:31:35] <dbler> slava_: what I think: MongoDB: categoryID = 2; PHP receives this categoryID like that: $catId = getCategoryFromMongo(); $categoryName = $joinInformation['categoryID'][$catId]
[17:37:29] <jrm2k6> Hi guy, i want to deploy a mongodb database on heroku, using the mongohq addon. I m getting this error : Error: database names cannot contain the character '.'. I know it is pretty straightforward but the thing is that the URI for the database is generated by mongohq, using an email address and a password, or, my email contains at least one point :) Any idea? What I am missing?
[17:51:08] <madrigal> jrm2k6: try changing the '.' to %2E in your mongohq_url
[18:00:49] <lizzin> what is needed to convert an msaccess db to mongodb?
[18:01:24] <kali> oO
[18:01:48] <kali> rethink and rewrite all your data access.
[18:01:56] <lizzin> yea, that was a odd question
[18:05:46] <nofxxxx> lizzin, you may write a simple script that imports your CSVs from msaccess (if moving the data was the question)
[18:06:38] <nofxxxx> or, use some dbmanager software to export json directly, should be some one with drivers for that trash
[18:07:59] <lizzin> nofxxxx: json is what i want
[18:21:51] <madrigal> lizzin: use mdbtools to export your tables from msaccess to csv, there are several "csv to json" options available depending on your config
[18:24:10] <lizzin> madrigal: https://github.com/brianb/mdbtools
[18:24:10] <lizzin> that?
[18:24:35] <pbakkum> hi all, my shard balancer appears to be stuck in a state where its totally unable to split any chunks
[18:24:55] <pbakkum> in the logs i see the error 'max number of requested split points reached before the end of chunk'
[18:24:57] <pbakkum> https://gist.github.com/3208902
[18:25:01] <pbakkum> there is a log sample
[18:25:28] <madrigal> lizzin: yep
[18:25:31] <pbakkum> any suggestions would be very helpful
[18:25:42] <lizzin> madrigal: thanks, i'm checking it out now
[18:33:47] <jrm2k6> madrigal: thx i will try that
[19:03:12] <lizzin> madrigal: so i've installed mdbtools. but mdb-export's params requires a 'table' what do i use for this field if i do not know anything about the structure of the database?
[19:11:18] <madrigal> lizzin: mdb-tables filename.mdb
[19:13:34] <lizzin> madrigal: in msaccess, a table is the overall container for the data right?...similar to a collection in mongodb
[19:14:05] <lizzin> ...just trying to make sense of what mdb-tables returned.
[19:14:22] <lizzin> ➜ sf_data_stuff mdb-tables SFFOOD07252012.mdb
[19:14:31] <lizzin> Copy of tblViolationTypes tble_violexplanation tblInspections tblInspectionTypes tblInspectionTypes_old TblInspName tblLocations tblLocationtypes tblViolationCategories tblViolations tblViolationTypes
[19:14:40] <lizzin> is that a single table name??
[19:15:51] <madrigal> lizzin: mdb-tables -d ',' filename.mdb will show you comma delimited table names
[19:17:39] <madrigal> then you can use something like csv2json.py to convert the output: http://bit.ly/OgcBax
[19:18:26] <madrigal> and run the following for each table to convert to json: mdb-export filename.mdb table_name | ./csv2json.py -
[19:19:29] <lizzin> oh, was under the impression that ',' delimiters was the default. http://linux.die.net/man/1/mdb-export. appears to not be though
[19:19:37] <lizzin> ill try what you just suggested
[19:43:18] <markgm> Can anyone help with the error : doctrine/mongodb dev-master requires ext-mongo * -> no matching package found
[19:45:07] <madrigal> markgm: is mongo extension loaded in your php.ini
[19:45:38] <markgm> yes, i have 'extension=mongo'.so in my php.ini file
[19:45:50] <markgm> misplaced that quote but yes
[19:58:17] <lizzin> madrigal: your suggestion is working nicely, thanks!
[19:59:00] <madrigal> lizzin: no problem, glad to hear it's working for you
[20:01:15] <jmikola> markgm: what version of composer are you using?
[20:01:35] <markgm> self-updated today so the latest
[20:02:15] <jmikola> oh, i see you posted in #doctrine; i'll follow up there
[20:03:05] <markgm> okay
[20:11:04] <jrm2k6> madrigal: I still have the problem, concerning mongohq_url
[20:11:39] <jrm2k6> I have sonething like that mongodb://my%2Etest@gmail%2Ecom:password@staff%2Emongohq%2Ecom:10056/app6186142
[20:12:00] <jrm2k6> and logs says : [Error: failed to connect to [gmail:27017]]
[20:12:11] <jrm2k6> do i have to replace the @ too?
[20:14:53] <madrigal> jrm2k6: yes, '@' symbol must be escaped, try mongodb://my%2Etest%40gmail%2Ecom:password@staff.mongohq.com:10056/app6186142
[20:15:41] <jrm2k6> madrigal: what about / ?
[20:16:51] <jrm2k6> ok i guess so, because now i have [Error: failed to connect to [my:27017]]
[20:24:32] <jrm2k6> madrigal: how can i escape / and :
[20:31:04] <jrm2k6> madrigal: even when i escape everything still the same Error Failed to connect mongodb
[20:34:10] <jrm2k6> :(
[20:40:59] <jrm2k6> someone could help me?
[20:42:55] <jrm2k6> i cant access my database on heroku, using mongoHQ
[20:44:39] <dstorrs> jrm2k6: I have not used either of those so can't offer much help. but most times, escaping is just \<whatever (e.g., escaping / is \/)
[20:45:04] <dstorrs> sometimes you need to double the \ if there is shell interpolation or etc going on
[20:45:27] <dstorrs> question for the room -- if I rename a table, its indexes are brought along with it, right?
[20:45:30] <jrm2k6> i try to escape everything but each time i escape something the value return by the error is different..
[20:45:33] <jrm2k6> i m so confused on it
[20:46:21] <dstorrs> it sounds more like a heroku / herokuHQ issue than a mongo issue. I would try their channels.
[20:48:57] <jrm2k6> ok
[20:57:35] <nick_h> why does db.product_haves.find( { 'sale_config.items': { $exists: false } } ).count() always return 0, despite documents in the collection having a "sale_config.items" property?
[21:37:07] <pbakkum> it looks like sharding is stuck in a broken state on my cluster, i keep getting a "max number of requested split points reached" error
[21:37:19] <pbakkum> i put some logs at https://gist.github.com/3208902
[21:37:27] <pbakkum> anyone have any idea whats wrong?
[22:05:09] <kida78> hey all - wanted to discuss a few things around writes and performance in mongodb
[22:06:13] <kida78> is there a major difference in performance between my_coll.update({_id: xxxxx }, { entire document }) vs. my_coll.update({id:xxxxxx }, { field 1: value 1, field 2 : value 2}))
[22:06:43] <kida78> we've gotten use to in our code, appending and updating values in an object over time before saving the entire thing in mongodb
[22:06:48] <kida78> vs just updating the fields when necessary.
[22:34:12] <awestwell> hey all
[22:34:32] <awestwell> I am trying to call a mapreduce from java and I am getting an exception
[22:35:03] <awestwell> Exception in thread "main" java.lang.NoSuchMethodError: com.mongodb.DB.getOptions()I
[22:35:07] <awestwell> Any ideas
[22:39:27] <kida78> awestwell: are you sure you have the right version? is it in your class path correctly?
[22:40:17] <awestwell> 1 sec
[22:47:49] <awestwell> I am using the mongo driver 2.7.1
[22:48:43] <awestwell> it has a mehtod
[22:48:44] <awestwell> public int getOptions(){
[22:48:44] <awestwell> return _options.get();
[22:48:44] <awestwell> }
[22:49:52] <mFacenet> is there an easy way of adding & removing replicaset members if I'm doing an autoscaling group in ec2?
[22:50:07] <mFacenet> like an external rs.add()
[23:02:25] <awestwell> SO I have the latest
[23:18:19] <hoverbear> Hey all... I've got a database (govtest) with a collection (gov)... When I go into the mongo console I can use db.gov.find() and see {a:'b'}... But using http://www.fpaste.org/vdcP/ I only get 'undefined' when using node.js with the official driver
[23:18:44] <hoverbear> Anyone have an idea what might be the matter?
[23:58:33] <kida78> it sounds like it either isn't in your classpath or there's a version conflict
[23:58:41] <kida78> to awestwell