We have no index for amenity, hiking... So calculating the isolation in postgresql means we have to read planet_osm_polygone N*N times for N parking places. In an external skript we can read it once and calculate in memory.