Re:“balls”: The day I locked everyone out of the company int...
by gumballindie on Saturday July 15, 2023 @03:59AM
(#36734604)
Came here to say exactly that! I do a select count and then a limit against the returned count. At least it may reduce the blast radius.
[ Parent
| on HN ]
Re:“balls”: The day I locked everyone out of the company int...
by menacingly on Saturday July 15, 2023 @08:23AM
(#36735937)
In most of my scenarios, I'd actually rather cause a catastrophic global change than a silent subtle corruption of a handful of rows
Re:“balls”: The day I locked everyone out of the company int...
by gumballindie on Saturday July 15, 2023 @09:05AM
(#36736323)
That may be fun in a trivial setup such as op’s but when millions of customers or billions of transactions are affected it’s a nightmare. A competent engineer runs queries against a local and then a uat db, verifies results and then on prod. But if you must do it in prod then it must be limited in scope.
Re:“balls”: The day I locked everyone out of the company int...
by menacingly on Saturday July 15, 2023 @11:51PM
(#36743428)
We're on the same page with the best approach, I just don't consider corrupting an unpredictable subset of my database much of an improvement. It's not closer to correct, it's just still incorrect.
Re:“balls”: The day I locked everyone out of the company int...
by sgarland on Saturday July 15, 2023 @09:21PM
(#36742578)
This can also bite you if your dataset is larger than the buffer pool (or whatever other RDBMS calls it), and the particular table you’re querying isn’t commonly accessed.
Turns out when you start loading millions of rows of useless data into memory, the useful data has to get kicked out, and that makes query latency skyrocket.