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.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.For more details, check out these [14 High-Performance Persistence Tips](https://vladmihalcea.com/14-high-performance-java-persistenc...).