mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
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:
parent
79303163b2
commit
689cf9c139
3 changed files with 19 additions and 6 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue