replace direct SQLite INSERTs of drawings via AJAX on #hoodmaps with saving to a text file buffer in /data/hoodmaps.db.queue.txt which we then pull with a cron job @hourly to avoid DB locked problems when too many people write at same time
add try {} catch(PDOException $e) around #hoodmaps insert tag and insert draw data to catch UNIQUE CONSTRAINT race condition instead of fatally erroring
replace hoodmaps REPLACE INTO with INSERT and a check before if the data with {uid} already exists because REPLACE INTO is slow and times out on SQLite in giant dbs #hoodmaps
try fix SQLite problems #hoodmaps by replacing REPLACE INTO on giant db with INSERT INTO and a check before to see if the tag with {uid} exists already
add Cloudflare Edge Cache with 7 day TTL to #hoodmaps get_data API endpoint because it was 503’ing due to the SQLite db being too big sometimes so this is a quick band aid fix