5,559 karma · joined May 18, 2020 (6y ago) · 2,618 submissions
email: <stephan@{username}.dev>
meet.hn/city/us-Charlotte
Socials: - github.com/stephanGarland
Interests: DevOps, Hardware, Databases, Open Source, Linux
---
comment 1w ago · link · parent
That said, I don’t see the point. If you need to read DB-generated data (like a PK, or timestamp) from a write, use RETURNING so you get it with one call, and pass that to another function if it needs it. If it’s data you wrote, you already have it. So many web apps are slow because they have a million services, and all of them are calling the DB for the same information instead of passing it to each other.
comment 1w ago · link · parent
While I’m hopeful that it recovers (I caught it within a week and began a course of steroids, followed by middle-ear injections), I’m mentally preparing for that to not happen.
comment 1w ago · link · parent
Until it isn't. "Why is my query slow" doesn't get solved just because you didn't have to run apt-get install postgresql.
EDIT: the company also discusses working with Postgres [0], and man do they have some takes. work_mem set to 600 MB, using a temporary table for active queries while copying its rows to the main table (their pg_catalog has to be MASSIVE), generating a table per query on a "cache DB," resulting in millions of tables that are then dropped at EOD...
This is my point. Even if these were running on RDS (they aren't), they would still be causing performance problems, because you need to understand how your tooling works to use it well at scale.
comment 1w ago · link · parent
I felt similarly when Prisma launched and didn't implement JOINs, instead just doing full SELECTs and joining them itself.
comment 1w ago · link · parent
This is my point; if you're coming from other databases, it should be obvious that you don't get space back unless you ask for it.
0: Postgres can, under the specific circumstance of pages at the end of a table being completely empty, release them back to the OS with a normal VACUUM.
comment 1w ago · link · parent
This is true of every RDBMS I am aware of. It would be horribly inefficient to constantly run page merges in order to be able to free some of them.
Whenever I read things on posts that are a. discussed in documentation b. should be apparent from first principles, I immediately lose faith in the product.
comment 1w ago · link · parent
Databases are hard. They’re also some of the best-tested code that exists, so maybe let them do their job.
comment 1w ago · link · parent
EDIT: missed the positive part remaining, sorry. I maintain that the ambiguity issue stands.
comment 3w ago · link · parent
comment 3w ago · link · parent
2. No.
3. Claude CLI and Codex, but I rarely use the latter, and just call its review function from within Claude. If Anthropic didn’t require API usage for external tooling, I’d be interested in trying a lighter harness, but it’s not that big of a deal for me.
4. No.
5. No.
comment 3w ago · link · parent
IMO, Foobar2000 [0] was/is the zenith of bespoke GUI programs from that era. The UI is clean, the menus make sense, it’s infinitely configurable but the defaults are fine, it supports plugins…
comment 3w ago · link · parent
If there’s another option I’m unaware of, I’d love to hear it. Also to be fair, I didn’t evaluate Sid for this, only Stable.