{"html_url": "https://github.com/simonw/datasette/issues/1853#issuecomment-1290995178", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1853", "id": 1290995178, "node_id": "IC_kwDOBm6k_c5M8wXq", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-10-25T18:46:33Z", "updated_at": "2022-10-25T18:46:33Z", "author_association": "OWNER", "body": "I ran a very crude benchmark on my laptop using Locust (against the official macOS packages from www.python.org for Python 3.10 and Python 3.11) and saw a substantial speed increase:\r\n\r\n533.89 requests/second on 3.11\r\n413.56 requests/second on 3.10\r\n\r\nThat was from running Locust against this `locustfile.py`:\r\n```python\r\nfrom locust import HttpUser, task\r\n\r\nclass CounterOne(HttpUser):\r\n @task\r\n def hello(self):\r\n self.client.get(\"/-/static/app.css\")\r\n```\r\nUsing:\r\n\r\n locust --headless --users 4 --spawn-rate 4 -H http://127.0.0.1:8001", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1422915587, "label": "Upgrade Datasette Docker to Python 3.11"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1853#issuecomment-1291006149", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1853", "id": 1291006149, "node_id": "IC_kwDOBm6k_c5M8zDF", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-10-25T18:57:33Z", "updated_at": "2022-10-25T18:57:33Z", "author_association": "OWNER", "body": "Ran the upgrade on the Datasette Cloud image first, works fine there.\r\n\r\nhttps://simon.datasette.cloud/-/versions shows me:\r\n\r\n```\r\n{\r\n \"python\": {\r\n \"version\": \"3.11.0\",\r\n \"full\": \"3.11.0 (main, Oct 25 2022, 05:00:36) [GCC 10.2.1 20210110]\"\r\n },\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1422915587, "label": "Upgrade Datasette Docker to Python 3.11"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1853#issuecomment-1291009987", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1853", "id": 1291009987, "node_id": "IC_kwDOBm6k_c5M8z_D", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-10-25T19:01:23Z", "updated_at": "2022-10-25T19:01:23Z", "author_association": "OWNER", "body": "Also tested by running this locally:\r\n\r\n datasette publish cloudrun fixtures.db --service issue-1853\r\n\r\nhttps://issue-1853-j7hipcg4aq-uc.a.run.app/-/versions now shows Python 3.11.0.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1422915587, "label": "Upgrade Datasette Docker to Python 3.11"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1853#issuecomment-1291012637", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1853", "id": 1291012637, "node_id": "IC_kwDOBm6k_c5M80od", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-10-25T19:04:03Z", "updated_at": "2022-10-25T19:04:09Z", "author_association": "OWNER", "body": "And tested `datasette package` like this:\r\n\r\n```\r\ndatasette package fixtures.db -t datasette-package-python-upgrade-3-11\r\n```\r\nThen:\r\n```\r\ndocker run -p 8081:8001 datasette-package-python-upgrade-3-11\r\n```\r\nAnd tested it like this:\r\n```\r\ncurl http://localhost:8081/-/versions.json | jq\r\n```\r\nOutput:\r\n```\r\n{\r\n \"python\": {\r\n \"version\": \"3.11.0\",\r\n \"full\": \"3.11.0 (main, Oct 25 2022, 05:00:36) [GCC 10.2.1 20210110]\"\r\n },\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1422915587, "label": "Upgrade Datasette Docker to Python 3.11"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1853#issuecomment-1291023926", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1853", "id": 1291023926, "node_id": "IC_kwDOBm6k_c5M83Y2", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-10-25T19:15:49Z", "updated_at": "2022-10-25T19:15:49Z", "author_association": "OWNER", "body": "This broke the deploy of `https://latest.datasette.io/` - because it tries to install `pysqlite3-binary` which doesn't have a 3.11 release yet:\r\n\r\nhttps://github.com/simonw/datasette/blob/2e9751672d4fe329b3c359d5b7b1992283185820/.github/workflows/deploy-latest.yml#L77\r\n\r\nI started using that for the `latest.datasette.io` demo in https://github.com/simonw/datasette/commit/a970276b9999687b96c5e11ea1c817d814f5d267 because I wanted a version of SQLite that supported generated columns.\r\n\r\nThose were added in [SQLite 3.31.0](https://www.sqlite.org/changes.html#version_3_31_0) - and the SQLite version in the new base image is 3.34.1 - so I don't actually need `pysqlite3-binary` any more.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1422915587, "label": "Upgrade Datasette Docker to Python 3.11"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1853#issuecomment-1291032289", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1853", "id": 1291032289, "node_id": "IC_kwDOBm6k_c5M85bh", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-10-25T19:24:27Z", "updated_at": "2022-10-25T19:24:27Z", "author_association": "OWNER", "body": "https://latest.datasette.io/-/versions now shows 3.11.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1422915587, "label": "Upgrade Datasette Docker to Python 3.11"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1853#issuecomment-1291036623", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1853", "id": 1291036623, "node_id": "IC_kwDOBm6k_c5M86fP", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-10-25T19:28:56Z", "updated_at": "2022-10-25T19:28:56Z", "author_association": "OWNER", "body": "Opened an issue here:\r\n- https://github.com/coleifer/pysqlite3/issues/43", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1422915587, "label": "Upgrade Datasette Docker to Python 3.11"}, "performed_via_github_app": null}