Log in
Sign up
See new Tweets

Conversation

Peter Geoghegan
@petervgeoghegan
Not surprised that Discourse DB benefits from B-Tree dedup so much. The "post" table (often the largest) has a total of 13 indexes (per https://github.com/discourse/discourse/blob/f49e3e5731ded58843fea0f693d26a36cd20f6a0/app/models/post.rb#L1169…, 13 includes the PK on id). This is extreme, and yet fairly common. Extremes are actually common in my experience.
github.com
discourse/post.rb at f49e3e5731ded58843fea0f693d26a36cd20f6a0 · discourse/discourse
A platform for community discussion. Free, open, simple. - discourse/post.rb at f49e3e5731ded58843fea0f693d26a36cd20f6a0 · discourse/discourse
6:05 AM · Feb 2, 2021·Twitter Web App
1
Retweet
6
Likes