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.

SQL in CockroachDB: Mapping Table Data to Key-Value Storage (2015)

87 pointsby jxubover 5 years ago

3 comments

dangover 5 years ago
From 2017: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=14728489" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=14728489</a><p>Discussed at the time: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10227516" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10227516</a>
willvarfarover 5 years ago
I am surprised that they have a way to serialize compound keys but they don’t serialize the non-primary fields into a single value. Why wouldn’t that be obviously easier?<p>They have the primary key fields serialized in the key so they need code to make a match pattern against it etc. If the value contained the entire non-primary fields in the exact same format then that same pattern code could be used to evaluate where clauses on those fields too etc.<p>I would anticipate it also being massively massively faster and dramatically reduce write amplification etc.
评论 #21499823 未加载
评论 #21499832 未加载
spatial_dimaover 5 years ago
“CockroachDB is the only database in the world that enables you to attach ‘location’ to your data at the row level”<p>^ this statement is so false
评论 #21501093 未加载