Has anyone used target-mongodb plugin? How do you ...
# best-practices
n
Has anyone used target-mongodb plugin? How do you create collections in the same db(through meltano) so that I can populate it by data from different taps. Right now, everything gets stored in the main db and it just creates a lot of clutter. TIA
s
Hello @naveen_srinivasa, which target-mongodb are you using right now? There's none on the hub, and I just found one here: https://gitlab.com/hotglue/target-mongodb.
n
Yes I was referring to this
s
Hm the codebase suggests it creates one collection per stream, isn't it behaving in that way? Or are you expecting something else?
n
I got the solution, i made a small change where I added another parameter which basically adds a prefix to the collection name. In this way, I can maintain a single database and have multiple collections from different taps.