table.create_index(..., analyze=True), refs #378

This commit is contained in:
Simon Willison 2022-01-10 12:00:24 -08:00
commit 0d10402f7b
3 changed files with 19 additions and 3 deletions

View file

@ -2204,6 +2204,8 @@ You can create a unique index by passing ``unique=True``:
Use ``if_not_exists=True`` to do nothing if an index with that name already exists.
Pass ``analyze=True`` to run ``ANALYZE`` against the new index after creating it.
.. _python_api_analyze:
Optimizing index usage with ANALYZE