perf: check migrations for indexes, add if necessary #4201
Labels
area:dashboard
Related to a Grafana dashboard
area:teslamate
Related to TeslaMate core
enhancement
New feature or request
We currenty do have 32 indexes for performance reasons.
In my instance there were only 28 (installation from 2019).
We can add them by:
docker compose exec database psql teslamate teslamate
corrective sql (#4187 (comment))
With a quick look into the migrations, I could not find one for positions_date_index for example.
I assume, this one should normally create the index
positions_date_index
(introduced by #3186):https://github.com/teslamate-org/teslamate/blob/363e5a661612a090cfac5bf89715f7e9de39f420/priv/repo/migrations/20230417225712_composite_index_to_position.exs
Type of installation
Docker
Version
v1.30.1
The text was updated successfully, but these errors were encountered: