Updating tree when JOIN->DERIVED->TEMPORARY->Filesort