JeffersonLab / jaws-admin-gui

Web admin interface for JAWS
https://ace.jlab.org/jaws
MIT License
0 stars 0 forks source link

Querying all topics all-at-once may be unnecessary #25

Closed slominskir closed 4 months ago

slominskir commented 2 years ago

Currently the admin GUI just queries all topics, even ones that are duplicating data (effective topics that include data from other topics). If it loaded quickly then fine, but currently it takes 10 seconds or more to initialize everything. A simple stateless client that showed the state of the alarm system could just query the "effective-alarms" topic. A client that cached some data and was long-running (like the GUI), could instead query just the effective-notifications and effective-registrations topics and join client-side to minimize network bandwidth usage over time. For a client that needed to provide editing capabilities and reference the possible values for categories, locations, classes, and instances, then those topics need to be queried, but could be done lazily however. Perhaps on initial page load just load notifications and registrations. If users advance to a setup tab or similar then query for other topics, maybe even individually on-demand. Alternatively, separate the initial subset of data needed and wait for that to be fetched BEFORE starting to load the rest of the data.

slominskir commented 4 months ago

Switched to smoothness weblib in v4.6.0 so this issue is now obsolete.