cycleplanet / cycle-planet

Official Cycle Planet repo, an open source and non-profit network of long distance cyclers and those who want to host them.
https://cycleplanet.org/
MIT License
9 stars 4 forks source link

slow loading of loadPoiByIds #88

Closed bidsinga closed 3 years ago

bidsinga commented 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.

See also Originally posted by @reinierl in https://github.com/cycleplanet/cycle-planet/issues/87#issuecomment-940745928

reinierl commented 3 years ago

@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... :)