2

Creating some sort of relational schema in mongodb is dumb or am i overthinking?

Comments
  • 3
    If you're correlating documents, that's within the bounds of mongo. If you're trying to replicate RDBMS features, you're either doing it wrong, or using the wrong db.
  • 0
    @SortOfTested yes correlation because of document size limit is 16 mb and some part of data is vertically expandable so i thought some sort of key indexing via collection would be a good idea. Thanks
  • 0
    @SortOfTested but i still think i am doing it wrong lol.
  • 1
    @BlackSparrow
    Learn you a domain driven design. Aggregates are not god objects

    https://martinfowler.com/bliki/...
  • 0
  • 0
    Im just learning momgodb, I’m super noob when it comes to non relational databases. I don’t see the point to them besides having intact records that arent broken up in different tables for normalization for faster queries. It’s undoing all the great benefits of the relational design.
  • 1
    @d-fanelli thing with normalisation that i feel is that fully normalised database requires alot more effort when the database design might require a change due to business requirements. Its all about comfort imo.
  • 0
    @d-fanelli the point is to use it when you need it not as a replacement of relational databases.

    You might need mongo or similsr when you start wasting a lot of time preventing data duplication and your schema starts looking unmaintainable
Add Comment