{"html_url": "https://github.com/simonw/datasette/issues/523#issuecomment-504809397", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/523", "id": 504809397, "node_id": "MDEyOklzc3VlQ29tbWVudDUwNDgwOTM5Nw==", "user": {"value": 2657547, "label": "rixx"}, "created_at": "2019-06-24T01:38:14Z", "updated_at": "2019-06-24T01:38:14Z", "author_association": "CONTRIBUTOR", "body": "Ah, apologies \u2013 I had found and read those issues, but I was under the impression that they refered only to the filtered row count, not the unfiltered total row count.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 459627549, "label": "Show total/unfiltered row count when filtering"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/523#issuecomment-504807727", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/523", "id": 504807727, "node_id": "MDEyOklzc3VlQ29tbWVudDUwNDgwNzcyNw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-06-24T01:24:07Z", "updated_at": "2019-06-24T01:24:07Z", "author_association": "OWNER", "body": "For databases opened in immutable mode we pre-calculate the total row count for every table precisely so we can offer this kind of functionality without too much of a performance hit. The total row count is already available to the template (you can hit the .json endpoint to see it), so implementing this should be possible just by updating the template.\r\n\r\nFor mutable databases we have a mechanism for attempting the count and giving up after a specified time limit - we can use that to get \"3 of many\".\r\n\r\nIt looks like this is actually a dupe of #127 and #134.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 459627549, "label": "Show total/unfiltered row count when filtering"}, "performed_via_github_app": null}