Our server instance goes to sleep with inactivity and resumes with requests.
Opportunities for improvement
77
Since portmap's content doesn't change until https://github.com/dtinit/portability-articles does (or, until we update our db copy of that data), we could cache things pretty aggressively and refresh the cache only after we repopulate our db from the portability-articles repo.
Visiting https://portmap.dtinit.org is slow especially when accessing it for the first time in a while.
Potential sources of latency
The index view makes several round trips to the GitHub API before responding
The index view is calling
Article.get_query_structure()
which queries the db: https://github.com/dtinit/portmap/blob/c0aa49bdc855c8ca51bfa3a1f1b105a0c1dd84ba/portmap/core/views.py#L48Pages might not have appropriate cache headers.
Our server instance goes to sleep with inactivity and resumes with requests.
Opportunities for improvement
77
Since portmap's content doesn't change until https://github.com/dtinit/portability-articles does (or, until we update our db copy of that data), we could cache things pretty aggressively and refresh the cache only after we repopulate our db from the portability-articles repo.
82
81
What else?