X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a4e98a39669d82fc53a3d7f3fcc65689c05cc6cd..bdb0740403f851dfe9121638d9e0102507a633ec:/cookbooks/nominatim/templates/default/vacuum-db-nominatim.erb diff --git a/cookbooks/nominatim/templates/default/vacuum-db-nominatim.erb b/cookbooks/nominatim/templates/default/vacuum-db-nominatim.erb index 77b1257ef..e1be595e9 100644 --- a/cookbooks/nominatim/templates/default/vacuum-db-nominatim.erb +++ b/cookbooks/nominatim/templates/default/vacuum-db-nominatim.erb @@ -5,10 +5,9 @@ # 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' -for i in `seq 0 246`; do - psql -q -d nominatim -c "VACUUM ANALYSE search_name_${i}" +for i in `seq 0 250`; do + psql -q -d <%= @db %> -c "VACUUM ANALYSE search_name_${i}" done