Commit dda0290
committed
refactor: key promotion snapshots by name once per promotion
Build the name-keyed snapshots dict once in SnapshotEvaluator.promote instead
of once per promoted view, keep the TableMapping cache across copy(), and pin
the number of replace_tables calls made during promotion.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rwe8v9iP3iGKVygBfPEZaU
Signed-off-by: mday-io <mdaytn@gmail.com>1 parent 9ab6474 commit dda0290
4 files changed
Lines changed: 15 additions & 9 deletions
File tree
- sqlmesh/core
- snapshot
- tests/core
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| 315 | + | |
| 316 | + | |
315 | 317 | | |
316 | 318 | | |
317 | 319 | | |
| |||
320 | 322 | | |
321 | 323 | | |
322 | 324 | | |
323 | | - | |
| 325 | + | |
324 | 326 | | |
325 | 327 | | |
326 | 328 | | |
| |||
1260 | 1262 | | |
1261 | 1263 | | |
1262 | 1264 | | |
1263 | | - | |
| 1265 | + | |
1264 | 1266 | | |
1265 | 1267 | | |
1266 | 1268 | | |
| |||
1284 | 1286 | | |
1285 | 1287 | | |
1286 | 1288 | | |
1287 | | - | |
1288 | | - | |
1289 | 1289 | | |
1290 | 1290 | | |
1291 | 1291 | | |
| |||
1296 | 1296 | | |
1297 | 1297 | | |
1298 | 1298 | | |
1299 | | - | |
| 1299 | + | |
1300 | 1300 | | |
1301 | 1301 | | |
1302 | 1302 | | |
1303 | 1303 | | |
1304 | 1304 | | |
1305 | | - | |
1306 | | - | |
1307 | | - | |
| 1305 | + | |
1308 | 1306 | | |
1309 | 1307 | | |
1310 | 1308 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10285 | 10285 | | |
10286 | 10286 | | |
10287 | 10287 | | |
| 10288 | + | |
| 10289 | + | |
| 10290 | + | |
10288 | 10291 | | |
10289 | 10292 | | |
10290 | 10293 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5762 | 5762 | | |
5763 | 5763 | | |
5764 | 5764 | | |
5765 | | - | |
| 5765 | + | |
| 5766 | + | |
5766 | 5767 | | |
5767 | 5768 | | |
0 commit comments