datasette/datasette/templates
Simon Willison 08f4b7658f
Show facets that timed out using new InterruptedError
If the user requests some _facet= options that do not successfully execute in
the configured facet_time_limit_ms, we now show a warning message like this:

    These facets timed out: rowid, Title

To build this I had to clean up our SQLite interrupted logic. We now raise a
custom InterruptedError exception when SQLite terminates due to exceeding a
time limit.

In implementing this I found and fixed a logic error where invalid SQL was
being generated in some cases for our faceting calculations but the resulting
sqlite3.OperationalError had been incorrectly captured and treated as a
timeout.

Refs #255
Closes #269
2018-05-17 23:11:23 -07:00
..
500.html Better mechanism for handling errors; 404s for missing table/database 2018-04-13 11:17:22 -07:00
_codemirror.html Canned query support + database/query template refactor 2017-12-05 08:17:02 -08:00
_codemirror_foot.html Canned query support + database/query template refactor 2017-12-05 08:17:02 -08:00
_description_source_license.html metadata.json support for per-table/per-database metadata 2017-12-07 08:47:07 -08:00
_rows_and_columns.html _sort/_next links now use new path_with_replaced_args method 2018-05-16 08:27:24 -07:00
base.html Better mechanism for handling errors; 404s for missing table/database 2018-04-13 11:17:22 -07:00
database.html escape_sqlite_table_name => escape_sqlite, handles reserved words 2018-04-03 06:40:49 -07:00
index.html table_rows => table_rows_count, filtered_table_rows => filtered_table_rows_count 2018-04-08 22:24:24 -07:00
query.html Added class=rows-and-columns to custom query results table 2018-04-25 20:24:22 -07:00
row.html New ?_shape=objects/object/lists param for JSON API (#192) 2018-04-03 07:52:54 -07:00
show_json.html Added /-/metadata /-/plugins /-/inspect, closes #225 2018-04-18 22:25:22 -07:00
table.html Show facets that timed out using new InterruptedError 2018-05-17 23:11:23 -07:00