Skip to content

Origin indexer module updates

For getting event title, instead of getting all event places and then selecting the first returned place, this change will just ask for up to five nearest places within the allowed threshold (km).

The getEventPlaces method returned 5 places with custom logic. This could result in more than 10 (worst case) database queries. Running multiple queries is slow and adds load to Geoserve.

The new implementation requires a single Geoserve query.

Note: Tests were removed from the GeoservePlacesService class. Not sure how to test this currently. It uses StreamUtils, maybe something like Mockito would be helpful, but that isn't configured into this project yet.

Merge request reports

Loading