This is an automated email from the ASF dual-hosted git repository.

jstastnycz pushed a commit to branch sync-20250907
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-apps.git

commit 08288ba6f0281b994ae4cf7d2e08aa67b653bf80
Author: Deepak Joseph <[email protected]>
AuthorDate: Fri Aug 22 17:15:33 2025 +0530

    [DBACLD-18881] Add indexes for process instance id field in data-index 
tables - MS SQL Server and Oracle (#28)
---
 .../V1.45.1.4__add_indexes_for_jobs_and_tasks.sql   | 21 +++++++++++++++++++++
 .../V1.45.1.4__add_indexes_for_jobs_and_tasks.sql   | 21 +++++++++++++++++++++
 2 files changed, 42 insertions(+)

diff --git 
a/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/kie-flyway/db/data-index/microsoft-sql-server/V1.45.1.4__add_indexes_for_jobs_and_tasks.sql
 
b/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/kie-flyway/db/data-index/microsoft-sql-server/V1.45.1.4__add_indexes_for_jobs_and_tasks.sql
new file mode 100644
index 000000000..f53d9de49
--- /dev/null
+++ 
b/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/kie-flyway/db/data-index/microsoft-sql-server/V1.45.1.4__add_indexes_for_jobs_and_tasks.sql
@@ -0,0 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+CREATE INDEX idx_jobs_piid ON jobs(process_instance_id);
+CREATE INDEX idx_tasks_piid ON tasks(process_instance_id);
diff --git 
a/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/kie-flyway/db/data-index/oracle/V1.45.1.4__add_indexes_for_jobs_and_tasks.sql
 
b/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/kie-flyway/db/data-index/oracle/V1.45.1.4__add_indexes_for_jobs_and_tasks.sql
new file mode 100644
index 000000000..e2e9cbdf1
--- /dev/null
+++ 
b/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/kie-flyway/db/data-index/oracle/V1.45.1.4__add_indexes_for_jobs_and_tasks.sql
@@ -0,0 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+CREATE INDEX idx_jobs_piid ON jobs btree (process_instance_id);
+CREATE INDEX idx_tasks_piid ON tasks btree (process_instance_id);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to