Closed simonw closed 5 years ago
I'm going to have this on by default. You can turn it off with a command-line option.
@click.option('--index-foreign-keys/--no-index-foreign-keys`, default=True)
Might use --index-fks
to save on typing and hep text space.
Useful for creating databases that are ready to be used with Datasette - because the Datasette "row" page attempts to show all backwards-links to the current item, which runs really slowly in the absence of indexes on those columns.
This depends on https://github.com/simonw/sqlite-utils/issues/33