Re:Homebrew removes MongoDB from core formulas
by 6nf on Monday September 02, 2019 @08:05PM
(#20862666)
That doesn't make sense - how are you eventually moving to a RDBMS if your data is not suited to it?
[ Parent
| on HN ]
Re:Homebrew removes MongoDB from core formulas
by scarface74 on Monday September 02, 2019 @08:18PM
(#20862710)
What do you mean how?
Anything that you can store in object database you can normalize and store in an RDMS. ORMs have been translating relational models back and forth to object models for decades.
In the case of Mongo, you just create one object containing other objects, lists, arrays etc and the driver serializes it to a JSON like structure and stores it as is in the collection.
In the case of an RDMS, you create your C# classes to model your tables and relationships.
The driver translates the LINQ to the appropriate query language.