[14:05:25] <wizonesolutions> Is it feasible at all to use mongodump/mongorestore as part of a data export/import feature in an app, or is it better to abstract it to something like JSON and handle that?
[14:06:20] <Goopyo> wizonesolutions: are they putting in in a mongodb?
[14:07:05] <wizonesolutions> Goopyo: yeah, the data is in Mongo. multiple users, so I'd have to restrict the export dataset. but I think mongodump can do hat.
[14:08:05] <wizonesolutions> I figure I could do some version of it, but I am wondering if (probably for a first verison of this feature) it's wise or if I am going to encounter hard-to-solve problems and would be better off massaging the data more.
[14:08:08] <Goopyo> well if its going from mongo to mongo then you wouldn't need an abstraction
[14:08:52] <Goopyo> well you're constricting yourself to the functionality of mongodump
[16:21:22] <kali> what kind of schema do you have in mind ?
[16:21:23] <wmnnd> Say I have those two classes here http://pastie.org/private/wcloy17pb69c8psqas8q and create an object of the class Manufacturer and then add a Product.
[16:21:44] <wmnnd> Then I would like to be able to use something like fiat.products.panda to access the embedded document.
[16:22:35] <kali> document and subdocument keys have to be *keywords* not value, or everything will become a nightmare
[16:24:13] <kali> well, that's the way mongodb is designed. if you don't use it this way, you'll struggle every step of the way: indexing will not work, query language will feel awkward, aggeregation pipeline will be even worth
[16:38:59] <disorder> I want to remove a document based on ordering
[16:39:04] <kali> wmnnd: also, read what happens to that guy in this "success story" about mms: http://blog.mongodb.org/post/59009564965/surviving-success-at-matchbook-using-mms-to-track-down
[16:39:11] <kali> wmnnd: mongoi trying to look smart again :)
[16:40:08] <kali> disorder: remove remove everything matching. look at findAndModify, it has an option that will work
[23:44:51] <jblack> I've never tried using mongo in C++, but I do know C++, and I use ubuntu and gcc as well.
[23:44:57] <jblack> Which driver are you trying to use?
[23:46:49] <Djim> now i need to use mongo, but only adding #include <mongo/client/dbclient.h> gives me so many errors. Which driver? you mean which version?
[23:47:07] <Djim> and those are not linking errors
[23:48:56] <Djim> does anyone tried mongo C++ driver?