mirror of
https://github.com/flarum/framework.git
synced 2024-11-24 21:20:02 +08:00
3c7078b423
Originally the user activity feed was implemented using UNIONs. I was looking at make an API to add activity “sources”, or extra UNION queries (select from posts, mentions, etc.) but quickly realised that this is too slow and there’s no way to make it scale. So I’ve implemented an API which is very similar to how notifications work (see previous commit). The `activity` table is an aggregation of stuff that happens, and it’s kept in sync by an ActivitySyncer which is used whenever a post it created/edited/deleted, a user is mentioned/unmentioned, etc. Again, the API is very simple (see Core\Activity\PostedActivity + Core\Handlers\Events\UserActivitySyncer) |
||
---|---|---|
.. | ||
2015_02_24_000000_create_access_tokens_table.php | ||
2015_02_24_000000_create_activity_table.php | ||
2015_02_24_000000_create_config_table.php | ||
2015_02_24_000000_create_discussions_table.php | ||
2015_02_24_000000_create_groups_table.php | ||
2015_02_24_000000_create_notifications_table.php | ||
2015_02_24_000000_create_permissions_table.php | ||
2015_02_24_000000_create_posts_table.php | ||
2015_02_24_000000_create_users_discussions_table.php | ||
2015_02_24_000000_create_users_groups_table.php | ||
2015_02_24_000000_create_users_table.php |