{"html_url": "https://github.com/simonw/datasette/issues/749#issuecomment-622450636", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/749", "id": 622450636, "node_id": "MDEyOklzc3VlQ29tbWVudDYyMjQ1MDYzNg==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-05-01T16:08:46Z", "updated_at": "2020-05-01T16:08:46Z", "author_association": "OWNER", "body": "Proposed solution: on Cloud Run don't show the \"download database\" link if the database file is larger than 32MB.\r\n\r\nI can do this with a new config setting, `max_db_mb`, which is automatically set by the `publish cloudrun` command.\r\n\r\nThis is consistent with the existing `max_csv_mb` setting: https://datasette.readthedocs.io/en/stable/config.html#max-csv-mb\r\n\r\nI should set `max_csv_mb` to 32MB on Cloud Run deploys as well.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 610829227, "label": "Cloud Run fails to serve database files larger than 32MB"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/749#issuecomment-726417847", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/749", "id": 726417847, "node_id": "MDEyOklzc3VlQ29tbWVudDcyNjQxNzg0Nw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-11-13T00:05:14Z", "updated_at": "2020-11-13T00:05:14Z", "author_association": "OWNER", "body": "https://cloud.google.com/blog/products/serverless/cloud-run-now-supports-http-grpc-server-streaming indicates this limit should no longer apply:\r\n\r\n> With this addition, Cloud Run can now ... Send responses larger than the previous 32 MB limit\r\n\r\nBut I'm still getting errors from Cloud Run attempting to download `.db` files larger than 32 MB.\r\n\r\nI filed a question in their issue tracker about that here: https://issuetracker.google.com/issues/173038375", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 610829227, "label": "Cloud Run fails to serve database files larger than 32MB"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/749#issuecomment-737563699", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/749", "id": 737563699, "node_id": "MDEyOklzc3VlQ29tbWVudDczNzU2MzY5OQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-12-02T23:45:42Z", "updated_at": "2020-12-02T23:45:42Z", "author_association": "OWNER", "body": "I asked about this on Twitter - https://twitter.com/steren/status/1334281184965140483\r\n\r\n> You simply need to send the `Transfer-Encoding: chunked` header.", "reactions": "{\"total_count\": 2, \"+1\": 2, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 610829227, "label": "Cloud Run fails to serve database files larger than 32MB"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/749#issuecomment-737580084", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/749", "id": 737580084, "node_id": "MDEyOklzc3VlQ29tbWVudDczNzU4MDA4NA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-12-03T00:31:14Z", "updated_at": "2020-12-03T00:31:14Z", "author_association": "OWNER", "body": "This works!\r\n\r\n```\r\n/tmp % wget 'https://covid-19.datasettes.com/covid.db'\r\n--2020-12-02 16:28:02-- https://covid-19.datasettes.com/covid.db\r\nResolving covid-19.datasettes.com (covid-19.datasettes.com)... 172.217.5.83\r\nConnecting to covid-19.datasettes.com (covid-19.datasettes.com)|172.217.5.83|:443... connected.\r\nHTTP request sent, awaiting response... 200 OK\r\nLength: unspecified [application/octet-stream]\r\nSaving to: \u2018covid.db\u2019\r\n\r\ncovid.db [ <=> ] 306.42M 3.27MB/s in 98s \r\n\r\n2020-12-02 16:29:40 (3.13 MB/s) - \u2018covid.db\u2019 saved [321306624]\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 610829227, "label": "Cloud Run fails to serve database files larger than 32MB"}, "performed_via_github_app": null}