Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE]: Support for planetscale boost #2880

Open
ljb7977 opened this issue Aug 30, 2024 · 0 comments
Open

[FEATURE]: Support for planetscale boost #2880

ljb7977 opened this issue Aug 30, 2024 · 0 comments
Labels
driver/planetscale enhancement New feature or request

Comments

@ljb7977
Copy link

ljb7977 commented Aug 30, 2024

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.

@ljb7977 ljb7977 added the enhancement New feature or request label Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
driver/planetscale enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants