Skip to content

Commit 17fe5d1

Browse files
committed
Adding PRAGMA optimize definition to partial.
1 parent 747eda0 commit 17fe5d1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/content/partials/d1/use-pragma-statements.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,3 +414,4 @@ Refer to the [foreign key documentation](/d1/sql-api/foreign-keys/) to learn mor
414414

415415
### `PRAGMA optimize`
416416

417+
Attempts to optimize the the database by running various maintenance operations. This statement runs `ANALYZE` if needed, which updates SQLite's internal statistics to improve query planning and makes better decisions on index usage.

0 commit comments

Comments
 (0)