I'm trying to work with a list of 1.100 rows loaded in a PostgreSQL with PostGIS extension. Each row has the following fields:
- code (integer)
- name (char)
- mpoly (multipolygon)
The idea is to have an endpoint that will be called from a VueJS app to print each geo data in a Leaflet managed map.
The query is extremely slow when serializing it. How can I optimize it?
I thought about having a geojson file, but each row has a manytomany table associated that indicate some groups that it belongs to.
in the past i have similar problem, so i can share some things i do, like:
Hope this helps.