Skip to content

Commit f62005c

Browse files
authored
Merge pull request #184 from planetscale/nickvanw/boost-docs
README: remove extra docs
2 parents e794dd5 + da881b8 commit f62005c

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

README.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -82,23 +82,6 @@ const results = await conn.transaction(async (tx) => {
8282
console.log(results)
8383
```
8484

85-
### Usage with PlanetScale Boost
86-
87-
To enable PlanetScale Boost, run `SET @@boost_cached_queries = true` once. All subsequent queries run on the same connection will use boost if it's enabled for the query pattern. Non-matching queries will run as normal.
88-
89-
To learn more, visit: [Query caching with PlanetScale Boost](https://planetscale.com/docs/concepts/query-caching-with-planetscale-boost)
90-
91-
```ts
92-
const conn = client.connection()
93-
// Enable boost for the connection
94-
await conn.execute('SET @@boost_cached_queries = true')
95-
96-
const results = await conn.execute('...')
97-
98-
// Optionally, you may disable boost for the connection by setting to false
99-
await conn.execute('SET @@boost_cached_queries = false')
100-
```
101-
10285
### Custom fetch function
10386

10487
Node.js version 18 includes a built-in global `fetch` function. When using an older version of Node.js, you can provide a custom fetch function implementation. We recommend the [`undici`][1] package on which Node's built-in fetch is based.

0 commit comments

Comments
 (0)