SQL vs NoSQL - Who Wins? | Systems Design Interview 0 to 1 with Ex-Google SWE

Sdílet
Vložit
  • čas přidán 25. 07. 2024
  • Pretty much the only relationships in my life at this point are many to many ones
  • Věda a technologie

Komentáře • 19

  • @firoufirou3161
    @firoufirou3161 Před rokem +13

    I like the video, just about the conclusion about the choice between relational vs non relational db, I think it shouldn't rely on whether there are relations between the data or not, but rather on the need to denormalize vs normalize the data. Sometimes we have data that have relations, but we want to denormalize it, because updates and deletes may be rare that we can afford for these operations to take some time, but we want fast reads.
    I think the choice, of whether to normalize vs denormalize, will depend on the SLAs we want for each operation (read, update, delete, write) and how the queries will look like (we want to optimize reads, we want that updates), if the choice is to normalize, then the DB is better be relational to have the relations, foreign keys and the ability to join handled for us. But on the other hand, if we decide to denormalise, we can sometimes find relational DBs that perform better based on the usecase and on how other parts are implemented (Indexes, ...)

  • @bulioh
    @bulioh Před 4 měsíci +5

    i appreciated the your mom jokes probably way more than i should have

  • @psychechip
    @psychechip Před 3 měsíci +1

    I laughed hard at the decommissioned mom station. Really caught me off guard there

  • @LokendraSingh-42
    @LokendraSingh-42 Před měsícem +1

    I like to think of SQL as the starting point. When we want to scale, we'll have to compromise on certain functionalities of SQL. We can start by dropping foreign key constraints, partitioning tables, sharding based on certain keys and somewhere in between NoSQL will start to make sense to meet the SLAs

    • @jordanhasnolife5163
      @jordanhasnolife5163  Před měsícem

      I think that's a really cool way of putting it! Thanks for sharing!

  • @jh0720
    @jh0720 Před rokem +3

    Do a Chiraq vlog!! Lots of transactions each day, records constantly being created and destroyed and an ever-changing many to many relationship

  • @12akul
    @12akul Před 2 měsíci +2

    Hi Jordan, great video as always! This might be a silly question. In the Train station example using SQL, is it possible to store both tables in the same database? This way we can avoid 2PC and also network calls.

    • @jordanhasnolife5163
      @jordanhasnolife5163  Před 2 měsíci +1

      Yep - just keep in mind that as things scale this isn't always possible.

  • @karan-lh8mj
    @karan-lh8mj Před rokem +4

    What books do you read for system design?
    What are your sources?
    Please tell

    • @jordanhasnolife5163
      @jordanhasnolife5163  Před rokem +4

      Too many to count since I've watched a lot of random CZcams videos, but mainly DDIA

  • @graceharper2619
    @graceharper2619 Před rokem +1

    Thanks

  • @CTde110
    @CTde110 Před 5 měsíci +1

    420 BLAZE IT BRO

  • @chrisrectenwald7307
    @chrisrectenwald7307 Před rokem +1

    Where u working now

    • @jordanhasnolife5163
      @jordanhasnolife5163  Před rokem +1

      In trading but afraid to say exactly where for fear of getting fired

    • @AP-eh6gr
      @AP-eh6gr Před 4 měsíci

      @@jordanhasnolife5163 Chicago, so maybe IMC