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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Domain Logic and SQL

3 点作者 kgthegreat超过 7 年前

3 条评论

kgthegreat超过 7 年前
'One of the first questions people consider with this kind of thing is performance. Personally I don't think performance should be the first question. My philosophy is that most of the time you should focus on writing maintainable code. Then use a profiler to identify hot spots and then replace only those hot spots with faster but less clear code'
kgthegreat超过 7 年前
Another article on the same: <a href="http:&#x2F;&#x2F;www.vertabelo.com&#x2F;blog&#x2F;notes-from-the-lab&#x2F;business-logic-in-the-database-yes-or-no-it-depends" rel="nofollow">http:&#x2F;&#x2F;www.vertabelo.com&#x2F;blog&#x2F;notes-from-the-lab&#x2F;business-lo...</a>
kgthegreat超过 7 年前
&#x27;multi-user scenarios often cause surprising changes to the way queries behave, so real profiling has to be done under a realistic multi-user load. You may find that locking issues outweigh anything you can get by faster individual queries.&#x27;