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.

Things I Wished More Developers Knew About Databases

46 pointsby PretzelFischover 4 years ago

2 comments

xupybdover 4 years ago
Using GUIDs for ID makes the db less friendly to query. Writing down an ID of a row is much harder when it's a GUID. I know it's not normal for people to be directly working with the DB but it is a little bit of developer ergonomics.
评论 #25139666 未加载
评论 #25136502 未加载
indentitover 4 years ago
Regarding the two operators being on call at once due to &quot;write skewing&quot;<p>&gt; In the situation above, there will be a write skew if two of the transactions successfully commit. Even though no dirty read or data loss happened, the integrity of data is lost because there are two people assigned to be oncall.<p>Wouldn&#x27;t it make more sense to have a separate table&#x2F;single row to store it so the earlier mentioned row versioning checks could be used? Plus one could instead store the history of how the on call operator has changed instead of just having an &quot;oncall now&quot; boolean field against each operator.