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

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 พ.ย. 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 ปีที่แล้ว +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

  • @JayTailor45
    @JayTailor45 4 หลายเดือนก่อน

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

  • @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.

  • @arshadpakkali
    @arshadpakkali 2 ปีที่แล้ว +5

    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?

  • @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.

  • @alvin3171997
    @alvin3171997 2 ปีที่แล้ว

    Awesome overview, thank you!

  • @ImranSheikh-kg4qd
    @ImranSheikh-kg4qd 2 ปีที่แล้ว +1

    Great Video , Thank You.

  • @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

  • @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

  • @nLamprok
    @nLamprok 2 ปีที่แล้ว +12

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

  • @pedrolefteen
    @pedrolefteen 2 ปีที่แล้ว

    Great video! Thanks!

  • @oszi7058
    @oszi7058 ปีที่แล้ว

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

  • @borisbosnjak4812
    @borisbosnjak4812 2 ปีที่แล้ว

    Thanks for this 🙂

  • @aaronmendez3302
    @aaronmendez3302 2 ปีที่แล้ว +1

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

  • @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.

  • @joja2174
    @joja2174 2 ปีที่แล้ว

    my eyes bled when they saw typeorm schema

  • @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.

  • @dawid_dahl
    @dawid_dahl ปีที่แล้ว

    Kleee. 🙌🏻

  • @vatsalpatel3669
    @vatsalpatel3669 2 ปีที่แล้ว

    Thanks brother

  • @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

  • @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.

  • @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!

  • @ricardorien
    @ricardorien ปีที่แล้ว

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

  • @ravel1
    @ravel1 2 ปีที่แล้ว

    really nice video

  • @nabilalhusail4731
    @nabilalhusail4731 2 ปีที่แล้ว

    What about performance?

  • @viperactual
    @viperactual 2 ปีที่แล้ว +1

    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.

  • @MaksymMinenko
    @MaksymMinenko 2 ปีที่แล้ว

    Prisma is amazing.

  • @gangsterholla179
    @gangsterholla179 2 ปีที่แล้ว +9

    Lmao CLI...

  • @oussamasethoum1665
    @oussamasethoum1665 2 ปีที่แล้ว +6

    CLI xD

  • @joshuanovak919
    @joshuanovak919 2 ปีที่แล้ว

    The link to the repo is broken btw

  • @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'.

  • @Kay8B
    @Kay8B 2 ปีที่แล้ว +6

    Ormmm and Kleeeee???

  • @senduranravikumar3554
    @senduranravikumar3554 2 ปีที่แล้ว +1

    What about sequalize

  • @tecnoPTY
    @tecnoPTY 3 หลายเดือนก่อน

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

  • @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

  • @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?

  • @kevinandeleven
    @kevinandeleven 2 ปีที่แล้ว +1

    Klee? What😂😂

  • @SantoLucasST
    @SantoLucasST 2 ปีที่แล้ว

    The repository does not exist

  • @zzzzafar.27
    @zzzzafar.27 2 ปีที่แล้ว +2

    Sequlize orm is dope 👍

    • @twentyhate
      @twentyhate 2 ปีที่แล้ว +2

      Their docs are dogshit though

  • @moosegoose1282
    @moosegoose1282 2 ปีที่แล้ว +1

    klee.

  • @maximodakila2873
    @maximodakila2873 7 หลายเดือนก่อน

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

  • @rm_4848
    @rm_4848 ปีที่แล้ว

    Look

  • @2toasty
    @2toasty ปีที่แล้ว

    klee 💀

  • @SergiySev
    @SergiySev ปีที่แล้ว

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

  • @benbowers3613
    @benbowers3613 2 ปีที่แล้ว

    Fantastic video! Thanks!