Use the Timescale database with a GIS plugin [https://docs.timescale.com/use-timescale/latest/extensions/postgis/](https://docs.timescale.com/use-timescale/latest/extensions/postgis/) in order to improve the performance of the database.