From abeb2452262a936b1ed8de21d70525e77f7c11ef Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Thu, 13 Jun 2024 18:32:24 +0200 Subject: [PATCH] IDEMPIERE-6169 Performance on AD_ChangeLog with Record_UU (#2393) --- .../iD11/oracle/202406131736_IDEMPIERE-6169.sql | 12 ++++++++++++ .../iD11/postgresql/202406131736_IDEMPIERE-6169.sql | 9 +++++++++ 2 files changed, 21 insertions(+) create mode 100644 migration/iD11/oracle/202406131736_IDEMPIERE-6169.sql create mode 100644 migration/iD11/postgresql/202406131736_IDEMPIERE-6169.sql diff --git a/migration/iD11/oracle/202406131736_IDEMPIERE-6169.sql b/migration/iD11/oracle/202406131736_IDEMPIERE-6169.sql new file mode 100644 index 0000000000..f1564872e8 --- /dev/null +++ b/migration/iD11/oracle/202406131736_IDEMPIERE-6169.sql @@ -0,0 +1,12 @@ +-- IDEMPIERE-6169 Performance on AD_ChangeLog with Record_UU +SELECT register_migration_script('202406131736_IDEMPIERE-6169.sql') FROM dual; + +ALTER TABLE ad_changelog DROP CONSTRAINT ad_changelog_key +; + +DROP INDEX ad_changelog_key +; + +ALTER TABLE ad_changelog ADD CONSTRAINT ad_changelog_pkey PRIMARY KEY (ad_session_id, ad_column_id, ad_changelog_id) +; + diff --git a/migration/iD11/postgresql/202406131736_IDEMPIERE-6169.sql b/migration/iD11/postgresql/202406131736_IDEMPIERE-6169.sql new file mode 100644 index 0000000000..f1c233ddaf --- /dev/null +++ b/migration/iD11/postgresql/202406131736_IDEMPIERE-6169.sql @@ -0,0 +1,9 @@ +-- IDEMPIERE-6169 Performance on AD_ChangeLog with Record_UU +SELECT register_migration_script('202406131736_IDEMPIERE-6169.sql') FROM dual; + +ALTER TABLE ad_changelog DROP CONSTRAINT ad_changelog_pkey +; + +ALTER TABLE ad_changelog ADD CONSTRAINT ad_changelog_pkey PRIMARY KEY (ad_session_id, ad_column_id, ad_changelog_id) +; +