You’d have to read it to know what changed. Sounds like premature optimization? How many rows is the
You’d have to read it to know what changed. Sounds like premature optimization? How many rows is the CSV that this matters?

UPDATEs, but that seems pretty slow...rowsAffected? 


D1_ERROR: Error: Internal error while starting up D1 storage caused object to be reset.546787dd-35d5-4822-9b50-36fa0a4310c2.D1_ERROR: Error: Internal error in D1 storage caused object to be reset.UPDATErowsAffectedD1_ERROR: Error: Internal error while starting up D1 storage caused object to be reset.546787dd-35d5-4822-9b50-36fa0a4310c2~/repos/d1 (main) ✔
➜ wrangler d1 execute db-wnam --file=$HOME/Downloads/schema.sql
🌀 Mapping SQL input into an array of statements
🌀 Parsing 9 statements
🌀 Executing on db-wnam (6f2478dc-789b-4f31-95ff-d6001dc617d2):
🚣 Executed 9 commands in 0.6782660111784935ms➜ wrangler d1 execute db-wnam --command "PRAGMA table_xinfo(scores)"
🌀 Mapping SQL input into an array of statements
🌀 Parsing 1 statements
🌀 Executing on db-wnam (6f2478dc-789b-4f31-95ff-d6001dc617d2):
🚣 Executed 1 commands in 0.225492000579834ms
┌─────┬───────────────┬─────────┬─────────┬────────────┬────┬────────┐
│ cid │ name │ type │ notnull │ dflt_value │ pk │ hidden │
├─────┼───────────────┼─────────┼─────────┼────────────┼────┼────────┤
│ 0 │ scoreId │ INTEGER │ 0 │ │ 1 │ 0 │
├─────┼───────────────┼─────────┼─────────┼────────────┼────┼────────┤
│ 1 │ leaderboardId │ INTEGER │ 0 │ │ 0 │ 0 │
├─────┼───────────────┼─────────┼─────────┼────────────┼────┼────────┤
│ 2 │ userId │ INTEGER │ 1 │ │ 0 │ 0 │
├─────┼───────────────┼─────────┼─────────┼────────────┼────┼────────┤
│ 3 │ value │ INTEGER │ 1 │ │ 0 │ 0 │
├─────┼───────────────┼─────────┼─────────┼────────────┼────┼────────┤
│ 4 │ gameVersion │ TEXT │ 1 │ │ 0 │ 0 │
├─────┼───────────────┼─────────┼─────────┼────────────┼────┼────────┤
│ 5 │ timestamp │ INTEGER │ 1 │ │ 0 │ 0 │
├─────┼───────────────┼─────────┼─────────┼────────────┼────┼────────┤
│ 6 │ hasReplay │ INTEGER │ 0 │ 0 │ 0 │ 0 │
├─────┼───────────────┼─────────┼─────────┼────────────┼────┼────────┤
│ 7 │ verified │ INTEGER │ 0 │ 0 │ 0 │ 0 │
└─────┴───────────────┴─────────┴─────────┴────────────┴────┴────────┘