Index page only shows row counts for smaller databases

The index page now only shows row counts for immutable databases OR for
databases with less than 30 tables provided it could get a count for
each of those tables in less than 10ms.

Closes #467, Refs #460
This commit is contained in:
Simon Willison 2019-05-15 20:02:33 -07:00
commit 689cf9c139
3 changed files with 19 additions and 6 deletions

View file

@ -445,6 +445,7 @@ def test_no_files_uses_memory_database(app_client_no_files):
"hidden_table_rows_sum": 0,
"hidden_tables_count": 0,
"name": ":memory:",
"show_table_row_counts": False,
"path": "/:memory:",
"table_rows_sum": 0,
"tables_count": 0,