PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Wednesday the 26th of December, 2012

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[01:23:49] <darshan> Hi, I need some help accessing array elements using Java.
[01:24:18] <darshan> { restaurantName:'abc', reviews:[ { text:'Its awesome!' person: 'John Doe' } { text:'Nice Ambience' person: 'Davis' } ] }
[01:25:39] <darshan> sorry for the above message. Please refer to the structure mentioned in the following link:http://pastebin.com/QFmJ1xbp
[01:26:46] <darshan> How do I access the array elements as DBObjects. I keep getting typecast exceptions. Tried using DBList, but couldn't find enough reference to find the usage.
[02:07:07] <rekibnikufesin> darshan: sounds like you need to cast the reviews as a DBList:
[02:07:36] <rekibnikufesin> DBList myreviews = (DBList) restaurant.getObject("reviews");
[02:07:49] <rekibnikufesin> then iterate over the myreviews as a List
[02:53:12] <Guest92353> list
[03:24:17] <Guest57879> ls
[03:28:05] <Guest57879> teds
[05:15:45] <diamonds> hiya
[05:15:47] <diamonds> http://hastebin.com/raw/vuhilewoju
[05:15:55] <diamonds> why isn't mongod starting properly?
[05:16:01] <diamonds> I start it then it's still stopped
[05:16:03] <diamonds> can't connect
[05:17:28] <IAD1> diamonds: check mongod port
[05:18:42] <diamonds> IAD1, well `service mongod status` says it's stopped
[05:18:49] <diamonds> IAD1, but where do I check that? http://paste.ubuntu.com/1466310/
[05:19:16] <IAD1> ps aux | grep mongod
[05:19:49] <diamonds> it's not running :(
[05:20:41] <diamonds> IAD1, http://paste.ubuntu.com/1466311/
[05:20:59] <wereHamster> look at its log
[05:21:33] <IAD1> diamonds: whats in log? multitail /var/log/mongodb/mongodb.log
[05:22:14] <diamonds> http://paste.ubuntu.com/1466316/
[05:22:17] <diamonds> just checking
[05:22:30] <diamonds> looks like bad shutdown...
[05:23:15] <diamonds> rm lockfile?
[05:23:28] <IAD1> and repair
[05:24:58] <IAD1> diamonds: http://docs.mongodb.org/manual/tutorial/recover-data-following-unexpected-shutdown/
[05:25:13] <diamonds> ty
[05:25:18] <diamonds> I'm reading there from the log
[05:28:17] <diamonds> thanks seems to be running now :)
[05:52:52] <diamonds> https://github.com/gett/mongojs < looking at this
[05:53:27] <diamonds> want to delete a document from a db.coll.find({xxx}).forEach(function(err,doc){}) loop
[05:53:49] <diamonds> do I call delete against the collection again or is there a `document.delete()` method?
[05:54:08] <diamonds> http://docs.mongodb.org/manual/applications/delete/ says collection but can't find the "document" api
[06:30:02] <azbyin> hi all..
[06:30:14] <synchrone> Morning, everyone
[06:30:19] <azbyin> how is a number type stored in mongodb?
[06:30:21] <bigmeow> hi all:)
[06:30:37] <bigmeow> how to delete database when using mongodb?
[06:30:44] <synchrone> oh, seems like an active-visitor-peak around here
[06:30:57] <azbyin> for example, if i do new Date().getTime() in js and store that, is there a change it can eventually overflow?
[06:35:04] <synchrone> In a .NET application, what happens if I try to read from MongoGridFSStream AFTER IDisposable RequestStartResult object was disposed ?
[06:38:17] <synchrone> after reading sources, it started to seem that it would only read up until current Chunk contents, and fail when another one should be loaded, because ServerInstance would already ReleaseConnection
[10:57:18] <bartzy> Hello
[10:57:33] <bartzy> The cursor timeout - is it only for waiting for the DB to reply - or also for the client to ask for more ?
[10:58:23] <bartzy> i.e. is it the time between getMore calls that the client makes (maybe the client is sleeping for a while between them, or processing a lot of stuff), or only the time between issuing the getMore call and receiving data from server?
[11:31:43] <arvraepe> Can someone tell my how I can count the occurences of a properties value in MongoDB ? e.g. I have documents designed with the "item" property ( {"item": "value"} ) how can I find the value that is stored the most in the collection?
[11:34:19] <ron> I believe you'd need map/reduce for that.
[11:34:29] <ron> or use an external indexing engine.
[11:38:31] <arvraepe> ron, I googled a bit more and map reduce is the answer. It's just that I'm really new to this nosql thingy. Trying to find out some things... Don't get the MapReduce things ...yet... are there any really small and easy examples? tutorials?
[11:41:23] <ron> arvraepe: I believe so. sec.
[11:42:09] <ron> arvraepe: try looking here: http://cookbook.mongodb.org/
[11:42:15] <ron> the examples are fairly simple
[11:42:26] <arvraepe> thanks! :-) I'll get right on it
[11:59:29] <synchrone_> hi again everyone
[11:59:30] <synchrone_> In a .NET application, what happens if I try to read from MongoGridFSStream AFTER IDisposable RequestStartResult object was disposed ?
[12:17:28] <bartzy> ron: Are you here? :)
[12:17:43] <ron> yes?
[12:39:35] <arvraepe> In an example I'm trying, I'm counting the records by a property called lines. When I use this map = { emit(this.item, this.lines); } with the reduce(key, values) = ( if (values instanceof Array) { return values.length; } else { return 1; } ), I'm getting the right output when an item is multiple times in the DB but when it only occurs once in the collection it just prints the value of the lines property..
[12:47:39] <arvraepe> when is the reduce function execute?
[12:55:28] <ron> the reduce is executed after the map function is done.
[12:56:26] <arvraepe> yeah! but it all makes sense now
[12:56:45] <arvraepe> if after the map the same key only occurs once... then there will be no reduce for that key
[12:56:59] <arvraepe> makes sense...
[13:46:05] <Lujeni> Hi - what's the best way to extract data on MMS agent to make a score card for example ? Thx
[13:50:28] <joshua> I've got the mongo training this week but I think I have taught myself most of it already.
[17:29:25] <joshSzep> Does anyone know of a good tech talk/presentation covering basics of mongodb database design for social applications (or in general?) - I'm new to database design and I'm trying to get up to speed
[17:36:11] <wereHamster> joshSzep: yep, google 'mongodb schema design
[17:36:41] <joshSzep> wereHamster: https://www.youtube.com/watch?v=PIWVFUtBV1Q this one?
[17:39:32] <wereHamster> add 'site:mongodb.org' to your search query
[17:41:14] <joshSzep> http://blog.mongodb.org/post/38467892360/mongodb-schema-design-insights-and-tradeoffs-from ?
[20:07:40] <[Fudge]> Is there a way to pass an array of strings to the find method and if a doc matches it, it'll return it?
[20:08:42] <[Fudge]> One query but I want to return specific things
[20:08:56] <lucian> [Fudge]: http://docs.mongodb.org/manual/reference/operators/#_S_in
[20:09:11] <[Fudge]> ah, thanks!
[20:09:14] <[Fudge]> I'll give it a shot
[20:34:48] <wereHamster> joshSzep: nope, I meant this: http://www.mongodb.org/display/DOCS/Schema+Design