你看到的那張圖表可能只算了一頁!Datasette 新外掛把整份資料都算進去

From 脈報 · 4:05

Show by 思思主播

Simon Willison 為 Datasette 做的新圖表外掛,把每張圖翻成 SQL 彙總查詢,資料量可能到數百萬列也全部算進去。舊外掛 datasette-vega 只畫目前這一頁,通常最多 100 列。遇到大表時新外掛先抽樣挑建議的圖,真正畫出來的圖仍把全部資料列算進去。 ⭐ 文章深度讀:圖表只看一頁?Simon Willison 的新外掛改算整份資料 → https://heymaibao.com/datasette-charts-plugin-counts-all-rows-b6afc5/ ⚡ 章節重點 只看一頁的圖表陷阱 00:00 Simon 的新圖表外掛 00:29 從一頁 100 列到整份資料 01:02 自己挑圖的推薦機制 02:28 少下指示的前提 03:22 📝 懶人包 ∙ 舊外掛 datasette-vega 只畫目前這一頁,通常最多 100 列 ∙ 新外掛把每張圖翻成 SQL 查詢,在整份結果上做彙總 ∙ 遇到大表,外掛先抽樣來挑建議的圖,不必跑完整份結果 ∙ 我的觀點:任何工具畫的圖,先問它算全部資料還是只有一頁 📚 參考資料 Release: datasette-charts 0.1a0 → https://simonwillison.net/2026/Nov/23/datasette-charts/ GitHub - simonw/datasette-vega: Datasette plugin for visualizing data using Vega → https://github.com/simonw/datasette-vega Datasette: An open source multi-tool for exploring and publishing data → https://datasette.io/ Cornell Virtual Workshop > Relational Databases > Using SQL > Aggregation → https://cvw.cac.cornell.edu/RelationalDBs/sql/sqlaggregates SQL GROUP BY → https://www.sqltutorial.org/sql-group-by/

More episodes of 脈報

More episodes

PodSearch is a free, independent podcast search engine. Read about PodSearch, the privacy policy or contact us.