mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Renamed ?_sql_time_limit_ms= to ?_timelimit, closes #242
This commit is contained in:
parent
a4cc5dc813
commit
349e262bb1
4 changed files with 8 additions and 8 deletions
|
|
@ -154,7 +154,7 @@ The Datasette table view takes a number of special querystring arguments:
|
|||
You can pass multiple ``_group_count`` columns to return counts against
|
||||
unique combinations of those columns.
|
||||
|
||||
``?_sql_time_limit_ms=MS``
|
||||
``?_timelimit=MS``
|
||||
Sets a custom time limit for the query in ms. You can use this for optimistic
|
||||
queries where you would like Datasette to give up if the query takes too
|
||||
long, for example if you want to implement autocomplete search but only if
|
||||
|
|
|
|||
|
|
@ -62,9 +62,9 @@ If this time limit is too short for you, you can customize it using the
|
|||
datasette mydatabase.db --sql_time_limit_ms=3500
|
||||
|
||||
You can optionally set a lower time limit for an individual query using the
|
||||
``_sql_time_limit_ms`` query string argument::
|
||||
``_timelimit`` query string argument::
|
||||
|
||||
/my-database/my-table?qSpecies=44&_sql_time_limit_ms=100
|
||||
/my-database/my-table?qSpecies=44&_timelimit=100
|
||||
|
||||
This would set the time limit to 100ms for that specific query. This feature
|
||||
is useful if you are working with databases of unknown size and complexity -
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue