‹ BackHN Continuity

Thread

MongoDB CEO resigns to join Meta

366 points · 306 comments · diek

  1. spicybright · · focus · HN ↗
    People still use MongoDB?
    1. giancarlostoro · · focus · HN ↗
      MongoDB is not a bad database, it is not my first immediate choice for everything, but it is very easy to get into, super easy to prototype with. My biggest pet peeve is how it handled indexes, shoves it all into memory. That and how people use it sometimes bewilders me.

      Two fun facts: ObjectID's are like Discord snowflakes: you can get a timestamp of when they were generated, you can also generate them client side, so you can filter items in a collection by when they were created.

      The other one, that I always enjoyed is, you can take an existing ObjectId, and reinsert it into another document, you dont have to nest all your data, you can go kinda sorta relational about it.

      Used it at a previous job, the first project could have just used a SQL db but because the person who made the intial one tried to do NoSQL using something in the cloud, they migrated it to MongoDB to keep it simple and consistent. The second project, well, we really discovered all the limits if you aren't Google with unlimited server memory available, like indexing as I mentioned. MongoDB pipelines are probably my favorite feature on the other hand.

      1. lukaszkorecki · · focus · HN ↗
        > you can go kinda sorta relational about it.

        and reinvent half of a SQL engine inside your backend logic, badly.

        (source: for the 3rd time, I'm working on a system that uses Mongo extensively, the goal is to move to Postgres as soon as that's viable)

        1. VirusNewbie · · focus · HN ↗
          Postgres does not scale. I have extensive experience in some of the largest databases ever built, postgres doesn't even come close.
          1. giancarlostoro · · focus · HN ↗
            Please elaborate more instead of just "trust me" it would be nice to understand where this comes from. I'm sure back some years people would have said the same about MySQL, yet YouTube used the heck out of MySQL, they made an entire Go based runtime on top of it to scale MySQL.

            You can scale nearly anything if you know what you're doing.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.