Try: import a large CSV into Datasette in your browser
Datasette 1.0a46, released December 1, lets you upload a large CSV or TSV file in the browser and turn it into a searchable table. Simon Willison's demo imports 26,000 rows of wildlife observations in a few seconds, then filters them by category. This is an alpha release, so expect changes.
Simon Willison's first Datasette Advent post covers large CSV imports, added in Datasette 1.0a46. In his demo video he imports 26,000 rows of iNaturalist observation data through the browser upload tool, which he says takes a few seconds. He then uses faceting to analyze the data and shows a new interface for choosing and reordering table columns.
Files are streamed and parsed in the browser, then sent to the Datasette insert API in batches. The post says CSV or TSV files of any size can be imported and gives no specific cap.
The post doesn't list commands, and this is an alpha version, so expect changes.
New to this? The key idea
A database table is a spreadsheet with strict columns that lets you filter and count quickly. Importing a CSV turns a loose file into something you can question.
Use it at work
Use it for: Analysts and developers who want to explore a CSV without writing import scripts.
Try it: Install Datasette 1.0a46 following its documentation, open the upload tool in the browser, drop in a CSV of your own, then try faceting on a column.
Before you roll it out: Alpha release, open source. Data stays on the machine running Datasette. No size limit is stated.
Summaries are written by AI from the linked source. Always check the original.