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.

Domain Logic and SQL

3 pointsby kgthegreatover 7 years ago

3 comments

kgthegreatover 7 years ago
'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'
kgthegreatover 7 years ago
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>
kgthegreatover 7 years ago
&#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;