home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 753389477

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/1168#issuecomment-753389477 https://api.github.com/repos/simonw/datasette/issues/1168 753389477 MDEyOklzc3VlQ29tbWVudDc1MzM4OTQ3Nw== 9599 2021-01-01T21:49:57Z 2021-01-01T21:49:57Z OWNER

What if metadata was stored in a JSON text column in the existing _internal tables? This would allow for users to invent additional metadata fields in the future beyond the current license, license_url etc fields - without needing a schema change.

The downside of JSON columns generally is that they're harder to run indexed queries against. For metadata I don't think that matters - even with 10,000 tables each with their own metadata a SQL query asking for e.g. "everything that has Apache 2 as the license" would return in just a few ms.

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