Re:Database mocks are just not worth it
by winrid on Tuesday December 31, 2024 @04:07AM
(#42557510)
PG and Mongo will vertically scale about the same depending on your queries. They were probably using sharding with tiny instances which is dumb. Also, large documents doesn't really hurt performance with mongo, except maybe with writes, or with large array fields due to replication implication.
[ Parent
| on HN ]
Not large documents, but documents where the most common operation is to add a number to a list of numbers.
Yeah that's a bad idea. You should instead just create a doc for each number. Each time you add a number the entire list needs copied to disk and to each secondary, so the cost grows quickly with each write.