PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Sunday the 14th of December, 2014

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[00:35:38] <s2013> what is an efficient query to get bunch of random documents
[00:42:14] <Pertinacious5> Can anyone give me a pointer for dealing with using functions in mongodb?
[00:42:26] <Pertinacious5> For the mongodb driver.
[00:43:00] <modulus^> driver for what language?
[00:43:10] <Pertinacious5> nodejs / javascript
[00:54:43] <blizzow> when I create a replicaset, the primary node that I run rs.initiate() from only uses it's short hostname instead of FQDN as a member of the replica set. Is there any way to force it to use the FQDN as it's member name?
[01:49:00] <jiffe> "secs_running" : 36203
[01:49:08] <jiffe> I'm guessing this is going to take days to complete
[01:50:58] <toter> Hi everybody. I'm a newbie. I have the following results after querying a collection: http://pastebin.com/ss6TcZMt
[01:51:06] <toter> I used the following command: db.bt.find({company: /Samsung/}, {company: 1})
[01:51:17] <toter> on robomongo...
[01:52:23] <toter> Is there a way to replace the field "company" from every single result with the value "Samsung"?
[02:23:44] <archeron_> is it possible to create a case insensitive index? say for a unique index ensuring that all emails are unique that Test@email.com and test@email.com are not considered distinct
[02:42:56] <DesertRock> archeron_: what about forcing every index to be all caps or no caps?
[02:43:13] <DesertRock> *every email
[02:43:47] <archeron_> yep that is a solution for sure before I insert for the first time
[02:44:22] <archeron_> I was just interested I couldnt seem to find anything like it in mongo
[04:07:53] <PhyloGenesis_> Hi, I just installed Mongo on openSUSE and I ran "mongod" in one tab which worked fine, but when I run "mongo" the system doesn't recognize it as a command.
[04:12:20] <PhyloGenesis_> Nvm. I got it to work by cd to the directory and doing "./mongo". Not sure why I had to for mongo and not mongod, but whatever, it works now.
[07:05:38] <Streemo> Is there a way to store a geolocational region in my document? I need so encode documents with regions of different sizes. e.g. document is shown to the user if they are within N meters of the center point, but this N may differ depending on the doc.
[07:06:52] <Streemo> Or, is there a query that can say: "Get all documents where the normed distance between location: X and document.location is less than document.size"
[07:13:17] <Streemo> does anyone know the best way to go about that? thanks.
[08:19:18] <barque> Could I/should I have write concerns >= 2 with journaling set to true when doing two-phase commits?
[08:19:31] <barque> wouldn't it make sense to do so?
[12:54:42] <kenalex> hello ladies and gentlemen
[18:41:03] <starsinmypockets> In mongo 2.4.x I'm getting a result set based on a text search as such:
[18:41:15] <starsinmypockets> db.ksadmin_terms.runCommand( "text" , { search : "LLC" , filter : {group : true}})
[18:41:22] <starsinmypockets> How can I operate on the result set, eg update a field?
[19:47:31] <ss__> in mongodb what is versions.bson?
[19:47:57] <ss__> is that some default thing?
[20:58:55] <lareth> Hello I have a collection created programmatically named like: coll.2014.09
[20:59:13] <lareth> I am trying to access this in mongo shell and I get unexpected number error
[20:59:18] <lareth> how can I access it?
[20:59:34] <GothAlice> db['coll.2014.09']
[21:00:07] <GothAlice> Better would be to use underscores, then it'd be more easily accessible.
[21:03:18] <lareth> thanks
[21:05:52] <Streemo> if i wanted to store something locational like: "this document is valid in the region of radius R around point R_0" i dont think mongo can do that unless for all documents, R was constant
[21:06:14] <Streemo> any work arounds for this? I mean i could use a grid, or do some expensive math every time i query... but is there a more elegant solution?
[21:07:12] <Streemo> in the case R is contant, i just use a query like " find all docs within R of some point" but this isn't valid for documents with varying charactersitc lengths
[21:07:17] <Streemo> or radii
[21:45:50] <edrocks> Streemo: there are a bunch of geolocation query operators you just need to specify your lat/lng in the correct format
[21:46:12] <edrocks> In one of my apps I query for all messages within X miles of some point
[21:47:01] <edrocks> Streemo: here are the relevant docs http://docs.mongodb.org/manual/applications/geospatial-indexes/ they like to call it geospatial
[21:58:14] <Hestil> a little bit offtopic but anyway, does anyone know where can I find the videos from the last courses on mongo university?
[22:00:45] <Hestil> nvm. found on youtube.
[22:39:11] <StephenLynx> hey, I just updated mongodb for 2.6.6 on my server. now my node application can't connect on boot.
[22:39:20] <StephenLynx> anyone with similiar issues?
[22:39:43] <StephenLynx> funny thing: i can connect AFTER the boot.
[22:40:08] <StephenLynx> it can connect*
[22:42:59] <joannac> StephenLynx: um, the service is taking longer to start up?
[22:43:39] <StephenLynx> so there was always some sort of race condition?
[22:44:00] <joannac> yes, depending on which started up first
[22:44:15] <StephenLynx> how should that be dealt with? can I set my upstart script to run only after mongo is running?
[22:44:27] <joannac> check the logs, it could be replaying journal file or something like that
[22:44:43] <StephenLynx> where are the mongo logs located?
[22:45:11] <joannac> /var/log/mongo ?
[22:45:24] <joannac> it worries me at least a little that you've never bothered looking at the mongod logs
[22:46:06] <StephenLynx> im new with server administration and its not a professional server. at least I had logs for my application so I knew the problem was that it couldn't connect to mongo :v
[22:49:00] <joannac> okay fair call, everyone's a newbie once. sorry for picking on you.
[22:50:00] <joannac> anyway, your app should be resilient enough to retry (sanely) if it can't connect. what happens if your mongod server crashes?
[22:50:12] <joannac> or if you're running a replica set and there's a re-election?
[22:50:15] <joannac> or etc..
[22:50:26] <StephenLynx> no, there are no replica sets, no shards
[22:50:40] <StephenLynx> on /var/log there is only a mongodb file that's empty
[22:51:04] <joannac> is mongod up?
[22:51:33] <StephenLynx> yes
[22:51:49] <joannac> connect a mongo shell and run db.serverCmdLineOpts()
[22:51:51] <StephenLynx> running commands on it
[22:53:08] <StephenLynx> oh, indeed, that was a folder
[22:53:13] <StephenLynx> got a log, reading it
[22:53:14] <StephenLynx> thanks
[22:54:15] <StephenLynx> it is quite long. maybe it has grown too big?
[23:07:30] <StephenLynx> http://pastebin.com/wvmxHqdR this is the end of the log
[23:07:32] <StephenLynx> it had 7mb
[23:20:05] <joannac> StephenLynx: looks okay. what's the timstamps for your app failing to connect?
[23:22:59] <StephenLynx> ok, im back. was fixing another problem it gave me
[23:23:17] <StephenLynx> because I changed the node installation
[23:24:17] <kenalex> is there any way of using the c# typed Update<> class to create an update statement like {"$push" : { "Keywords.$.Numbers" : "12687"}
[23:24:47] <kenalex> i can get push to work on Keywords.0.Numbers but not Keywords.$.Numbers
[23:25:14] <kenalex> using the untype Update class