Commit 24a6d95
committed
refactor: optimize DeleteOldConnectionLogs to use :execrows
Use :execrows instead of :one to simplify the query by removing the
extra CTE wrapper. This lets PostgreSQL return the row count directly
via RowsAffected() instead of requiring an explicit COUNT(*) scan.1 parent 5a442c3 commit 24a6d95
2 files changed
+13
-20
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | 249 | | |
256 | | - | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
257 | 253 | | |
258 | 254 | | |
259 | 255 | | |
| |||
0 commit comments