manned/util/cron.sh
Yorhel f376f1f137 Large-ish SQL schema revamp/optimizations
Primarily aimed at reducing the size of the old 'man' (now: files)
table, using smaller integers to refer to man contents and text fields,
and storing a shorthash as an integer for quick lookups. This better
normalization also removes the need to keep a separate 'man_index' cache
for the search function.

The old schema wasn't necessarily bad, but I was in the mood for some
optimizations. And a little cleanup.

Prolly introduces a bunch of new bugs, I haven't tested this too well.
2021-12-14 15:08:54 +01:00

14 lines
229 B
Bash
Executable file

#!/bin/sh
PSQL="psql -U manned -Awtq"
./alpine.sh current
./arch.sh current
./debian.sh current
./centos.sh current
./fedora.sh current
./ubuntu.sh current
echo "============ Updating SQL indices"
$PSQL -f update_indices.sql