Skip to content

Commit

Permalink
Do only 1 completePlace call for updates
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikmoree committed Jan 28, 2022
1 parent 68c91c4 commit aad028a
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ public List<PhotonDoc> getByPlaceId(long placeId) {
NominatimResult result = template.queryForObject(SELECT_COLS_PLACEX + " FROM placex WHERE place_id = ?",
placeRowMapper, placeId);
assert(result != null);
completePlace(result.getBaseDoc());
return result.getDocsWithHousenumber();
} catch (EmptyResultDataAccessException e) {
return new ArrayList<PhotonDoc>();
Expand All @@ -162,7 +161,6 @@ public List<PhotonDoc> getInterpolationsByPlaceId(long placeId) {
+ " FROM location_property_osmline WHERE place_id = ?",
osmlineRowMapper, placeId);
assert(result != null);
completePlace(result.getBaseDoc());
return result.getDocsWithHousenumber();
}

Expand Down

0 comments on commit aad028a

Please sign in to comment.