I tried 8 different Postgres ORMs

I tried 8 different Postgres ORMs

Beyond Fireship

1 год назад

388,795 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Priyank Rai
Priyank Rai - 15.10.2023 16:11

winner is one and only eye : look for what you need manually

Ответить
Ali Sufyan
Ali Sufyan - 03.10.2023 18:33

Digitally Transmitted Diseases 😂😂😂😂😂

Ответить
Sarunas
Sarunas - 03.10.2023 00:59

Its a bit idiotic that we replace sql language with pseudo sql ceamped into function calls and make ourselves learn an extra framework

Ответить
Danielo515
Danielo515 - 21.09.2023 21:44

There is nothing nicer than having someone with your same mindset that has already made the homework in the topics you're interested at. Great

Ответить
I. J.
I. J. - 17.09.2023 12:04

TypeORM does not guarantee any kind of type safety if you use the query builder to make some joins, add computed properties, etc. It always just returns the entity type, no matter the query configuration you've made. That can make it even worse than having no typings at all. You oculd use a raw query which accepts a generic, but then what's the point of it.

Ответить
Ikhsan fadillah
Ikhsan fadillah - 14.09.2023 03:05

I hate orm

Ответить
Iron Candy
Iron Candy - 11.09.2023 15:03

SQL aint no relational database... it's a primitive type table database. You may as well claim C is object oriented cause you got all the tools you need to build some object system with it.

Ответить
Helvanic
Helvanic - 09.09.2023 12:51

Just use a type-safe query-builder like Kysely and avoid all the ORM issues.

Ответить
Laxman Adhikari
Laxman Adhikari - 07.09.2023 07:22

this is the reason some time i hate node js too many options what ooo for god shake just tell me one what sould i use

Ответить
Julius
Julius - 06.09.2023 12:36

Laughs in Eloquent

Ответить
Paul Macfarlane
Paul Macfarlane - 30.08.2023 03:07

I'll save all typescript developers some time here. Don't even consider using Sequelize. You're welcome

Ответить
John Smith
John Smith - 27.08.2023 01:08

Oh no. Don't use serial for your pk!

Ответить
Neddier
Neddier - 25.08.2023 20:42

Funny how ORM's are rarely used though. Companies love rawdogging SQL queries

Ответить
Xen
Xen - 23.08.2023 08:15

Prisma's schema DSL IS the dealbreaker for me. It's so bad. It's really not a good DX...=

Ответить
ebrahim alfardan
ebrahim alfardan - 21.08.2023 01:19

I wonder if this ORM works with Recktor as well 🤔

Ответить
Sibabrat Swain
Sibabrat Swain - 16.08.2023 21:01

I worked extensively in one of the ORM that’s Eloquent which Laravel uses which is a PHP framework

Ответить
pasizdobrekuce
pasizdobrekuce - 15.08.2023 18:17

Hey Knex, Eloquent says "Hi" .👋

Ответить
Kareszrk
Kareszrk - 12.08.2023 23:03

what about question marks?

Ответить
mjdryden
mjdryden - 11.08.2023 04:00

ORMs are one of those things that aren't worth the trouble in the long run.

They can be nice in a quick prototype, but for an app that lives for at least a few years, you'll inevitably start bumping into performance issues or weird ORM behaviour that costs a lot of time to resolve.

The first time I encountered an ORM I thought it was magic, but after 15+ years in the business, I no longer find them worth the trouble. Writing raw SQL isn't that hard and as long as you use parameterized statements, much less likely to bite you in the end.

Save your future self the headache and start with a low level library.

Ответить
Mistart
Mistart - 11.08.2023 03:16

Prisma is the worst of all, I agree they provide the best developer experience. But once you start get production workload you will notice the bad performance. Bro they don't use joins in their generated queries

Ответить
Randson Alves
Randson Alves - 10.08.2023 18:46

this is gonna be very useful for my typescript api, living and leaning...

Ответить
Bib
Bib - 08.08.2023 05:41

clearly prisma and typeorm are the best ones. I'd go with prisma because... rust.

Ответить
Hippity Hop
Hippity Hop - 07.08.2023 22:58

What I found after long switching between frameworks is that php is enough for most uses. React, Vue etc. is made for large scale one site applications like Facebook, Twitter, Spotify. Same thing goes for optimising databases, just using basics is better most of the time.

Ответить
Nickname863
Nickname863 - 07.08.2023 11:53

I use my ORM to map database queries to objects. I know crazy.

Ответить
Reece Dunham
Reece Dunham - 05.08.2023 04:03

I cannot begin to say how awful TypeORM is. DO NOT USE IT, PLEASE!

Ответить
Saad Abbasi
Saad Abbasi - 04.08.2023 14:15

Jeff And Ozzyman are my most favourite Australians ❤️

Ответить
Iambor
Iambor - 29.07.2023 00:42

Trust me, you don't want to bother with sequelize if you're using typescript. It just causes so many weird bugs, is not documented as well as it looks at first glance (many options objects are not specified in the api documentation, at least when i last used it), and forget it if you want to write a complicated query.

Ответить
Iivari Mokelainen
Iivari Mokelainen - 28.07.2023 23:38

Entity Framework is the best

Ответить
Rein Petersen
Rein Petersen - 26.07.2023 16:31

Hi! I just wanted to add another perspective regarding ORMs. My experience is that they should be considered anti-pattern and I can outline the reasons why:
1. they won't excuse developers from having to understand good database design and proper querying and, most often, introduce N+1 problem through that naivete
2. they encourage direct table access with what amounts to adhoc SQL which ties the hands of database developers when the need arises to reorganize data for scale and performance
3. most relational databases offer things like functions, stored-procs and prepared statements which parameterize queries to solve things like:
a. combating sql injection
b. providing an access layer tier above base tables which:
i. provides API-like access and
ii. grants the freedom to re-org base tables as needed
iii. simplified access-level authorization
Those are the main points (there are others). Whether an ORM is used or not, there is no escape from getting to know your serialization (storage) layer well. You should be using functions or stored-procs as access points to your database regardless. Which then begs the question, why do you even need an ORM?

Ответить
mahadevovnl
mahadevovnl - 26.07.2023 14:23

I kinda prefer Knex because it gives me control and everything still looks and feels like SQL. Very transparent in its use. No need to figure out how joins work in an ORM or if it does expensive sub-queries. I'm responsible for optimizing it, and... ChatGPT is also familiar with it.

Ответить
Ben Lambillotte
Ben Lambillotte - 25.07.2023 09:36

“joist-ts” is an awesome option for graphql + Postgres - has dataloader built in so any graph queries are N+1 safe. Reminds me a lot of ActiveRecord for Rails

Ответить
ATXAdventure
ATXAdventure - 25.07.2023 07:07

If it's an mvp, do yourself a favor and just use sqlite.

Ответить
Larisa El-Netanany
Larisa El-Netanany - 24.07.2023 23:36

Eh. I did not expect you to skip Bookshelf...

Ответить
sam hobson
sam hobson - 22.07.2023 08:19

I swear people will do anything to not write squeel

Ответить
Red kowalsky
Red kowalsky - 19.07.2023 09:05

as far as i know django orm is really good

Ответить
Maurice Döpke
Maurice Döpke - 19.07.2023 01:32

For Postgres PgTyped is an awesome project. You write bare SQL and it typeschecks agains the databse and generates query methods that are comletely typesafe, even with complex joins or recursive queries.

Ответить
arkadianriver
arkadianriver - 16.07.2023 01:19

What's drizzle:p because drizzle looks slower than all the rest.

Ответить
Andy Ortlieb
Andy Ortlieb - 15.07.2023 02:00

I always hated the word "migrations". Its not leaving its just changing.

Ответить
santiago capdevila
santiago capdevila - 13.07.2023 07:50

Oh, I had to use knex, I liked it, it reminded me of Eloquent

However I sucked on JS so back to PHP lol

Ответить
Atiq Samtia
Atiq Samtia - 12.07.2023 15:49

Nice to have Eloquent ORM baked right in the Laravel Framework providing all of these and more features out of the box.

Ответить
Jack
Jack - 11.07.2023 16:03

I jsut wanted to create a simple Website! Why is the developer community torturing me with new ways every few days😢

Ответить
magfal
magfal - 09.07.2023 14:09

ORMs are shit.

You constrain your database's potential to the level of the ORM which is usually a 90% loss, if your database is postgres.

Ответить
fa bh
fa bh - 09.07.2023 00:45

Just came here after watching the codedamn video on prisma 😂😂😂😂😂

Ответить
Jiong Le
Jiong Le - 07.07.2023 05:12

HAHAHA! PG the OG, TOP G and my DO Double G Got me so bad...

Ответить
Omiros Vasdaris
Omiros Vasdaris - 06.07.2023 23:26

Prisma doesn't support Joins.
Use with caution.

Ответить
Nickolai Zein
Nickolai Zein - 05.07.2023 17:53

Objection js must be here!

Ответить