HackerTrans
TopNewTrendsCommentsPastAskShowJobs

bddicken

no profile record

Submissions

How to not screw up a benchmark

planetscale.com
3 points·by bddicken·2 miesiące temu·0 comments

Managing Postgres traffic spikes at Figma

figma.com
4 points·by bddicken·2 miesiące temu·0 comments

20 Years of Postgres Performance

vondra.me
2 points·by bddicken·4 miesiące temu·0 comments

Scaling Postgres Connections with Pgbouncer

planetscale.com
1 points·by bddicken·4 miesiące temu·0 comments

Add AI to Any App

simeongriggs.dev
1 points·by bddicken·4 miesiące temu·0 comments

Startups Are Sequencing Problems

benhylak.substack.com
2 points·by bddicken·5 miesięcy temu·1 comments

Benchmarking Postgres 17 vs. 18

planetscale.com
184 points·by bddicken·9 miesięcy temu·64 comments

comments

bddicken
·3 miesiące temu·discuss
It may not have the popularity it once did, but MySQL still powers a huge % of the internet.
bddicken
·3 miesiące temu·discuss
What about spanner specifically benefits from random ids over sequential ones?
bddicken
·3 miesiące temu·discuss
Simple sequential IDs are great. If you want UUID, v7 is the way to go since it maintains sequential ordering.
bddicken
·3 miesiące temu·discuss
+1
bddicken
·3 miesiące temu·discuss
I've also written about sharding.

https://planetscale.com/blog/database-sharding
bddicken
·3 miesiące temu·discuss
B+trees combined with sequential IDs are great for writes. This is because we are essentially just appending new rows to the "linked list" at the bottom level of the tree. We can also keep a high fill % if we know there isn't a lot of data churn.

If you're sharding based purely on sequential ID ranges, then yes this is a problem. Its better practice to shard based on a hash of your ID, so sequential id assignments turn into non-sequential shard keys, keeping things evenly distributed.
bddicken
·3 miesiące temu·discuss
It's really just a matter of tradeoffs. B-trees are great, but are better suited for high read % and medium/low write volume. In the opposite case, things like LSMs are typically better suited.

If you want a comprehensive resource, I'd recommend reading either Designing Data Intensive Applications (Kleppman) or Database Internals (Petrov). Both have chapters on B-trees and LSMs.
bddicken
·3 miesiące temu·discuss
I've read this paper and it's a neat idea. It hasn't been introduced into popular oss databases like postgres and mysql, and my understanding is it has some drawbacks for real prod use vs ths simplistic benchmarks presented in the paper.

Would love to know if anyones built something using it outside of academic testing.
bddicken
·3 miesiące temu·discuss
Oh hey, I wrote this! Happy to chat more about the article here. Databases are kinda my thing.
bddicken
·4 miesiące temu·discuss
epic
bddicken
·5 miesięcy temu·discuss
Yep. Its a wonderful capability to have for some situations, but for 90% of applications SERIALIZABLE isolation is overkill.
bddicken
·5 miesięcy temu·discuss
These are still transactions! It's not uncommon for a large % of transactions in an OLTP workload to be only one query without explicit BEGIN / COMMIT; This is called an autocommit transactions or implicit transaction.
bddicken
·5 miesięcy temu·discuss
Thanks, fixed!
bddicken
·5 miesięcy temu·discuss
Author here. You're right! I'm fixing now.
bddicken
·5 miesięcy temu·discuss
I appreciate this feedback, and then you read through it with enough rigor to notice.
bddicken
·5 miesięcy temu·discuss
Notation is useful. Citations are nice for further reading. But I don't agree more of this makes for a better article!
bddicken
·5 miesięcy temu·discuss
Author here. Thank you! These visuals are built with js + gsap (https://gsap.com)
bddicken
·5 miesięcy temu·discuss
Author here. This is good feedback.

The combination of transactions, isolation levels, and MVCC is such a huge undertaking to cover all at once, specially when comparing how it's done across multiple DBs which I attempted here. Always a balance between technical depth, accessibility to people with less experience, and not letting it turn into an hour-long read.
bddicken
·7 miesięcy temu·discuss
This is changing soon with Neki.

https://www.neki.dev
bddicken
·8 miesięcy temu·discuss
Love how easy it is to visually correlate schema changes to performance improvements in Insights.