home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 472097220 sorted by updated_at descending

✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: reactions, created_at (date), updated_at (date)

user 1

  • simonw 3

issue 1

  • Script uses a lot of RAM · 3 ✖

author_association 1

  • MEMBER 3
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
514500253 https://github.com/dogsheep/healthkit-to-sqlite/issues/7#issuecomment-514500253 https://api.github.com/repos/dogsheep/healthkit-to-sqlite/issues/7 MDEyOklzc3VlQ29tbWVudDUxNDUwMDI1Mw== simonw 9599 2019-07-24T06:34:28Z 2019-07-24T06:34:28Z MEMBER

Clearing the root element each time saved even more:

{
    "total_count": 2,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 2,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Script uses a lot of RAM 472097220  
514498221 https://github.com/dogsheep/healthkit-to-sqlite/issues/7#issuecomment-514498221 https://api.github.com/repos/dogsheep/healthkit-to-sqlite/issues/7 MDEyOklzc3VlQ29tbWVudDUxNDQ5ODIyMQ== simonw 9599 2019-07-24T06:26:49Z 2019-07-24T06:26:49Z MEMBER

Adding el.clear() got me a huge improvement:

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Script uses a lot of RAM 472097220  
514496725 https://github.com/dogsheep/healthkit-to-sqlite/issues/7#issuecomment-514496725 https://api.github.com/repos/dogsheep/healthkit-to-sqlite/issues/7 MDEyOklzc3VlQ29tbWVudDUxNDQ5NjcyNQ== simonw 9599 2019-07-24T06:20:59Z 2019-07-24T06:20:59Z MEMBER

I'm using https://pypi.org/project/memory-profiler/ to explore this in more detail:

$ pip install memory-profiler matplotlib

Then:

$ mprof run healthkit-to-sqlite ~/Downloads/healthkit-export.zip healthkit.db $ mprof plot

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Script uses a lot of RAM 472097220  

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
, [performed_via_github_app] TEXT);
CREATE INDEX [idx_issue_comments_issue]
                ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
                ON [issue_comments] ([user]);
Powered by Datasette · Queries took 19.09ms · About: github-to-sqlite
  • Sort ascending
  • Sort descending
  • Facet by this
  • Hide this column
  • Show all columns
  • Show not-blank rows