Skip to content
This repository was archived by the owner on Aug 1, 2025. It is now read-only.

BI-2688 - Delete Experiment Not working - #57

Closed
mlm483 wants to merge 1 commit into
release/1.1.1from
bug/BI-2688-rc
Closed

BI-2688 - Delete Experiment Not working#57
mlm483 wants to merge 1 commit into
release/1.1.1from
bug/BI-2688-rc

Conversation

@mlm483

@mlm483mlm483 commented Jul 7, 2025

Copy link
Copy Markdown

Description

Jira Story

This PR adds indexes for the columns in related tables referenced in trigger functions that execute when soft_deleted columns are updated.

It greatly improves the performance of delete operations.

There is also a PR against develop.

Testing

  • Load data into the database, I recommend trying to get at least 10,000 rows in the germplasm and observation_unit tables, and at least 50,000 rows in observation.
  • Either using the UI or by executing UPDATE {table} SET soft_deleted = (NOT soft_deleted);, test how long it takes the trigger functions to run before and after creating the indexes from this PR. At a minimum I would test with germplasm and trial.

@mlm483
mlm483 requested review from a team, davedrp and dmeidlin and removed request for a teamJuly 7, 2025 22:44

@dmeidlindmeidlin left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What was the affect of the indexing on the time to write trials, observation units, observations, etc.?

@davedrpdavedrp left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The deleting works (and is much faster).

Preliminary testing show that the upload of a large experiment (see Driscols MET Experiment(1).xls in the Jirra story) is about the same as before the indexes were added.

@mlm483

Copy link
Copy Markdown
Author

Closing in favor of Breeding-Insight#2.

@mlm483mlm483 closed this Aug 1, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@mlm483@davedrp@dmeidlin