Commit a4fe9c3
Cache query strings in
Cache the deleteAll and count query strings as final fields in SimpleJpaRepository.
This avoids repeated String.format operations and reduces unnecessary object creation
on every invocation of deleteAllInBatch() and count(). No functional changes.
Signed-off-by: Giheon Do <[email protected]>
Closes #3920SimpleJpaRepository.1 parent f635de7 commit a4fe9c3
File tree
1 file changed
+9
-2
lines changed- spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/support
1 file changed
+9
-2
lines changedLines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| |||
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
123 | 127 | | |
124 | 128 | | |
125 | 129 | | |
| |||
139 | 143 | | |
140 | 144 | | |
141 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
142 | 149 | | |
143 | 150 | | |
144 | 151 | | |
| |||
309 | 316 | | |
310 | 317 | | |
311 | 318 | | |
312 | | - | |
| 319 | + | |
313 | 320 | | |
314 | 321 | | |
315 | 322 | | |
| |||
631 | 638 | | |
632 | 639 | | |
633 | 640 | | |
634 | | - | |
| 641 | + | |
635 | 642 | | |
636 | 643 | | |
637 | 644 | | |
| |||
0 commit comments