[04:23:58] <svm_invictvs> And build that connection string on the fly?
[04:24:10] <svm_invictvs> Or find the "primary" through SRV and then just connect to that?
[05:56:38] <HikaruBG> Is anyone able to help put with database design problem?
[05:57:12] <HikaruBG> I have a collection of products, which can be in posession of different vendors.
[05:57:58] <HikaruBG> I need to track when a product is in posession of which vendor. I.E. Each vendor must have an inventory of items.
[05:58:22] <HikaruBG> what is the best way for this to be implemented?
[06:08:06] <Trezker> I don't know what kind of products this is about or how these vendors operate... But in general, I think each item should have its own document.
[06:08:45] <Trezker> I can imagine an item having lots of interesting data going on.
[06:37:05] <HikaruBG> Trezker: yes, the items have their own fields. Do you think I should have an inventory collection fo each vendor, so they can store (add and remove) a reference to each item?
[06:39:09] <Trezker> maybe, that's the kind of decision you can go back and forth on a long time
[06:40:14] <Trezker> You mentioned products moving from vendor to vendor. So I'd like to keep a history of where it has been in the item document.
[06:42:23] <Trezker> I want the item to know where it is and where it has been. The question is, does the vendor really need to have references to all it's items too.
[06:52:34] <HikaruBG> Trezker: I need no history of the movement. I do need only a way to keep their current location (which ventor is in posession of what items)
[07:05:04] <Trezker> I'd have the reference on the item side. Because if you want to select items with filtering you'd do the query on that collection.
[08:07:22] <evulish> hey i'm confused by mongorestore's --gzip and --archive option
[08:08:11] <evulish> oh well now i'm not confused but i'm still having a problem
[09:59:02] <philm88> hi all. I'm building out a new version of an existing web app. The old version is using a very large RDBMS, the new version is using mongodb document storage. I'm looking into data migration tools and methodologies. Anybody here got any suggested reading? The volume of data is large (millions of records) and will be some transformation of the data required
[10:46:58] <Aquazi> when I navigate to / tho it gives me an error
[10:47:14] <bartmon> hi. i'm having segfaults starting mongodb-compass-1.16.3-1.el7.x86_64. any tips how to debug? my userdata is from an old version, maybe 1.8...
[10:47:19] <Aquazi> MongoError: MongoClient must be connected before calling MongoClient.prototype.db
[10:56:24] <synthmeat> Aquazi: you have issues with your js code. it's unrelated to mongo.
[10:59:25] <Aquazi> 39 locs and you have no time to even point me the line or point
[11:00:50] <philm88> You dont have time to ask folks from a more appropriate channel and would rather badger someone into looking into your code for free on the assumption that they even know JS?
[11:02:40] <Derick> philm88: this might help your problem: https://github.com/learn-mongodb-the-hardway/mongodb-index-recommender
[11:03:56] <aurelbzh> Aquazi maybe because of asynchrone js . I think you have to connect to your database in the get function
[11:04:44] <philm88> cheers @Derick, how do you mean? I havent got any (non-test) data in mongo to analyse yet
[11:31:01] <Derick> philm88: it's supposed to look at your RDBMS data usage patterns
[15:47:24] <Mmike> Hello! I run db.repairDatabase() and it's taking very long time (the underlying I/O storage is super slow)