HackerTrans
トップ新着トレンドコメント過去質問紹介求人

bddicken

no profile record

投稿

How to not screw up a benchmark

planetscale.com
3 ポイント·投稿者 bddicken·2 か月前·0 コメント

Managing Postgres traffic spikes at Figma

figma.com
4 ポイント·投稿者 bddicken·2 か月前·0 コメント

20 Years of Postgres Performance

vondra.me
2 ポイント·投稿者 bddicken·4 か月前·0 コメント

Scaling Postgres Connections with Pgbouncer

planetscale.com
1 ポイント·投稿者 bddicken·4 か月前·0 コメント

Add AI to Any App

simeongriggs.dev
1 ポイント·投稿者 bddicken·4 か月前·0 コメント

Startups Are Sequencing Problems

benhylak.substack.com
2 ポイント·投稿者 bddicken·5 か月前·1 コメント

Benchmarking Postgres 17 vs. 18

planetscale.com
184 ポイント·投稿者 bddicken·9 か月前·64 コメント

コメント

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

https://planetscale.com/blog/database-sharding
bddicken
·3 か月前·議論
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 か月前·議論
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 か月前·議論
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 か月前·議論
Oh hey, I wrote this! Happy to chat more about the article here. Databases are kinda my thing.
bddicken
·4 か月前·議論
epic
bddicken
·5 か月前·議論
Yep. Its a wonderful capability to have for some situations, but for 90% of applications SERIALIZABLE isolation is overkill.
bddicken
·5 か月前·議論
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 か月前·議論
Thanks, fixed!
bddicken
·5 か月前·議論
Author here. You're right! I'm fixing now.
bddicken
·5 か月前·議論
I appreciate this feedback, and then you read through it with enough rigor to notice.
bddicken
·5 か月前·議論
Notation is useful. Citations are nice for further reading. But I don't agree more of this makes for a better article!
bddicken
·5 か月前·議論
Author here. Thank you! These visuals are built with js + gsap (https://gsap.com)
bddicken
·5 か月前·議論
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 か月前·議論
This is changing soon with Neki.

https://www.neki.dev
bddicken
·8 か月前·議論
Love how easy it is to visually correlate schema changes to performance improvements in Insights.