News for hackers. Stuff that matters.
Re:Google Cloud Spanner is now half the cost of Amazon DynamoDB by jpgvm on Wednesday October 11, 2023 @03:44PM (#37849342)
Golden Rule of data: Use PostgreSQL unless you have an extremely good reason not to.

PostgreSQL is extremely good at append-mostly data, i.e like a chat log and has powerful partitioning features that allow you to keep said chat logs for quite some time (with some caveats) while keeping queries fast.

Generally speaking though PostgreSQL has powerful features for pretty much every workload, hence the Golden Rule.

Re:Google Cloud Spanner is now half the cost of Amazon DynamoDB by GabeWeiss_ on Wednesday October 11, 2023 @04:48PM (#37850056)
100% this, and even though I work for Google I absolutely agree. BUT, for the folks that need it, PostgreSQL just DOESN'T cut it, so it's why we have databases like DynamoDB, Spanner, etc. Arguing that we should "Just use PG" is kinda a moot point.
Re:Google Cloud Spanner is now half the cost of Amazon DynamoDB by nameless912 on Thursday October 12, 2023 @08:32AM (#37856298)
I think I said this in another comment, but I'm not shitting on Spanner or DDB's right to exist here. Obviously, there are _some_ problems for which a globally distributed ACID compliant SQL-compatible database are useful. However, those problems are few and far between, and many/most of them exist at companies like Google. The fact is your average small to medium size enterprise doesn't need and doesn't benefit from DDB/Spanner, but "enterprise architects" love to push them for some ungodly reason.
Re:Google Cloud Spanner is now half the cost of Amazon DynamoDB by pezezin on Wednesday October 11, 2023 @05:39PM (#37850585)
Don't forget PostgreSQL extensions. For something like a chat log, TimescaleDB (https://www.timescale.com/) can be surprisingly efficient. It will handle partitioning for you, with additional features like data reordering, compression, and retention policies.
Re:Google Cloud Spanner is now half the cost of Amazon DynamoDB by lost_tourist on Friday October 13, 2023 @09:31PM (#37877348)
this is what I've done sqlite3 for my personal stuff, postgres for everything else. I'm far from a "120 million requests per second" level though, so my experience is limited to small to mid-size ops for businesses.