TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Making an Endpoint 50x Faster

48 pointsby BillFranklinover 5 years ago

5 comments

anton_gogolevover 5 years ago
The whole &quot;...we don’t want duplicated subscriber lists&quot; is a very arbitrary requirement.<p>What&#x27;s more, all this could have been avoided if a proper relational database structure (not even denormalized, GordonS) was there in the first place.
评论 #21730231 未加载
评论 #21730441 未加载
shrubbleover 5 years ago
Why not use a materialized view?<p><a href="https:&#x2F;&#x2F;www.postgresql.org&#x2F;docs&#x2F;9.3&#x2F;sql-creatematerializedview.html" rel="nofollow">https:&#x2F;&#x2F;www.postgresql.org&#x2F;docs&#x2F;9.3&#x2F;sql-creatematerializedvi...</a>
mobilemidgetover 5 years ago
&quot;Because order should not matter, both arrays are sorted before they are compared.&quot;<p>I do not understand this line very well. If order does not matter, why sort anything?
评论 #21730919 未加载
评论 #21729915 未加载
lowmagnetover 5 years ago
I applaud the effort put in for performance, but why not just enqueue the change notification and do the sends on the back end? This sort of fiddly process is exactly why deferred action is appropriate.
评论 #21730215 未加载
GordonSover 5 years ago
TL;DR: a short article describing a normalised schema, with big performance gains when denormalising data.<p>Article is very application-specific, but is perhaps a reminder that denormalisation can be useful when working with relational databases.
评论 #21730898 未加载
评论 #21732692 未加载