TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Best resources on database design

28 点作者 toutouast大约 7 年前
what are the best resources on database design for hackers?

7 条评论

mamcx大约 7 年前
Start reading about the relational model.<p>Then read about normalization and denormalization of tables.<p>You must take on mind this: <i>MODEL</i>. Is just a way to MODEL <i>data</i>. SQL is just a specific language for interact with RDBMS, and them constrain how express the MODEL similar how C++ is not the best way to express the OO MODEL but that is what you get when pick a specific implementation.<p>The key here is how organize data. The best designs on databases are just well-modeled data, and understand that queries that are costly benefit from using indexes OR (sometimes forgotten!) remodel the tables (or add more tables with a different projection of it).<p>With this idea firm on mind, you can use any RDBMS in the world and be <i>very good</i>.<p>You need to spice all this with the knowledge on how use a RDBMS for full effect, so you not get the idea that is &quot;wrong&quot; to use views or stored procedures or any of the tools are you disposal, similar you will use all the power you can get from C++ or Python or whatever. But at the end of the day, is just data organized in tables and how relate all of this.<p>P.D: And use Postgress for study all of this (and using on production too!). Why? because PG is the one closer to implement the SQL standard, is solid and have a very good tooling and implementation. Any other could work but after using more than a dozen I think PG is the best overall pick for this...
lazylester大约 7 年前
I got a lot out of Jennifer Widom&#x27;s &quot;Introduction to Databases&quot; MOOC from Stanford. Particularly the normalization concepts. (Don&#x27;t take them too far, though, as they say &quot;Normalize until it hurts, denormalize until it works&quot;!)
petercooper大约 7 年前
&quot;Best&quot; is tricky, but Vertabelo have been doing practical data model design walkthroughs for various scenarios over the past year or two: <a href="http:&#x2F;&#x2F;www.vertabelo.com&#x2F;blog" rel="nofollow">http:&#x2F;&#x2F;www.vertabelo.com&#x2F;blog</a> .. things as diverse as data models for a 3D chess set, parking system, pet care company, office leasing, etc.
mynegation大约 7 年前
Because I like to learn by example: <a href="http:&#x2F;&#x2F;www.databaseanswers.org&#x2F;data_models&#x2F;index.htm" rel="nofollow">http:&#x2F;&#x2F;www.databaseanswers.org&#x2F;data_models&#x2F;index.htm</a> If you meant NoSql but even if you did not: <a href="https:&#x2F;&#x2F;highlyscalable.wordpress.com&#x2F;2012&#x2F;03&#x2F;01&#x2F;nosql-data-modeling-techniques&#x2F;" rel="nofollow">https:&#x2F;&#x2F;highlyscalable.wordpress.com&#x2F;2012&#x2F;03&#x2F;01&#x2F;nosql-data-m...</a>
dlahoda大约 7 年前
<a href="http:&#x2F;&#x2F;agiledata.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;agiledata.org&#x2F;</a><p><a href="https:&#x2F;&#x2F;developers.redhat.com&#x2F;promotions&#x2F;migrating-to-microservice-databases&#x2F;" rel="nofollow">https:&#x2F;&#x2F;developers.redhat.com&#x2F;promotions&#x2F;migrating-to-micros...</a>
laci27大约 7 年前
If you work with mySQL, follow Percona&#x27;s blog. It&#x27;s full of awesome stuff.
ebbv大约 7 年前
Could you be a bit more clear in the question? Do you want to know how to actually write a database system? Or how to design a good schema? Or how to write classes that implement a schema for you using a framework? Or something else?<p>In any case there are books on these topics. And there’s open source software that probably does something similar or close to what you want to do. Look at its code and learn from it.
评论 #16852600 未加载
评论 #16837606 未加载