News for hackers. Stuff that matters.
Re:Do you really need foreign keys? by pixl97 on Thursday December 21, 2023 @05:04PM (#38727691)
>Limit access to the database to a single role, used by a single application, and you absolve so many issues.

This kinda sounds like "Get rid of 90% of the usefulness of having a database"

Of course, maybe you mean make the same data the DB has available via API, or make other users of the data read only.

Re:Do you really need foreign keys? by arrowleaf on Thursday December 21, 2023 @06:20PM (#38728514)
Yes, if you have downstream services that need to make use of your data, you would provide an API. That way you can manage the number of connections, how the queries are formed, any sort of encoding/decoding, authorization, caching, etc. Definitely not limited to read-only.