NoSQL vs SQL ... when to use which?

Поделиться
HTML-код
  • Опубликовано: 21 окт 2024

Комментарии • 21

  • @neomangeo7822
    @neomangeo7822 Год назад +4

    Yep NoSQL db like MongoDB can be great.... BUT... Only when you are absolutely sure that there will be no need for foreign relationships, you have large data sets, flexible schemas, and you need some extra speed. Generally, you will be wanting to go for an SQL db like PostgreSQL, MySQL or MSSQL. You will be safe then knowing that if you need any relationships between fields, you will be fine. You will still get great performance.
    Really NoSQL is more niche for specific usecases with requirements I mentioned above. Like a site where you have a crap ton of data that is straight up stored as a "document" think more along the lines of a flat file that sometimes has some fields and sometimes not (so no set shema), that has no foreign relationships to other data in other tables.

  • @notreallysure99
    @notreallysure99 Год назад +10

    This is primarily true for small-to-midsize projects. But in large projects, a complex SQL database has problems as you scale, both in capacity demand and requiring multiple development teams - this is why so many have adopted microservices and NoSQL. Many relationships can be represented with NoSQL by de-normalizing data. You will be responsible for things like referential integrity, but again, you're doing this for performance and scale. As with most things in our industry, it's a tradeoff.

  • @ead5590
    @ead5590 Год назад +3

    I had a great time using the MySQL workbench (locally) along with Prisma ORM and populating Planetscale thanks to Prisma and the Planetscale CLI. I thought I'd have to learn a lot of SQL to get it moving but that was all resolved thanks to Prisma.
    But yeah, it was a great experience setting up the server and connecting it to Planetscale via Prisma.

    • @dickson710
      @dickson710 Год назад

      Planetscale and supabase are awesome

  • @manueljarrin4582
    @manueljarrin4582 Год назад

    Favorite time of the day to hear from the tech uncle I never had!

  • @hiphopheaven
    @hiphopheaven Год назад +5

    I find NoSQL harder to learn

  • @eb4416
    @eb4416 Год назад +1

    right on time for me 😄

  • @davidchino1234
    @davidchino1234 Год назад

    Could you please explain the main steps to build an e-commerce main process and the people involved
    Thanks

  • @SouthernSeneca
    @SouthernSeneca Год назад

    summed up in 2 minutes, wow

  • @yalcinozer4434
    @yalcinozer4434 Год назад +4

    I am working as a software engineer since March 2020. I have always avoided using SQL. I dont know why but SQL syntax just looked irritating to me. I am not working on too complex data, so MongoDB is good enough. Also displaying data as JS object like documents make it easier to grasp the general idea :-) Besides every tech has pros and cons, in the aspect of developer thoughts, I believe people has different tastes.

    • @hiphopheaven
      @hiphopheaven Год назад +7

      I like SQL syntax it's very easy to read and understand unlike NoSQL especially when the query is complex, I don't know how people can understand easily a query that is defined in a JSON object that can contains a lot of inner objects and arrays

    • @driversteve9345
      @driversteve9345 Год назад +4

      If you ever come to understand databases and SQL, you will greatly come to appreciate its power and stuff it can do that NoSQL could not ever do!
      Every tool has its place and its own proper purpose.
      Learn how all those tools work and then you'll be a much more diverse professional programmer!

    • @ngndnd
      @ngndnd Год назад +1

      lmao and here i am struggling to understand nosql

    • @ForbTree-js1yv
      @ForbTree-js1yv Год назад

      are u sure ure a software engineer?.

    • @yalcinozer4434
      @yalcinozer4434 Год назад

      @@ForbTree-js1yv I mostly describe myself as a software developer. Somehow I wrote here "engineer". But your question still doesn't make any sense. I just declared my thoughts above, that's all.

  • @-Engineering01-
    @-Engineering01- Год назад +4

    We can make all type of relationships in nosql as well and that technology is moore developer friendly than SQL is.
    Node + nosql is go to way for almost every situation for companies rather than big enterprise like banks etc, cuz they're dinosaurs they don't change their legacy stack very often.
    At the end they're all same, write data onto HDD.

  • @securethebag1613
    @securethebag1613 6 месяцев назад +2

    audio is trash. is the microphone a decoration?

  • @radui7468
    @radui7468 Год назад +3

    Say no to NoSQL?

    • @dakoderii4221
      @dakoderii4221 Год назад +1

      Just say NO to NoSQL! - Nancy Reagan(probably)