NASA-AMMOS / aerie-ui

The client application for Aerie.
https://nasa-ammos.github.io/aerie-docs/
MIT License
28 stars 4 forks source link

Use derived stores for command and parameter dictionary storage #1226

Open joswig opened 2 months ago

joswig commented 2 months ago

Currently command and parameter dictionaries store redundant derived information in Hasura where some arrays are also stored as objects. The objects are useful in memory, but should not be stored and rather be recomputed upon deserialization. Since parameter dictionaries are one of the larger single row objects we store this should reduce a potential bottleneck and recomputing the derived information in the client should be performant as it is a linear scan of each array, and then caching each entry in a map.