D1 cost fixes so the site can stay inside the Workers Paid included limits.
- Auction ingest now reuses the live snapshot and only writes listings whose price or quantity actually changed. Unchanged rows cost zero writes.
- Price history observations, icons, and item slots skip writes when the value is the same.
- Recipe seeding only looks at the upload that just landed, and price-history builds use typed lookups so they no longer scan millions of rows per item list.
- Public deal, Twink, and price-search APIs are cached at the edge for 30 minutes (busted early when a scan finishes). Name and gold filters wait 300ms after you stop typing.
The D1 index migration (0039_d1_cost.sql) still needs to be applied once Cloudflare's D1 console/API is unblocked (the $1 spend cap currently returns error 7403). Until then the Worker is already saving writes; the sniper index lands when you run wrangler d1 migrations apply ahsniper-db --remote.