mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
add notes and todo on data reloads
This commit is contained in:
@@ -8,6 +8,17 @@ const baseUrl = "https://passiogo.com/mapGetData.php";
|
||||
// Have one repository data loader running for each supported system
|
||||
// Each data loader independently updates data based on frequency of usage
|
||||
|
||||
// TODO implement reloading of data
|
||||
// Notes on this: we only need to reload ETA data frequently
|
||||
// Other data can be reloaded periodically
|
||||
// Detailed list:
|
||||
// - ETA: reload frequently or switch to write-through approach
|
||||
// - Shuttles: reload every minute
|
||||
// - Routes: reload every few minutes
|
||||
// - Stops: reload every few minutes
|
||||
// - OrderedStops: reload every few minutes
|
||||
// - Systems: reload once a day
|
||||
|
||||
export class RepositoryDataLoader {
|
||||
private shouldBeRunning: boolean = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user