Repository navigation
Commit 91d7cfa
perf(server): sending a message no longer rereads the thread from the database after settle, snooze or title updates
dispatchMessage reran the 12-table command projection read and refolded
every pending event after emitting thread.unsettled, thread.unsnoozed and
the title-seed thread.metadata-updated. The projection it already holds
plus the event emit returns is the same fold, so apply the event locally,
as the lastVisitedAt branch already does.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 15fe283 commit 91d7cfa
2 files changed
Lines changed: 20 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5395 | 5395 | | |
5396 | 5396 | | |
5397 | 5397 | | |
5398 | | - | |
| 5398 | + | |
5399 | 5399 | | |
5400 | 5400 | | |
5401 | 5401 | | |
| |||
5405 | 5405 | | |
5406 | 5406 | | |
5407 | 5407 | | |
5408 | | - | |
| 5408 | + | |
5409 | 5409 | | |
5410 | 5410 | | |
5411 | 5411 | | |
| |||
5419 | 5419 | | |
5420 | 5420 | | |
5421 | 5421 | | |
5422 | | - | |
| 5422 | + | |
5423 | 5423 | | |
5424 | 5424 | | |
5425 | 5425 | | |
| |||
5429 | 5429 | | |
5430 | 5430 | | |
5431 | 5431 | | |
5432 | | - | |
| 5432 | + | |
5433 | 5433 | | |
5434 | 5434 | | |
5435 | 5435 | | |
| |||
5449 | 5449 | | |
5450 | 5450 | | |
5451 | 5451 | | |
5452 | | - | |
| 5452 | + | |
5453 | 5453 | | |
5454 | 5454 | | |
5455 | 5455 | | |
| |||
5466 | 5466 | | |
5467 | 5467 | | |
5468 | 5468 | | |
5469 | | - | |
| 5469 | + | |
5470 | 5470 | | |
5471 | 5471 | | |
5472 | 5472 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6828 | 6828 | | |
6829 | 6829 | | |
6830 | 6830 | | |
6831 | | - | |
| 6831 | + | |
6832 | 6832 | | |
6833 | 6833 | | |
6834 | 6834 | | |
| |||
6897 | 6897 | | |
6898 | 6898 | | |
6899 | 6899 | | |
| 6900 | + | |
| 6901 | + | |
| 6902 | + | |
| 6903 | + | |
| 6904 | + | |
6900 | 6905 | | |
6901 | 6906 | | |
6902 | 6907 | | |
| |||
6912 | 6917 | | |
6913 | 6918 | | |
6914 | 6919 | | |
| 6920 | + | |
6915 | 6921 | | |
6916 | 6922 | | |
6917 | 6923 | | |
| |||
6920 | 6926 | | |
6921 | 6927 | | |
6922 | 6928 | | |
| 6929 | + | |
| 6930 | + | |
| 6931 | + | |
| 6932 | + | |
| 6933 | + | |
| 6934 | + | |
| 6935 | + | |
6923 | 6936 | | |
6924 | 6937 | | |
6925 | 6938 | | |
| |||
0 commit comments