]> git.openstreetmap.org Git - nominatim.git/blob - utils/cron_vacuum.sh
increase cache for osm2pgsql
[nominatim.git] / utils / cron_vacuum.sh
1 #!/bin/bash
2 #
3 # Vaccum all tables with indices on integer arrays.
4 # Agressive vacuuming seems to help against index bloat.
5 #
6
7 psql -q -d nominatim -c 'VACUUM ANALYSE search_name'
8 psql -q -d nominatim -c 'VACUUM ANALYSE search_name_country'
9 #psql -q -d nominatim -c 'VACUUM ANALYSE planet_osm_ways'
10
11 for i in `seq 0 246`; do
12   psql -q -d nominatim -c "VACUUM ANALYSE search_name_${i}"
13 done
14