onaio / gisida

JavaScript library that converts MapSpec layers to beautiful, interactive maps using Mapbox GL
http://gisida.onalabs.org/
Apache License 2.0
11 stars 3 forks source link

Optimize client-side filtering of large datasets #332

Open cKellyDesign opened 5 years ago

cKellyDesign commented 5 years ago

Currently, once the layer datasets get too large our filter functionality is taking too much computational power and crashing the page. To resolve this we need to understand what can be optimized. I suspect the heaviest part of this functionality is the fact that gisida is constantly re-counting the data every time the filterOptions are updated.

engwiri commented 4 years ago

@cKellyDesign any updates on this? Is anyone assigned to these issues?

cKellyDesign commented 4 years ago

@engwiri there is an underlying issue with how we're fetching the data (all at once) which is discussed/assigned at onaio/service-mapping#176, I will assign it to myself @kelvin-muchiri and @kahama94.

The issues in filtering as a side-effect of the suggested implementations in #176 should be addressed here.