mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
04e7fb6c9a
commit
12e4661094
1 changed files with 0 additions and 11 deletions
|
|
@ -129,17 +129,6 @@ The performance of facets can be greatly improved by adding indexes on the colum
|
||||||
Enter ".help" for usage hints.
|
Enter ".help" for usage hints.
|
||||||
sqlite> CREATE INDEX Food_Trucks_state ON Food_Trucks("state");
|
sqlite> CREATE INDEX Food_Trucks_state ON Food_Trucks("state");
|
||||||
|
|
||||||
.. _facet_by_m2m:
|
|
||||||
|
|
||||||
Facet by many-to-many
|
|
||||||
---------------------
|
|
||||||
|
|
||||||
Datasette can detect many-to-many SQL tables - defined as SQL tables which have foreign key relationships to two other tables.
|
|
||||||
|
|
||||||
If a many-to-many table exists pointing at the table you are currently viewing, Datasette will suggest you facet the table based on that relationship.
|
|
||||||
|
|
||||||
Example here: `latest.datasette.io/fixtures/roadside_attractions?_facet_m2m=attraction_characteristic <https://latest.datasette.io/fixtures/roadside_attractions?_facet_m2m=attraction_characteristic>`__
|
|
||||||
|
|
||||||
.. _facet_by_json_array:
|
.. _facet_by_json_array:
|
||||||
|
|
||||||
Facet by JSON array
|
Facet by JSON array
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue