]> dev.renevier.net Git - syj.git/blobdiff - scripts/crontab.syj
vacuum tables manually
[syj.git] / scripts / crontab.syj
index 78d48bee268730f9b87cf3c5722aa9d36e610a5f..4dfe865ee74a69faa5db4b1e40ecdbb35c719f82 100644 (file)
@@ -5,3 +5,7 @@ MAILTO=arno@renevier.net
 12 3 3 * * /data/project/syj/scripts/updategeoip.sh
 # every day, delete old sessions files
 47 4 * * * find /tmp/ -name "sess_*" -user syj  -ctime +45 -exec rm -f '{}' \;
+# every day, vacuum tables
+48 4 * * * psql syj syj -c "VACUUM ANALYZE users"
+48 4 * * * psql syj syj -c "VACUUM ANALYZE paths"
+48 4 * * * psql syj syj -c "VACUUM ANALYZE pending_actions"