rwth-acis / mobsos-evaluation-center

Web UI for collaborative success modeling
3 stars 1 forks source link

[ENH] Group visualization requests #119

Closed lakhoune closed 2 years ago

lakhoune commented 2 years ago
  1. Motivation - Currently, each request for data for a visualization is done in its own http call. This means if you have a success model with many measures lets say 20, then youd have to make 20 seperate calls which means some of them will be stalled and this also burdens our p2p backend
  2. Specification - We can group calls together by having a list of queríes where we want to get data from. This is then sent as one request to the backend. The backend forwards it to the qv service which executes all of the statements and then returns the result back in a map of query->result
  3. Finalised state - The frontend bundles all the call for the visualizations. They are dispatched in a single call in the success model component. A new effect needs to be created for this
lakhoune commented 2 years ago

format:

{
    "cache": boolean,
    "dbkey": string,
    "queries": [
        {
            "query": string,
            "queryParams": string[]
        },
     ...
    ],
    "save": boolean
}
lakhoune commented 2 years ago

this puts too much work on a single request which will most likely timeout. Thus this enhancement issue will most likely not resolve the issue that we are currently facing