Leonardo Dominguez
focux.dev
Leonardo Dominguez
@focux.dev
software engineer
i feel more comfortable using the sync api mostly because the underlying sqlite engine is sync and i'm good with the trade-offs cloudflare ended up. also, i'm not sure if there's any performance implications with drizzle async api
December 10, 2024 at 5:56 PM
yeah, basically it. That tell the worker to block all requests until the migrations have ran.
December 10, 2024 at 5:53 PM
ya, i've been using DO sqlite for some time now, my question was mostly directed to drizzle interface being async when the underlying storage is sync, but i just found out about drizzle's sync api interface (.run, .values, .all, .get), etc.
December 10, 2024 at 4:39 PM
now that you are here, is there any reason why drizzle API is async when the DO sqlite is sync?
December 10, 2024 at 4:00 PM
don't you need to block concurrency when running migrations? like, wouldn't you have a problem if you get two calls to the same DO while running the migrations?
December 10, 2024 at 1:00 PM
TIL that there was a drizzle adapter for DO, time to migrate all my sql to drizzle haha
December 10, 2024 at 12:50 PM