Hacker News new | ask | show | jobs
by prostoalex 2710 days ago
An index on ID should help.

If it doesn’t, then set up a DB replica (good idea in any case), do SELECTs on slave, DELETEs on master.