Commit 47442e5
committed
Fix: Delete to be expired tiles at the same time as reading them
The TRUNCATE didn't work, because there can be tiles from more than one
zoom level in the same table.
Using DELETE ... RETURNING we are ensured to always delete exactly what
we are getting back.1 parent 429168d commit 47442e5
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
479 | | - | |
480 | | - | |
481 | 479 | | |
482 | 480 | | |
483 | 481 | | |
| |||
0 commit comments