bulk insert tmp impl