Why are you truncating right before dumping the temp table?
6 answers
Another possibility is that the encoder is trying to avoid the delayed crash that will occur when the temp table is larger than 8MB. That is, shorten it, then lower it. I'm not sure if this SQL engine will be tricked, but it might force synchronous cleanup. I do not understand why you want to do this, perhaps to avoid some problem with accumulating pending drops (Temp tables for destruction)
+1
source to share