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.
This commit is contained in:
parent
6f7f59c6df
commit
f376f1f137
6 changed files with 268 additions and 128 deletions
|
|
@ -10,9 +10,5 @@ PSQL="psql -U manned -Awtq"
|
|||
./fedora.sh current
|
||||
./ubuntu.sh current
|
||||
|
||||
# Only update indices once a week (on mondays). This process is slow and the data doesn't often change anyway.
|
||||
if [ `date +%u` == 1 ]
|
||||
then
|
||||
echo "============ Updating SQL indices"
|
||||
$PSQL -f update_indices.sql
|
||||
fi
|
||||
echo "============ Updating SQL indices"
|
||||
$PSQL -f update_indices.sql
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue