How not to structure database-backed web apps: performance bugs in the wild
Most ORM-related problems are related to lack of knowledge of how the tool works.<p>However, if you understand how databases work, how to tune the driver and how to get the ORM tool to generate the same queries you'd otherwise write yourself, then you are fine.<p>For more details, check out these [14 High-Performance Persistence Tips](<a href="https://vladmihalcea.com/14-high-performance-java-persistence-tips/" rel="nofollow">https://vladmihalcea.com/14-high-performance-java-persistenc...</a>).