Stop update-apt-xapian-index by making it non-executable
chmod -x /usr/sbin/update-apt-xapian-index
Use ZRam instead of your HDD/SSD for swap