Commit 0dcc0c2
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 351dc07 commit 0dcc0c2
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 | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
124 | 128 | | |
125 | 129 | | |
126 | 130 | | |
| |||
140 | 144 | | |
141 | 145 | | |
142 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
143 | 150 | | |
144 | 151 | | |
145 | 152 | | |
| |||
318 | 325 | | |
319 | 326 | | |
320 | 327 | | |
321 | | - | |
| 328 | + | |
322 | 329 | | |
323 | 330 | | |
324 | 331 | | |
| |||
639 | 646 | | |
640 | 647 | | |
641 | 648 | | |
642 | | - | |
| 649 | + | |
643 | 650 | | |
644 | 651 | | |
645 | 652 | | |
| |||
0 commit comments