DECLARE GLOBAL TEMPORARY TABLE Vs CREATE GLOBAL TEMPORARY TABLE in DB2

后端 未结 3 1195
闹比i
闹比i 2021-01-02 05:57

am creating a GLOBAL TEMPORARY TABLE in DB2. and when i surfed i got a two way to create 1. Declare 2. Create.

1. DECLARE GLOBAL TEMPORARY TAB         


        
3条回答
  •  长情又很酷
    2021-01-02 06:44

    1. We've found that Created Temp Tables have -- in our case -- performed far better than DTTs. It may be an exception (it depends), but the impetus for the change was seeing the number of Incremental Binds that were being performed with DTTs. Each transaction needed 23 temp tables. We ran a parallel test and found CTTs resulted in huge drops in both cpu and In_DB2 time. We also saw drops in lock/latch waits and found that with CTTs our ZIIP cpu began exceeding our GP cpu, which makes everybody happy.

    We did not need DTT indexes or update access and had no use for any RI.

提交回复
热议问题