code9
DTDrizzle Team
•Created by Md Jahidul Islam milon on 6/18/2023 in #help
Drizzle in vscode Ts Server is very slow
Im using destructuring indeed, so for passing the schemas to the drizzle client you just do something like
import * as allSchemas from "my-exporting-file"
??17 replies
DTDrizzle Team
•Created by B33fb0n3 on 4/9/2024 in #help
types for database/transaction
Hey guys, do you have this working? Because i still get an error when doing something like
trx.query.user.findFirst
where ts complains about excessive stack depth comparing types...
11 replies
DTDrizzle Team
•Created by Md Jahidul Islam milon on 6/18/2023 in #help
Drizzle in vscode Ts Server is very slow
Hey @Andrii Sherman thanks for your reply. Yeah we are having this issue, although i cant say "still" since we didnt use drizzle a year ago. Our db has 440 tables. Ive tried setting the "as string" on the field names which reduced the time from over 20 seconds on our slowest machine to a little under 10 secs, but we are aiming for under 2 secs on our slowest machine (16gb m1). Im working now on a script that can split the schema (since we generate schema with drizzle kit, and we dont want to manually manage schema)
17 replies
DTDrizzle Team
•Created by Md Jahidul Islam milon on 6/18/2023 in #help
Drizzle in vscode Ts Server is very slow
is there any update on this? it seems to still be an issue on 0.32
17 replies
DTDrizzle Team
•Created by code9 on 7/15/2024 in #help
slow code suggestions
@Raphaël M (@rphlmr) ⚡ @Luxaritas
14 replies
DTDrizzle Team
•Created by code9 on 7/15/2024 in #help
slow code suggestions
a little update; so adding the
as string
bit reduced the suggestion time from over 20 secs, to 8-9 seconds on our slowest workstations and about 2-4 secs for the faster ones. any thoughts on how to get this to under 2 secs?
I split the schema in 2 files first to see if there was any improvement, but there was no noticeable improvement, although perhaps splitting in more than 2 files would work? but even so, the schema is about 8k lines and we previously used prisma where the schema was like 2 times that (for the same tables), so it kind of doesnt feel like the issue is the schema file length.14 replies
DTDrizzle Team
•Created by code9 on 7/15/2024 in #help
slow code suggestions
Ill try with
as string
first and then splitting it14 replies
DTDrizzle Team
•Created by code9 on 7/15/2024 in #help
slow code suggestions
@Raphaël M (@rphlmr) ⚡ yes, they are all in the same file (as its generated by
drizzle-kit
introspection)14 replies