From bc4866556f4a79af8bbdf4f90baffafa8dbb9ce9 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Thu, 22 May 2014 18:22:53 +0800 Subject: [PATCH] IDEMPIERE-1052 1003710 Performance issue - Change column reference from table to search as proposed by Low. --- .../oracle/201405221012_Ticket_1003710.sql | 43 +++++++++++++++++++ .../201405221012_Ticket_1003710.sql | 40 +++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 migration/i2.0/oracle/201405221012_Ticket_1003710.sql create mode 100644 migration/i2.0/postgresql/201405221012_Ticket_1003710.sql diff --git a/migration/i2.0/oracle/201405221012_Ticket_1003710.sql b/migration/i2.0/oracle/201405221012_Ticket_1003710.sql new file mode 100644 index 0000000000..920d67735d --- /dev/null +++ b/migration/i2.0/oracle/201405221012_Ticket_1003710.sql @@ -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 +; + diff --git a/migration/i2.0/postgresql/201405221012_Ticket_1003710.sql b/migration/i2.0/postgresql/201405221012_Ticket_1003710.sql new file mode 100644 index 0000000000..9bc3d5671c --- /dev/null +++ b/migration/i2.0/postgresql/201405221012_Ticket_1003710.sql @@ -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 +; +