{"html_url": "https://github.com/simonw/datasette/issues/649#issuecomment-592798079", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/649", "id": 592798079, "node_id": "MDEyOklzc3VlQ29tbWVudDU5Mjc5ODA3OQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-02-29T01:00:16Z", "updated_at": "2020-02-29T01:00:16Z", "author_association": "OWNER", "body": "I tried this out in https://github.com/simonw/datasette/commit/34bc16aa591a2f02b2bb33277d33e5bccfb95569 with an upper limit of 100MB and it worked an absolute treat against my personal Dogsheep.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 534530973, "label": "Reduce table counts on index page with many databases"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/649#issuecomment-562940252", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/649", "id": 562940252, "node_id": "MDEyOklzc3VlQ29tbWVudDU2Mjk0MDI1Mg==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-12-08T11:59:52Z", "updated_at": "2019-12-08T12:00:12Z", "author_association": "OWNER", "body": "The easiest solution would be to only show counts on the index pages for immutable (`-i`) databases.\r\n\r\nI don't like this, because the most common uses of Datasette don't in my opinion justify it. Most of the time Datasette will be running against a single, small, mutable database. I'd like to show counts in that case.\r\n\r\nSome options:\r\n\r\n- disable counts on the index page for mutable databases of more than one is attached\r\n- disable counts on the index page for databases where the file in disk is larger than a specified threshold (maybe 10MB? I'm making up this number)\r\n- implement an overall timer which cuts off table counting once the sum of time spent on it has gone beyond a second\r\n\r\nWorth prototyping a bit to see what works best.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 534530973, "label": "Reduce table counts on index page with many databases"}, "performed_via_github_app": null}