Skip to content

Latest commit

 

History

History
130 lines (95 loc) · 5.42 KB

README.md

File metadata and controls

130 lines (95 loc) · 5.42 KB

Chapter 14 : Queries

Item 103: How to Optimize SELECT DISTINCT via Hibernate-Specific HINT_PASS_DISTINCT_THROUGH

Item 104: How to Set Up JPA Callbacks

Item 105: How to Use Spring Data Query Builder to limit the Result Set Size and to Count and Delete Derived Queries

Item 106: Why You Should Avoid Time-Consuming Tasks in Post-Commits

Item 107: How to Avoid Redundant save() Calls

Item 108: Why and How to Prevent N+1 Issues

Item 109: How to Use Hibernate-Specific Soft Deletes Support

Item 110: Why and How to Avoid the OSIV Anti-Pattern

Item 111: How to Store Date/Time in UTC Time Zone (MySQL)

Item 112: How to Shuffle Small Result Sets via ORDER BY RAND()

Item 113: How to Use Subqueries in the WHERE/HAVING Clause

Item 114: How to Call a Stored Procedure

Item 115: How to Unproxy a Proxy

Item 116: How to Map a Database View

Item 117: How to Update a Database View

Item 118: Why and How to Use WITH CHECK OPTION

Item 119: How to Efficiently Assign a Database Temporary Ranking to Rows

Item 120: How to Efficiently Find Top N Rows of Every Group

Item 121: How to Implement Advanced Search via Specification API

Item 122: How to Enhance SQL Statement Caching via IN Clause Parameter Padding

Note
Item 122 예제는 MS SQL Server가 필요합니다.

Item 123: How to Create Specification Query Fetch Joins

Item 124: How to Use a Hibernate-Specific Query Plan Cache

Item 125: How to Check if a Transient Entity Exists in the Database via Spring Query By Example (QBE)

Item 126: How to Include in the UPDATE Statement Only the Modified Columns via Hibernate @DynamicUpdate

Item 127: How to Use Named (Native) Queries in Spring

Item 128: The Best Way to Fetch Parent and Children in Different Queries/Requests

Item 129: How to Optimize the Merge Operation Using Update

Item 130: How to Implement Concurrent Table Based Queues via the SKIP LOCKED Option

Item 131: How to Retry the Transaction After a Versioned (@Version) OptimisticLockException

Item 132: How to Retry a Transaction After a Versionless OptimisticLockException

Item 133: How to Handle Versioned Optimistic Locking and Detached Entities

Item 134: How to Use the Optimistic Locking Mechanism and Detached Entities in long HTTP Conversations

Item 135: How to Increment the Version of the Locked Entity Even If this Entity Was Not Modified

Item 136: How PESSIMISTIC_READ/WRITE Works

Item 137: How PESSIMISTIC_WRITE Works with UPDATE/INSERT and DELETE Operations