Re:MongoDB is actively investigating a security incident
by djrobstep on Saturday December 16, 2023 @07:40PM
(#38669264)
> Because you're not developing against a schema, you can, for example, retool a feature and its data quickly without having to stress about migrations. A big advantage for a startup looking to move fast.
Why wouldn’t you need to worry about migrations without developing against a schema? You’ll need to worry more about migrations because your data will be more messy.
Re:MongoDB is actively investigating a security incident
by rglover on Saturday December 16, 2023 @08:26PM
(#38669546)
> Why wouldn’t you need to worry about migrations without developing against a schema? You’ll need to worry more about migrations because your data will be more messy.
If you're careless with your data, yes. "With great power comes great responsibility."
Re:MongoDB is actively investigating a security incident
by yawaramin on Saturday December 16, 2023 @10:04PM
(#38669974)
Being careful with my data is exactly why I use a strongly typed RDBMS in the first place.
Re:MongoDB is actively investigating a security incident
by winrid on Saturday December 16, 2023 @08:09PM
(#38669448)
It could be rephrased as "worry about them later" :P gotta get those returns on the VC money and pawn those issues onto the next team in 7yrs :)
Re:MongoDB is actively investigating a security incident
by rglover on Saturday December 16, 2023 @08:29PM
(#38669556)
Not necessarily. If you're utterly careless, sure. A MongoDB migration is far less of a headache than a SQL one (you're just writing code to map/replace values). With SQL, you have to be frustratingly surgical about everything which can slow momentum to a crawl (read: punishment for mistakes in the migration is far worse than with MongoDB in my experience).
- Queries look more like application code so you're not wasting mental cycles and time trying to translate an idea into a SQL query. From experience, this leads to less-fragile queries.
- Little to no concern over injection attacks (you have to go out of your way to create potential for them).
- Easier to write non-trivial queries than with SQL (IMO).
- Type-casting data can be done in code as opposed to with SQL you have to use inline, platform-specific functions like field_name::timestamp.
- A single source of truth for how to query and develop with it (with SQL, you're almost always developing against a flavor of it).
- Scales reasonably well (and easily) for a majority of use cases.
- No room for dogmatic fervor/confusion around a specific variety of MongoDB as there's only one variety.