Skip to content

Commit

Permalink
use --search-only flag instead of --reverse when warming up
Browse files Browse the repository at this point in the history
  • Loading branch information
iAlex97 authored and philipkozeny committed Sep 29, 2023
1 parent 8cea735 commit a689056
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 4.3/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ else
fi

if [ "$REVERSE_ONLY" = "true" ]; then
sudo -H -E -u nominatim nominatim admin --warm --reverse
sudo -H -E -u nominatim nominatim admin --warm --search-only
else
sudo -H -E -u nominatim nominatim admin --warm
fi
Expand Down
4 changes: 1 addition & 3 deletions 4.3/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,9 @@ fi
tail -Fv /var/log/postgresql/postgresql-14-main.log /var/log/apache2/access.log /var/log/apache2/error.log /var/log/replication.log &
tailpid=${!}

sudo -H -E -u nominatim env

if [ "$REVERSE_ONLY" = "true" ]; then
echo "Warm database caches for reverse queries"
sudo -H -E -u nominatim nominatim admin --warm --reverse > /dev/null
sudo -H -E -u nominatim nominatim admin --warm --search-only > /dev/null
else
echo "Warm database caches for search and reverse queries"
sudo -H -E -u nominatim nominatim admin --warm > /dev/null
Expand Down

0 comments on commit a689056

Please sign in to comment.