Skip to content

Send one fewer broadcast per created LOI - #2586

Merged
rfontanarosa merged 2 commits into
masterfrom
rfontanarosa/2580/reduce-unnecessary-firestore-reads-1
Aug 14, 2026
Merged

Send one fewer broadcast per created LOI#2586
rfontanarosa merged 2 commits into
masterfrom
rfontanarosa/2580/reduce-unnecessary-firestore-reads-1

Conversation

@rfontanarosa

@rfontanarosa rfontanarosa commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

part of #2580

onCreateLoi broadcast a survey update explicitly after writing the generated properties back to the document. That write hits the same path template as onWriteLoi, which is registered with onDocumentWritten and broadcasts on its own, so each created LOI triggered three broadcasts where two are enough.

@rfontanarosa rfontanarosa self-assigned this Aug 10, 2026
@rfontanarosa
rfontanarosa requested a review from gino-m August 10, 2026 09:45
@rfontanarosa
rfontanarosa merged commit 5d804a2 into master Aug 14, 2026
14 checks passed
@rfontanarosa
rfontanarosa deleted the rfontanarosa/2580/reduce-unnecessary-firestore-reads-1 branch August 14, 2026 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants