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

Update link to d1 batch API #471

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/content/docs/batch-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The transaction is controlled by the libSQL backend. If all of the statements ar
the transaction is committed. If any of the statements fail, the entire transaction is rolled back and no changes are made.

**D1 Batch API explanation**:
_[source](https://developers.cloudflare.com/d1/platform/client-api/#batch-statements)_
_[source](https://developers.cloudflare.com/d1/worker-api/d1-database/#batch)_

> Batching sends multiple SQL statements inside a single call to the database.
This can have a huge performance impact as it reduces latency from network round trips to D1.
Expand Down Expand Up @@ -125,4 +125,4 @@ db.select()...,
db.update()...,
db.delete()...,
db.insert()...,
```
```