Closed bidsinga closed 3 years ago
The loadPoiByIds fetches POI's by an array of given keys, and loops through it with a for loop. When you pass more than i.g. 100 keys, loading time can take up to a minute.
loadPoiByIds
for
See also Originally posted by @reinierl in https://github.com/cycleplanet/cycle-planet/issues/87#issuecomment-940745928
@bidsinga Did you check if this makes things faster for you? I was too lazy unfortunately to set up my own DB with 100s of markers to test... :)
The
loadPoiByIds
fetches POI's by an array of given keys, and loops through it with afor
loop. When you pass more than i.g. 100 keys, loading time can take up to a minute.See also Originally posted by @reinierl in https://github.com/cycleplanet/cycle-planet/issues/87#issuecomment-940745928