K
Kysely5mo ago
bigman80

Does the TypeScript performance scale with larger projects?

I just started migrating to kysely, love it so far! I was wondering how well the TypeScript performance scales for medium to large projects. For example, I'm working on a project with 500 db tables and 600k lines of code with much of it composed of db queries. As I'm rewriting the first few queries, I'm noticing slight delays with type inference and IDE code completion. Nothing major, but I'm worried it might get worse as I migrate more of the project and more type checking needs to happen. Is this an actual concern or am I overthinking it? Can anyone who is using kysely on a larger project attest to whether they're running into type performance issues?
Solution:
I'd strongly consider splitting into domains/services and exposing kysely clients with only what's known/used by each domain/service.
Jump to solution
4 Replies
koskimas
koskimas5mo ago
It might be an actual concern with a project that big. I've never used Kysely with anything that big.
Solution
Igal
Igal5mo ago
I'd strongly consider splitting into domains/services and exposing kysely clients with only what's known/used by each domain/service.
Igal
Igal5mo ago
Also, following the TypeScript team's performance guidelines for monorepos.
bigman80
bigman805mo ago
Thanks for the recommendations, I'll look over those and run some performance tests to see if it makes sense for me to complete the migration right now.