Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

More efficient _submessagesChanged #197

Closed
edemaine opened this issue Apr 20, 2017 · 0 comments
Closed

More efficient _submessagesChanged #197

edemaine opened this issue Apr 20, 2017 · 0 comments
Labels

Comments

@edemaine
Copy link
Owner

Currently, creating a new message and updating a message incurs (via _submessagesChanged) a search for all messages within the same thread, to recompute submessageCount and submessageLastUpdate. But these quantities are easy to revise locally, incrementing count in the case of messageNew, and in both cases, maxing the root's current submessageLastUpdate with the updated message's date, both assuming the message is public. (When changing parents, and upon server restart, we should still use _submessagesChanged.)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant