Skip to content

Commit 5597a3f

Browse files
committed
Fixing wording, linking to SQLite documentation.
1 parent b580319 commit 5597a3f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,4 +414,8 @@ 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.
417+
Attempts to optimize all schemas in a database by running various maintenance operations.
418+
419+
We recommend running this command after creating an index.
420+
421+
Refer to [SQLite PRAGMA optimize documentation](https://www.sqlite.org/pragma.html#pragma_optimize) for more information on how the command optimizes a database.

0 commit comments

Comments
 (0)