-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Add option to be notified when a followed user posts #13546
Conversation
dab9c8b
to
093028d
Compare
This would be a amazing feature |
@Gargron any chance to revive this after 3.2.0 is released? |
9dbf09d
to
096cbee
Compare
b781412
to
9f5affb
Compare
Now, the |
9f5affb
to
e7e2cde
Compare
Hi @takayamaki, I have a question. I am creating a new index on notifications (account_id, type) for this PR. Would it make sense to add the order clause to it and would that make the (account_id, id) index redundant? When I try to EXPLAIN a typical notifications query, it seems to (currently, before this PR) use the account_activity index (account_id, activity_id, activity_type), I'm not sure when (account_id, id) is used? |
e7e2cde
to
46804cc
Compare
* Add bell button Fix mastodon#4890 * Remove duplicate type from post-deployment migration * Fix legacy class type mappings * Improve query performance with better index * Fix validation * Remove redundant index from notifications
When no order specified, sorting are not cause. The records will probably be implicitly sorted by ID. When specified created_at, it may cause sort. However it may same as liner scan(created_at may are same as id usually). Other cases, insert order condition column after account_id.
May be yes.
fmm… It may be used when the index becomes very very very large and the postgres planner wants to reduce the reading of the index. |
Equivalent of YouTube's "bell" button.
Fix #4890
To support changing only
notify
or onlyshow_reblogs
settings for follows, without requiring the client to remember and send along the other value every time, I've changed how defaults for those values are set. The import from CSV service was relying on old defaults behaviour because a CSV import where columns are omitted means we want to reset the omitted values back to defaults, so I had to change that service.