IT/Software career thread: Invert binary trees for dollars.

  • Guest, some asshat always complains they didn't know the tournie was running, so here's another notice!



    Go here and vote as hard as you can!
    This year's bracket is especially girthy, thanks to Asshat Lurkingdirk, so show your size appreciation with your vote, or else!
Tenants only matter with things like "ok, who do I send emails to today?" or my analysts wanna "fuzzy" search to get metrics on all things that have a cat on them. We can do it, but it's less than optimal which lead me to the idea of a secondary collection specifically for that analyst purpose.
Again I do not understand your use case beyond this post and the one before it.

But if you are concerned about scaling then creating a secondary collection that partitions things into more isolated datasets or volumes is a bread and butter change. You are on the right track here. If the Tenant is not the ideal partitioning point you will need to identify or create a better commonality. This design pattern is a best practice mongo or not in various situations. I would not really be concerned with duplication of data because storage costs nothing. The pain point is going to be keeping your partitions uniform if updates are inconsistent.

And I get why that this is a primary data store for you. But it is something to think about here because all of these problems are nonexistent with Kafka type streaming as the messages are immutable and you never have to deal with any of this. Hence why Mongo is less favored. I think the last time I used Mongo was like 3 years ago now.
 
Again I do not understand your use case beyond this post and the one before it.

But if you are concerned about scaling then creating a secondary collection that partitions things into more isolated datasets or volumes is a bread and butter change. You are on the right track here. If the Tenant is not the ideal partitioning point you will need to identify or create a better commonality. This design pattern is a best practice mongo or not in various situations. I would not really be concerned with duplication of data because storage costs nothing. The pain point is going to be keeping your partitions uniform if updates are inconsistent.

And I get why that this is a primary data store for you. But it is something to think about here because all of these problems are nonexistent with Kafka type streaming as the messages are immutable and you never have to deal with any of this. Hence why Mongo is less favored. I think the last time I used Mongo was like 3 years ago now.

So perhaps I can ask just one simple question: Do you/have you stored the same data in two different tables/collections before in a different style or with a different index to serve two different purposes?

If you have a team of 20 analysts that just go ham all day on the table running reports(especially ones that you cannot predict ahead of time so maybe might not be indexed because some idiot decided to group by the style of door handle on the car in a make believe car table) you obviously don't want that to have impact on the users who pay you to use the site, do you "migrate" or copy the data once it's been completed to some offline reporting database/table?

I was always taught redundancy was taboo and of course you introduce possible synchronization issues, but this just seems like the best way to handle some of these situations.
 
Last edited: