X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/c7f6c009e30d0b0be3670d0772176b83b0661e2a..9e083ebce8a430d87164a3d790b3ff98fdf5c4e1:/cookbooks/nominatim/templates/default/vacuum-db-nominatim.erb?ds=sidebyside diff --git a/cookbooks/nominatim/templates/default/vacuum-db-nominatim.erb b/cookbooks/nominatim/templates/default/vacuum-db-nominatim.erb index dacdbf631..e1be595e9 100644 --- a/cookbooks/nominatim/templates/default/vacuum-db-nominatim.erb +++ b/cookbooks/nominatim/templates/default/vacuum-db-nominatim.erb @@ -6,9 +6,8 @@ # Vaccum all tables with indices on integer arrays. # Agressive vacuuming seems to help against index bloat. 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 +for i in `seq 0 250`; do psql -q -d <%= @db %> -c "VACUUM ANALYSE search_name_${i}" done