Datasette 1.0a46 支持浏览器流式导入任意大小 CSV

原标题:Large CSV imports in Datasette (Datasette Advent Day 1)
58AI 研判分

Datasette 1.0a46 新增大文件 CSV/TSV 导入能力,文件在浏览器端流式解析并分批提交至插入 API,因此可导入任意大小的文件。作者演示了 2.6 万行 iNaturalist 观测数据在数秒内完成导入,并展示了分面分析与列选择排序的新界面。

关联知识实体

报道正文

Large CSV imports in Datasette (Datasette Advent Day 1)

My open source project Datasette has accumulated a lot of new features this year that I haven't done a great job in explaining. I've decided to fix that this December through an advent calendar format: every day up to Christmas I'll be publishing a short video demonstrating a new feature of Datasette or the wider Datasette plugin ecosystem.

Today's covers a feature that I just landed in Datasette 1.0a46 a few hours ago: large CSV imports. You can now import CSV or TSV files of any size into a Datasette table using the browser upload tool - the files are streamed and parsed in your browser and sent to the Datasette insert API in batches.

In the video I import 26,000 rows of iNaturalist observation data in just a few seconds. I then go on to show faceting to analyze data, plus a new UI for selecting and reordering the columns in a table.

Tags: csv, youtube, datasette, inaturalist