In GitHub, you will notice that when you want to reference existing issues or mark an issue under projects GitHub intelligently will show you the most recent items that you visited recently first.
Example of showing recent projects in order of last visited
Example of showing recent issues in order of last visited
I’m using django to build a web app and i like to incorporate the same feature.
I have two ideas but none implemented yet:
1. One giant table storing all the visits by individual users
Should I have one giant table that stores all the items that all users visit? If so how do I then join that back with the main table I am supposed to search on to produce the sort correctly?
2. Add a visited
column to the individual main tables
I cannot obviously add a new date time column called “visited” to the main table as that will mean there is no personalization.
What am I missing in terms of understanding?
Also, is it a fair assumption that I need to limit the number of most recent items stored per user?
Meaning to say, using the GitHub example, only store a maximum of 5 most recent projects or issues per user.