@Terdious Ok, super interesting, thanks!
As we can see, the slowest calls are as follows:
Summary
getDeviceFeaturesAggregates.gettingRowsFromLiveDb(energie-totale-phase-1-centre-equitherapie): 1.154s
getDeviceFeaturesAggregates.gettingRowsFromLiveDb(puissance-phase-1-centre-equitherapie): 1.155s
getDeviceFeaturesAggregates.gettingRowsFromLiveDb(energie-phase-1-centre-equitherapie): 1.157s
getDeviceFeaturesAggregates.gettingRowsFromLiveDb(puissance-phase-1-centre-equitherapie): 1.162s
getDeviceFeaturesAggregates.gettingRowsFromLiveDb(puissance-phase-1-centre-equitherapie): 1.724s
getDeviceFeaturesAggregates.gettingRowsFromLiveDb(energie-totale-phase-1-centre-equitherapie): 1.159s
getDeviceFeaturesAggregates.gettingRowsFromLiveDb(energie-phase-1-centre-equitherapie): 1.156s
getDeviceFeaturesAggregates.gettingRowsFromAggregatedDb(energie-totale-phase-1-centre-equitherapie): 1.733s
getDeviceFeaturesAggregates.gettingRowsFromAggregatedDb(energie-totale-phase-2-centre-equitherapie): 1.742s
These are mainly DB calls on « live » data, meaning the data from the last hour.
Out of curiosity, how many states per minute do you record for these sensors?
Also, as there are many requests, the browser queues the requests to avoid DDOSing the server, so it’s more or less normal, no need to worry ![]()
Also, are you running this backend on the same SSD disk as your Gladys production installation? It’s possible that the two are competing for disk access, so you might have better performance in production when you only have one instance ![]()
I understand the idea.. Maybe these features are just not well distinguishable in the UI (same icon, etc.. we could add something to make it more readable?)
For the distinction between « energy consumed » and « total energy consumed », is this something common in devices found in commerce or is it something you do here @Terdious?
Why wouldn’t « total » be calculated by Gladys?
This is the solution we are heading towards, as mentioned in the other topic ![]()
In any case, after conducting this survey, it’s really the device.name that is important and will be highlighted in Gladys, not the deviceFeature.name.
I will change this view as well, we stay on the device.name



