Typeorm vs Prisma. (I created the same backend w/each)

Поділитися
Вставка
  • Опубліковано 11 гру 2024

КОМЕНТАРІ • 67

  • @ericsison187
    @ericsison187 2 роки тому +156

    Never heard anyone say 'CLI' as 'klee'. Nonetheless, informative video.

    • @asiraky
      @asiraky 2 роки тому +27

      Nor have I heard anyone not use O-R-M

    • @texmex810
      @texmex810 2 роки тому +6

      @@asiraky Also rep-oh

    • @microwavecoffee
      @microwavecoffee 2 роки тому +5

      i thought he was text-to-speech when that happened xdd

    • @TheOneHong
      @TheOneHong 2 роки тому

      @@texmex810 i read as ri-poh

    • @stunna4498
      @stunna4498 2 роки тому +7

      klee im dead 😂😂😂😂😂😂😂😂🤣🤣

  • @jon1867
    @jon1867 2 роки тому +20

    I've used both, and Prisma is way nicer to work with IMO, especially if you don't know SQL super well.
    With code generation, you can explore very easily the types of queries that you can make, and also having type safety in your queries helps you write them much faster. I also felt like, with TypeORM, I would run into stupid, horribly documented problems all the time.
    The only edge I'll give on TypeORM is validations were nice. But truth be told, with a library like Zod or yup, you can get plenty of great validation pretty easily. Your code just winds up looking a bit different.

    • @somerandomchannel382
      @somerandomchannel382 2 роки тому

      prisma has alittle higher gap to get going. But once you get going. It feels professional. Typeorm is more a hobby library.

  • @muhammadanshorjihadi7382
    @muhammadanshorjihadi7382 2 роки тому +8

    Problem in prisma :
    1. you can only have one prisma schema file, imagine how big it is when the app contain 20 model.
    2. There is no hooks for model,
    3. You can't extend the model class
    4. Soft deleting is possible, but too verbose
    5. There is no global scope utility

  • @100timezcooler
    @100timezcooler 2 роки тому +3

    honestly buidling a db using the prisma schema is so easy and intuitive and the auto generated types. things a beast.

  • @JayTailor45
    @JayTailor45 4 місяці тому

    I'm glad you used the logo I created for TypeORM

  • @arshadpakkali
    @arshadpakkali 2 роки тому +6

    Oh man the CLI

  • @AmxCsifier
    @AmxCsifier 2 роки тому +1

    Keep it up dude, you're doing good. Enjoyed your vid, keep'em coming

  • @axelb423
    @axelb423 Рік тому +2

    How to manage a "union" or a "polymorphic relationship" with Prisma, it seems to have a poor support for that?

  • @alvin3171997
    @alvin3171997 2 роки тому

    Awesome overview, thank you!

  • @ImranSheikh-kg4qd
    @ImranSheikh-kg4qd 2 роки тому +1

    Great Video , Thank You.

  • @beorntwit711
    @beorntwit711 2 роки тому +6

    Tnx for this video. I actually tried both, and I gotta go with Prisma 2 on this one. Usually I run into problems with setup (nothing bad, just some googling required). Not with Prisma 2.
    But, what really made me switch was rumours that TypeOrm was no longer maintained, with an old old roadmap that still wasn't implemented etc. (there were also some rumours that it wasn't production ready on reddit)
    So my question is: is TypeOrm back on track (did they get funding, are they solving issues, etc)?
    I used it and it was pretty good, but I don't know if I'd trust it for anything serious/professional if it's not still going on. It's a great pity, since I loved it much more than sequelize or microORM.

  • @chyys_goldenera
    @chyys_goldenera 2 роки тому +1

    Thank you for this video. Please can you make a video showing how to dockerize a Nodejs backend project that uses prisma and postgres. I have been struggling to get prisma to work well in a dockerized environment. Will really appreciate it

  • @pedrolefteen
    @pedrolefteen 2 роки тому

    Great video! Thanks!

  • @joja2174
    @joja2174 2 роки тому

    my eyes bled when they saw typeorm schema

  • @borisbosnjak4812
    @borisbosnjak4812 2 роки тому

    Thanks for this 🙂

  • @buka.a
    @buka.a 2 роки тому +3

    My preference is MikroOrm

    • @AlexanderSuraphel
      @AlexanderSuraphel 2 роки тому +1

      It looks really nice and similar to SqlAlchemy which is robust and has very close syntax to the SQL.

    • @huyifan83
      @huyifan83 2 роки тому

      It's slower than TypeORM, and more complicated in a lot of sense

  • @ThePianoForce
    @ThePianoForce 2 роки тому

    Thanks for the informative video! Just some idea for your future content: It's sometimes a bit hard to follow you because of the way you cut your videos. Often, between sentences you would immediately start the next sentence. But for comprehension and in usual speech, people leave longer breaks between sentences. I think leaving those breaks would make your videos even more enjoyable to listen to.
    Again, great content, keep it up!

  • @mykhailosafronenko6190
    @mykhailosafronenko6190 9 місяців тому

    Prisma doesnt supports ts_vector. Aswell there is no support of rawWhere conditions (which really helpfull when you are working with posgres extentions, or some other specific cases). But TypeORM has.

  • @vatsalpatel3669
    @vatsalpatel3669 2 роки тому

    Thanks brother

  • @rtorcato
    @rtorcato 2 роки тому +3

    Prisma is better funded and it shows in the tools and docs, but class based schema is still far better. Prisma also has limitations with mongodb where it would need to be run in a cluster so no support for a simple local mongodb instance in Prisma.

  • @oszi7058
    @oszi7058 Рік тому

    the relation joke at &:10 was so bad it became funny XDDDDDD

  • @dawid_dahl
    @dawid_dahl Рік тому

    Kleee. 🙌🏻

  • @ravel1
    @ravel1 2 роки тому

    really nice video

  • @viperactual
    @viperactual 2 роки тому +2

    Pronunciation please. Dude I can watch your videos. I barely made it 30s. It's an acronym, O.R.M., object relational mapping, nor orm or arm.

  • @AlexanderSuraphel
    @AlexanderSuraphel 2 роки тому

    Thanks for the vid. It would be nice if you do comparison between Knex + Objection, Prisma, TypeORM and MikroOrm and Sequelize.

    • @mgan59
      @mgan59 2 роки тому +1

      Heads up the maintainer announced on the issue tracker that objectionjs will no longer be maintained

    • @AlexanderSuraphel
      @AlexanderSuraphel 2 роки тому

      @@mgan59 Thanks

  • @nLamprok
    @nLamprok 2 роки тому +12

    Did you actually say KLI? Great video overall but please, ORM and CLI should be pronounced as abbreviations.

  • @Kay8B
    @Kay8B 2 роки тому +7

    Ormmm and Kleeeee???

  • @aaronmendez3302
    @aaronmendez3302 2 роки тому +1

    Great explanation. But my man my man, what the heck is a 'klee' and a 'reppo'

  • @gangsterholla179
    @gangsterholla179 2 роки тому +10

    Lmao CLI...

  • @ricardorien
    @ricardorien Рік тому

    It doesn't work on inteliJ? Wow even in Vim works awesome with the LSP + Format (Native).

  • @MaksymMinenko
    @MaksymMinenko 2 роки тому

    Prisma is amazing.

  • @nabilalhusail4731
    @nabilalhusail4731 2 роки тому

    What about performance?

  • @joshuanovak919
    @joshuanovak919 2 роки тому

    The link to the repo is broken btw

  • @oussamasethoum1665
    @oussamasethoum1665 2 роки тому +6

    CLI xD

  • @spookymv
    @spookymv Рік тому

    [o - r - m] not {orm}
    like [i - o - s] not {ios}
    and like like [mac - o - s] not {macos}
    I was stuck it because you're repeated too much

  • @permanar_
    @permanar_ 2 роки тому

    This is really useful video.
    I heard about when we deploy production with Prisma is pretty annoying because it needs some specific library to work on the web server.
    Is this true? And like, how annoying is this?
    Compare to TypeORM, does it have any kind of issues as well? Thanks!!

    • @manavsehgal7234
      @manavsehgal7234 2 роки тому

      Yes if deployed on cheaper web hosting then it will cause issues.
      I deployed my application on aws due to this problem only.

  • @oussamasethoum1665
    @oussamasethoum1665 2 роки тому +1

    The latency when I use Typeorm is better than Prisma.

  • @joostschuur
    @joostschuur 2 роки тому +2

    Had to stop watching the video at 'Klee'.

  • @senduranravikumar3554
    @senduranravikumar3554 2 роки тому +1

    What about sequalize

  • @kevinandeleven
    @kevinandeleven 2 роки тому +1

    Klee? What😂😂

  • @tecnoPTY
    @tecnoPTY 4 місяці тому

    Been using both of them but I got to say Prisma too much overhead

  • @REAZNx
    @REAZNx Рік тому +2

    I've never heard someone pronounce it "orm". There is a reason ORM is capitalised, you're meant to spell out each letter.

  • @13odman
    @13odman Рік тому

    Is this a computer voice?

  • @moosegoose1282
    @moosegoose1282 2 роки тому +1

    klee.

  • @zzzzafar.27
    @zzzzafar.27 2 роки тому +2

    Sequlize orm is dope 👍

    • @twentyhate
      @twentyhate 2 роки тому +2

      Their docs are dogshit though

  • @2toasty
    @2toasty Рік тому

    klee 💀

  • @SantoLucasST
    @SantoLucasST 2 роки тому

    The repository does not exist

  • @rm_4848
    @rm_4848 Рік тому

    Look

  • @maximodakila2873
    @maximodakila2873 7 місяців тому

    Stop coming up with your own jargon. `klee` for CLI, and `orm` for ORM. Are you kidding me?

  • @SergiySev
    @SergiySev Рік тому

    just don't use TypeORM it's pain in the ass. IT IS BAAAAD!

  • @benbowers3613
    @benbowers3613 2 роки тому

    Fantastic video! Thanks!