Skip to content

Commit 1e9a3a5

Browse files
committed
dev:Update todo
1 parent 3bb99b4 commit 1e9a3a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

todo.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
- [x] **Fix worker concurrency issue**: Make the worker cleanup logic more robust to prevent race conditions from lingering connections after a deployment. This was causing `derive_statistical_unit` to fail intermittently. (2025-08-23)
12
- [ ] **Implement `update` import mode**: Create a new, non-destructive `update` mode for imports. This mode will perform an "upsert" operation, creating new temporal segments for changed records and inserting new ones, without deleting any existing data that is not present in the import file. This will be the new default and safer import mode.
23
- [ ] **Implement partial `statistical_unit` refresh**: Develop a robust mechanism for partial, targeted refreshes of the `timeline_*` and `statistical_unit` tables. This will require a dynamic, hierarchical lookup of all affected units (e.g., finding an establishment's parent LU and enterprise) to ensure data consistency.
34
- [ ] **Add triggers for automatic refresh**: Implement database triggers on the core temporal tables (`legal_unit`, `establishment`, `activity`, etc.). These triggers will automatically queue a partial refresh task in the worker system whenever a relevant record is changed, ensuring the `statistical_unit` view is kept up-to-date.

0 commit comments

Comments
 (0)