IMPORANT performance fix

this fix prevents the tempdb from filling up quickly, this should no
longer kill the server