<commit_before>#!/bin/bash
#
# DO NOT EDIT - This file is being maintained by Chef


# 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'

for i in `seq 0 246`; do
  psql -q -d nominatim -c "VACUUM ANALYSE search_name_${i}"
done

<% if node[:postgresql][:settings][:defaults][:archive_mode] == "on" -%>

# Cleanup archive directory
find -L /data/postgresql-archive -mmin +1440 -print0 | xargs -0r rm
<commit_msg>nominatim: temporarily disable cleanup of WAL archive<commit_after>#!/bin/bash
#
# DO NOT EDIT - This file is being maintained by Chef


# 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'

for i in `seq 0 246`; do
  psql -q -d nominatim -c "VACUUM ANALYSE search_name_${i}"
done

<% if node[:postgresql][:settings][:defaults][:archive_mode] == "on" -%>

# Cleanup archive directory
#find -L /data/postgresql-archive -mmin +1440 -print0 | xargs -0r rm

{'fraction_non_alphanumeric': 0.11120331950207468, 'fraction_numerical': 0.016597510373443983, 'mean_word_length': 4.175965665236052, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6814356', 'n_tokens_mistral': 467, 'n_tokens_neox': 440, 'n_words': 154}