Skip to content

[BUG]: Extremely slow intellisense depending on schema size and amount #800

@ESchouten

Description

@ESchouten

What version of drizzle-orm are you using?

0.27.0

What version of drizzle-kit are you using?

0.19.1

Describe the Bug

Intellisense gets unusably slow when providing the schema in the drizzle(sql, { schema }) instantiation.
The intellisense delay depends on the schema amount size, it approaches 8 seconds for us on a Macbook Pro M2 Max with 40 tables, with other, non Macbook M processor people are reporting 10-15 second delays.
It gets faster again when we only provide a subset of the schemas.

Expected behavior

Instant/fast intellisense.

I suppose the TS types are calculated on the go when intellisense activates? This might be the bottleneck. Other libraries generate types and store them on the filesystem. Is this an option for Drizzle?

Environment & setup

Macbook Pro M2 Max

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions