e-mission / op-admin-dashboard

An admin/deployer dashboard for the NREL OpenPATH platform
0 stars 9 forks source link

Implement dynamic loading rather than static intervals on data page #128

Open TeachMeTW opened 1 day ago

TeachMeTW commented 1 day ago

Feature Request: Implement Dynamic Loading on Data Page

Description

Currently, the data page refreshes at a static interval of 10 seconds after updates to the UUID table. However, this approach is inefficient and may cause issues, especially as the environment scales.

Problem

A static interval refresh is not adaptive to the actual processing time. This can lead to inefficient use of resources, especially when processing times vary across environments (local, staging, and production). By the time the static interval kicks in:

Proposed Solution

Implement dynamic loading based on actual completion of data processing rather than a fixed time interval. This approach would ensure:

  1. Efficiency: Only refreshing the data when it’s actually updated.
  2. Safer Operations: Minimizing the risk of refreshing during incomplete processing in more complex environments.

Benefits

Tasks

TeachMeTW commented 1 day ago

@shankari This may be one of the issues staging/prod would run into regarding the batch loading from #124 . If it does NOT work as intended, this may be a possible cause and would be a high priority issue -- otherwise, if things perform normally, then what would you say about this?