IDEMPIERE-1052 1003710 Performance issue - Change column reference from table to search as proposed by Low.

This commit is contained in:
Heng Sin Low 2014-05-22 18:22:53 +08:00
parent c6b0cd00f9
commit bc4866556f
2 changed files with 83 additions and 0 deletions

View File

@ -0,0 +1,43 @@
SET SQLBLANKLINES ON
SET DEFINE OFF
-- May 22, 2014 6:03:29 PM MYT
-- 1003710 Performance issue - Change column reference from table to search
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_DATE('2014-05-22 18:03:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55318
;
-- May 22, 2014 6:04:22 PM MYT
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_DATE('2014-05-22 18:04:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=201503
;
-- May 22, 2014 6:04:56 PM MYT
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_DATE('2014-05-22 18:04:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55303
;
-- May 22, 2014 6:06:00 PM MYT
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_DATE('2014-05-22 18:06:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=56355
;
-- May 22, 2014 6:08:12 PM MYT
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_DATE('2014-05-22 18:08:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55322
;
-- May 22, 2014 6:08:58 PM MYT
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_DATE('2014-05-22 18:08:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55323
;
-- May 22, 2014 6:09:41 PM MYT
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_DATE('2014-05-22 18:09:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=52007
;
-- May 22, 2014 6:10:08 PM MYT
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_DATE('2014-05-22 18:10:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55305
;
-- May 22, 2014 6:11:15 PM MYT
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_DATE('2014-05-22 18:11:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=52008
;
SELECT register_migration_script('201405221012_Ticket_1003710.sql') FROM dual
;

View File

@ -0,0 +1,40 @@
-- May 22, 2014 6:03:29 PM MYT
-- 1003710 Performance issue - Change column reference from table to search
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2014-05-22 18:03:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55318
;
-- May 22, 2014 6:04:22 PM MYT
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2014-05-22 18:04:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=201503
;
-- May 22, 2014 6:04:56 PM MYT
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2014-05-22 18:04:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55303
;
-- May 22, 2014 6:06:00 PM MYT
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2014-05-22 18:06:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=56355
;
-- May 22, 2014 6:08:12 PM MYT
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2014-05-22 18:08:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55322
;
-- May 22, 2014 6:08:58 PM MYT
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2014-05-22 18:08:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55323
;
-- May 22, 2014 6:09:41 PM MYT
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2014-05-22 18:09:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=52007
;
-- May 22, 2014 6:10:08 PM MYT
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2014-05-22 18:10:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55305
;
-- May 22, 2014 6:11:15 PM MYT
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2014-05-22 18:11:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=52008
;
SELECT register_migration_script('201405221012_Ticket_1003710.sql') FROM dual
;