You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the heatmap, dashboard feed, and personal activities are shared with the same table action. This resulted in some pages becoming slow even if we optimized the database index many times.
Lifecycles
However the content of the 3 places is similar, But the requirements from the 3 places have different lifecycles.
For the dashboard feed, keeping the last several days may be enough. Looks at Github, only about 3 days.
For heatmap and personal activities, all the events should be kept and never deleted.
Resolution
So that we can create another 1 or 2 new tables to resolve the problem, the new table will store the user's activities only.
The possible table definition will be like below.
What's the difference between action table and the new table? action table have many duplicated, once you watch a repository, every event related to this repository will be copied to every watchers. But for the new table, an event will be record only once.
So that, for the current action table, maybe it can be changed like this. It will contain only maybe recent 7 days feeds.
Problem
Currently, the heatmap, dashboard feed, and personal activities are shared with the same table
action
. This resulted in some pages becoming slow even if we optimized the database index many times.Lifecycles
However the content of the 3 places is similar, But the requirements from the 3 places have different lifecycles.
Resolution
So that we can create another 1 or 2 new tables to resolve the problem, the new table will store the user's activities only.
The possible table definition will be like below.
What's the difference between
action
table and the new table?action
table have many duplicated, once you watch a repository, every event related to this repository will be copied to every watchers. But for the new table, an event will be record only once.So that, for the current
action
table, maybe it can be changed like this. It will contain only maybe recent 7 days feeds.The text was updated successfully, but these errors were encountered: