From b8a9846b782a3dd989739c8754975b3bf1585f99 Mon Sep 17 00:00:00 2001 From: Pinglei Guo <5621298+at15@users.noreply.github.com> Date: Fri, 27 Dec 2024 23:57:03 -0800 Subject: [PATCH] Update link to d1 batch API New doc link is https://developers.cloudflare.com/d1/worker-api/d1-database/#batch instead of https://developers.cloudflare.com/d1/platform/client-api/#batch-statements --- src/content/docs/batch-api.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/docs/batch-api.mdx b/src/content/docs/batch-api.mdx index 703a25a3..e6702af6 100644 --- a/src/content/docs/batch-api.mdx +++ b/src/content/docs/batch-api.mdx @@ -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. @@ -125,4 +125,4 @@ db.select()..., db.update()..., db.delete()..., db.insert()..., -``` \ No newline at end of file +```