Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Big Opportunities in Small Data

Big Opportunities in Small Data

Citus Con 2023 - video here: https://www.youtube.com/watch?v=rsE0XhlPnug

Simon Willison

May 08, 2023
Tweet

More Decks by Simon Willison

Other Decks in Technology

Transcript

  1. It’s installed already (even on my phone) A SQLite database

    is a single file Very stable file format
  2. Datasette Python web app SQLite database fi les (read-only data)

    One deployable container Docker, K8s, Vercel, AWS Lambda, Google Cloud Run, Fly… Baked Data
  3. HTTP load balancer Datasette Python web app SQLite database fi

    les Datasette Python web app SQLite database fi les Datasette Python web app SQLite database fi les
  4. PostgreSQL as a library? $ pip install postgreslib (or npm,

    etc) import postgreslib db = postgreslib.connect( "/mnt/data.postgresql" ) db.execute("create table …")
  5. Ideas to take away • Small Data deserves more tooling

    • Scale read-only data up and down with the Baked Data pattern • Read-only SQL APIs are a really good idea! • Especially since you can reformat data with a SQL query • You can run databases in the browser now • Please build me PostgreSQL as a library!