{"html_url": "https://github.com/simonw/datasette/issues/1199#issuecomment-881932880", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1199", "id": 881932880, "node_id": "IC_kwDOBm6k_c40kTpQ", "user": {"value": 9599, "label": "simonw"}, "created_at": "2021-07-17T17:39:17Z", "updated_at": "2021-07-17T17:39:17Z", "author_association": "OWNER", "body": "I asked about optimizing performance on the SQLite forum and this came up as a suggestion: https://sqlite.org/forum/forumpost/9a6b9ae8e2048c8b?t=c\r\n\r\nI can start by trying this:\r\n\r\n PRAGMA mmap_size=268435456;", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 792652391, "label": "Experiment with PRAGMA mmap_size=N"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1199#issuecomment-766181628", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1199", "id": 766181628, "node_id": "MDEyOklzc3VlQ29tbWVudDc2NjE4MTYyOA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2021-01-23T21:25:18Z", "updated_at": "2021-01-23T21:25:18Z", "author_association": "OWNER", "body": "Comment thread here: https://news.ycombinator.com/item?id=25881911 - cperciva says:\r\n\r\n> There's an even better reason for databases to not write to memory mapped pages: Pages get synched out to disk at the kernel's leisure. This can be ok for a cache but it's definitely not what you want for a database!\r\n\r\nBut... Datasette is often used in read-only mode, so that disadvantage often doesn't apply.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 792652391, "label": "Experiment with PRAGMA mmap_size=N"}, "performed_via_github_app": null}