You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use a planetscale DB, and we use drizzle's planetscale driver to connect to the DB. We recently had a need to use planetscale boost, but currently drizzle's planetscale integration doesn't seem to have an option to support planetscale boost.
We can use it by running the SET @@boost_cached_queries = true query directly, but I don't know if there is a way to run that query in the same connection, when using drizzle's query or select api (maybe using a transaction could work, but I haven't tested that yet)
It seems quite hard to control session explicitly because planetscale Client object basically establishes new connection for each execution and the drizzle wrapper doesn't expose the session object directly.
If possible, could you please support an official option for planetscale boost? Thanks.
The text was updated successfully, but these errors were encountered:
Describe what you want
Hi drizzle team!
We use a planetscale DB, and we use drizzle's planetscale driver to connect to the DB. We recently had a need to use planetscale boost, but currently drizzle's planetscale integration doesn't seem to have an option to support planetscale boost.
We can use it by running the
SET @@boost_cached_queries = true
query directly, but I don't know if there is a way to run that query in the same connection, when using drizzle's query or select api (maybe using a transaction could work, but I haven't tested that yet)It seems quite hard to control session explicitly because planetscale Client object basically establishes new connection for each execution and the drizzle wrapper doesn't expose the session object directly.
If possible, could you please support an official option for planetscale boost? Thanks.
The text was updated successfully, but these errors were encountered: