# Vaccum all tables with indices on integer arrays.
# Agressive vacuuming seems to help against index bloat.
-psql -q -d nominatim -c 'VACUUM ANALYSE search_name'
-psql -q -d nominatim -c 'VACUUM ANALYSE search_name_country'
+psql -q -d <%= @db %> -c 'VACUUM ANALYSE search_name'
+psql -q -d <%= @db %> -c 'VACUUM ANALYSE search_name_country'
for i in `seq 0 246`; do
- psql -q -d nominatim -c "VACUUM ANALYSE search_name_${i}"
+ psql -q -d <%= @db %> -c "VACUUM ANALYSE search_name_${i}"
done