You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/asciidoc/jdbc.adoc
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -829,6 +829,10 @@ Note that the type used for prefixing the statement name is the name of the aggr
829
829
== Lifecycle Events
830
830
831
831
Spring Data JDBC triggers events that get published to any matching `ApplicationListener` beans in the application context.
832
+
833
+
Entity lifecycle events can be costly and you may notice a change in the performance profile when loading large result sets.
834
+
You can disable lifecycle events on the link:{javadoc-base}org/springframework/data/jdbc/core/JdbcAggregateTemplate.html#setEntityLifecycleEventsEnabled(boolean)[Template API].
835
+
832
836
For example, the following listener gets invoked before an aggregate gets saved:
833
837
834
838
====
@@ -1100,4 +1104,4 @@ Select * from user u where u.lastname = lastname LOCK IN SHARE MODE
1100
1104
----
1101
1105
====
1102
1106
1103
-
Alternative to `LockMode.PESSIMISTIC_READ` you can use `LockMode.PESSIMISTIC_WRITE`.
1107
+
Alternative to `LockMode.PESSIMISTIC_READ` you can use `LockMode.PESSIMISTIC_WRITE`.
0 commit comments