Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

buffer notif writes #249

Open
roadscape opened this issue Sep 23, 2019 · 0 comments
Open

buffer notif writes #249

roadscape opened this issue Sep 23, 2019 · 0 comments

Comments

@roadscape
Copy link
Contributor

roadscape commented Sep 23, 2019

During sync, writes to hive_notifs writes should be queued and flushed.

INFO:hive.utils.stats:Service: db -- 224s total (71.1%)
INFO:hive.utils.stats:  -pct-     -ttl-     -avg-     -cnt-
INFO:hive.utils.stats:  21.0%   47018ms      1.79    26199x -- INSERT INTO hive_notifs (type_id, score, created_at, src_id, dst_id, post_id, communit ... S (:type_id, :score, :created_at, :src_id, :dst_id, :post_id, :community_id, :payload)
INFO:hive.utils.stats:  13.3%   29881ms      1.54    19344x -- SELECT id FROM hive_posts WHERE author = :a AND permlink = :p
INFO:hive.utils.stats:   9.4%   21068ms      1.37    15395x -- SELECT 1 FROM hive_notifs WHERE dst_id = :dst_id AND src_id = :src_id AND post_id = :post_id AND type_id = 17
@roadscape roadscape added this to the communities MVP milestone Sep 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant