{"html_url": "https://github.com/simonw/datasette/issues/38#issuecomment-339388215", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/38", "id": 339388215, "node_id": "MDEyOklzc3VlQ29tbWVudDMzOTM4ODIxNQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-10-25T16:25:45Z", "updated_at": "2017-10-25T16:25:45Z", "author_association": "OWNER", "body": "First experiment: hook up an iterative CSV dump (just because that\u2019s a tiny bit easier to get started with than iterative a JSON). Have it execute a big select statement and then iterate through the result set 100 rows at a time using sqite fetchmany() - also have it async sleep for a second in between each batch of 100.\r\n\r\nCan this work without needing python threads? ", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 268462768, "label": "Experiment with patterns for concurrent long running queries"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/38#issuecomment-339388771", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/38", "id": 339388771, "node_id": "MDEyOklzc3VlQ29tbWVudDMzOTM4ODc3MQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-10-25T16:27:29Z", "updated_at": "2017-10-25T16:27:29Z", "author_association": "OWNER", "body": "If this does work, I need to figure it what to do about the HTML view. ASsuming I can iteratively produce JSON and CSV, what to do about HTML? One option: render the first 500 rows as HTML, then hand off to an infinite scroll experience that iteratively loads more rows as JSON.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 268462768, "label": "Experiment with patterns for concurrent long running queries"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/38#issuecomment-339389105", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/38", "id": 339389105, "node_id": "MDEyOklzc3VlQ29tbWVudDMzOTM4OTEwNQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-10-25T16:28:39Z", "updated_at": "2017-10-25T16:28:39Z", "author_association": "OWNER", "body": "The gold standard here is to be able to serve up increasingly large datasets without blocking the event loop and while using a sustainable amount of RAM", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 268462768, "label": "Experiment with patterns for concurrent long running queries"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/38#issuecomment-339389328", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/38", "id": 339389328, "node_id": "MDEyOklzc3VlQ29tbWVudDMzOTM4OTMyOA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-10-25T16:29:23Z", "updated_at": "2017-10-25T16:29:23Z", "author_association": "OWNER", "body": "Ideally we can get some serious gains from the fact that our database file is opened with the immutable option.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 268462768, "label": "Experiment with patterns for concurrent long running queries"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/38#issuecomment-392601114", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/38", "id": 392601114, "node_id": "MDEyOklzc3VlQ29tbWVudDM5MjYwMTExNA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2018-05-28T20:47:31Z", "updated_at": "2018-05-28T20:47:31Z", "author_association": "OWNER", "body": "I think the way Datasette executes SQL queries in a thread pool introduced in #45 is a good solution for this ticket.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 268462768, "label": "Experiment with patterns for concurrent long running queries"}, "performed_via_github_app": null}