home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 752208036

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/datasette/issues/1160#issuecomment-752208036 https://api.github.com/repos/simonw/datasette/issues/1160 752208036 MDEyOklzc3VlQ29tbWVudDc1MjIwODAzNg== 9599 2020-12-29T19:06:35Z 2020-12-29T19:06:35Z OWNER

If I'm going to execute 1000s of writes in an async def operation it may make sense to break that up into smaller chunks, so as not to block the event loop for too long.

https://stackoverflow.com/a/36648102 and https://github.com/python/asyncio/issues/284 confirm that await asyncio.sleep(0) is the recommended way of doing this.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
775666296  
Powered by Datasette · Queries took 1.227ms · About: github-to-sqlite