home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1006294777

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/sqlite-utils/pull/361#issuecomment-1006294777 https://api.github.com/repos/simonw/sqlite-utils/issues/361 1006294777 IC_kwDOCGYnMM47-tb5 9599 2022-01-06T05:24:54Z 2022-01-06T05:24:54Z OWNER

I added a custom error message for if the user's --convert code doesn't return a dict.

That turned out to be a bad idea because it meant exhausting the iterator early for the check - before we got to the .insert_all() code that breaks the iterator up into chunks. I tried fixing that with itertools.tee() to run the generator twice but that's grossly memory-inefficient for large imports.

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