mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
How to create indexes with sqlite-utils
This commit is contained in:
parent
eb53837d2a
commit
40e5b0a5b5
1 changed files with 4 additions and 0 deletions
|
|
@ -133,6 +133,10 @@ The performance of facets can be greatly improved by adding indexes on the colum
|
|||
Enter ".help" for usage hints.
|
||||
sqlite> CREATE INDEX Food_Trucks_state ON Food_Trucks("state");
|
||||
|
||||
Or using the `sqlite-utils <https://sqlite-utils.datasette.io/en/stable/cli.html#creating-indexes>`__ command-line utility::
|
||||
|
||||
$ sqlite-utils create-index mydatabase.db Food_Trucks state
|
||||
|
||||
.. _facet_by_json_array:
|
||||
|
||||
Facet by JSON array
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue