-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Speedup types with huge databases. Fixes #867 #1080
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
4e6c35e
to
dd1c732
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey 👋
LGTM! 🚀
Left a question..
Let's make sure these new types are exported @ index.ts
.
Do you mean the |
dd1c732
to
cf5ef41
Compare
Come to think of it, we don't need to. |
This speeds up type checks with huge database interfaces.
The added type test case took 12 seconds to check before the fixes and about 0.4 seconds after the fixes.
Once again, I have no idea why things got faster, but it's related to function overloads. Squashing all overloads of
selectFrom
,updateTable
,mergeInto
anddeleteFrom
into a single signature fixes the perf issues 🤷This is a slightly breaking change. It breaks some generics use cases, but those were pretty much unusable already anyways.