PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Monday the 31st of December, 2012

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[01:00:52] <owen1> i signin to mongodb class and watching the videos, but would like download some of them for offline view. any idea how? https://www.youtube.com/watch?feature=player_embedded&v=MWH-_nJgebw
[01:01:35] <owen1> this library didn't help, btw - http://rg3.github.com/youtube-dl/
[01:01:51] <owen1> also tried with a chrome extension but failed.
[06:59:49] <bmcgee> hey guys. anyone here use Subset with scala for working with mongodb?
[11:36:00] <jeremy-> I want to log a date in mongodb which is the nearest 'day' (date with hours/mins 00:00)
[11:36:27] <jeremy-> I want to use this so that I can compare scraped data input with greater than less than nearest date input
[11:36:39] <jeremy-> Ive noticed if i use python to store datetime it automatically converts to bson
[11:37:16] <jeremy-> however, when I try and input date.today() it gives me the bson error "cannot convert value of <type 'datetime.date'> to bson
[11:38:02] <jeremy-> Is there anyway to make mongodb just round date.today() to 00:00 hours/mins and interpret it as datetime (I investigated rounding python dates to the nearest day but it was getting frustrating)
[11:38:18] <kali> dates in python are frustrating
[11:38:46] <kali> i can offer sympathy, but not much help =)
[11:39:09] <jeremy-> I suppose if mongodb just wont take date.today() then i need to stick with what it will accept which is datetime.today()
[11:39:37] <jeremy-> One workaround i can think of immediately is to use strftime and then add 00:00 then back with strptime
[11:39:41] <jeremy-> but thats ridiculous
[11:39:52] <jeremy-> Stackoverflow threads on rounding dates seem overly complicated
[11:40:52] <jeremy-> I think i'll submit a suggestion to round date.today() for future pymongo updates
[11:44:01] <jeremy-> ahh, convert date to datetime.. found a workaround :)
[11:51:13] <jeremy-> FYI: datetimevar = datetime.combine(datevar, time()) ......... mongodb approved
[12:49:05] <sawyer__> is it possible to have an insert() which doesn't write to the database? possibly to the journaling which doesn't get updated, or a cache?
[12:50:41] <ron> ah?
[12:51:52] <sawyer__> i have an collection->insert call. then i call the collection->find and i get the previous object. as if the last insert() didn't update the value.
[12:52:14] <sawyer__> does insert() not update() existing values? maybe that's the reason?
[12:53:19] <ron> hmm, do you have a replica set?
[12:53:33] <sawyer__> not that i know of
[12:53:44] <sawyer__> does insert() also update() an existing value?
[12:53:53] <wereHamster> no
[12:53:56] <wereHamster> insert inserts
[12:53:59] <wereHamster> update updates
[12:54:04] <wereHamster> insert does not update
[12:54:07] <wereHamster> update does not insert
[12:54:14] <sawyer__> ah, then that's why
[12:54:29] <sawyer__> is there any call that either update_or_insert()s?
[12:54:33] <wereHamster> unless you do an upsert, which will update or insert depending on whether the query found a matching document or not
[12:54:36] <ron> upsert?
[12:54:52] <sawyer__> there we go, upsert
[12:54:56] <sawyer__> thanks, people
[12:54:59] <wereHamster> google.com, enter 'mongodb upsert' into the search box. then click the search button
[12:55:11] <sawyer__> already riffling through the documentation for upsert
[12:55:14] <sawyer__> much appreciated
[13:46:18] <Dededede4> hello
[13:47:09] <Dededede4> why I get this error « too much key data for sort() with no index. add an index or specify a smaller limit » ?
[13:48:21] <Dededede4> It appears to me even with a limit of 40,000 objects
[14:59:27] <durre> I have products that can belong to many categories. now I wish to query all the products that belong to a specific category. this is my failed attempt: db.products.find({categories: {$in: [ObjectId('50dedbf70364d1bdfddcedfc')]}})
[17:21:47] <zastern> The MongoDB docs on replica sets frequently mention that we should keep some secondary members of the set outside the main datacenter for backup purposes. This makes sense to me, but I wonder - does MongoDB have a way of handling this, or will I need to set up a VPN or similar?
[17:23:54] <colun> I suppose a port forwarding by ssh http://alexanderwong.me/post/26960965342/settings-up-mongodb-on-ec2-w-replica-sets-in-a-sharded or vpn ipsec
[18:23:16] <zastern> colun: mm that could work. vpn ipsec will be kind of annoying to implement on rackspace
[18:24:18] <colun> zastern: aucune idée. I use only my servers
[19:53:54] <jtomasrl> is there a way to search for all nested attributes with a certain value from all documents inside a collection?
[20:22:59] <skot> No, not really. You can write a $where javascript recursive check, but that is not very efficient.
[21:01:15] <adamdicarlo> hey, "Try it Out" on mongodb.org is broken - 404 on try/js/lib/query.js... so all db.foo.find() calls give empty result
[22:30:21] <adamdicarlo> mongodb.org's interactive tutorial is broken.
[22:30:43] <adamdicarlo> /try/js/lib/query.js is missing, so no db.foo.find() calls can find anything.
[22:31:13] <adamdicarlo> not sure where else to report this than here.