Datasette 中的大型 CSV 导入(Datasette Advent 第一天)
Large CSV imports in Datasette (Datasette Advent Day 1)
导读
西蒙·威利森宣布他的开源项目 Datasette 新增大型 CSV 导入功能,该功能已在几小时前发布的 Datasette 1.0a46 中上线。用户现在可通过浏览器上传工具把任意大小的 CSV 或 TSV 文件导入 Datasette 表,文件在浏览器中流式解析并分批发送至 Datasette 插入 API。他在视频中演示导入 26,000 行 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.
出处
- B 可靠Simon Willison · RSS阅读原文 ↗
Large CSV imports in Datasette (Datasette Advent Day 1)