Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@spficklin
Copy link
Member

Bug Fix

Issue #1100

Description

This fixes the sio__references field in the tripal_chado module. The field was taking an extreme amount of time to load when thousands of records were associated with the publication. This is because it was using the chado_generate_var function. To fix it, I replaced it with some more efficient SQL code.

Testing?

@dsenalik has thoroughly tested this as noted on the issue #1100 but I've asked him to approve it here. I think this now just needs a code review.

But if you want to test, you have to have the following:

  1. A published publication entity
  2. Thousands of records associated with the publication.

To do this testing on a dev site I manually added entries to the feature_pub table just to have thousands of records

@spficklin spficklin added bug - confirmed For issues where a core developer has confirmed a bug exists. hacktoberfest-accepted A pull request submitted during Hacktoberfest which has been accepted by the PMC tripal-7.x-3.x labels Oct 14, 2020
@spficklin spficklin changed the title 1100 tv3 references field Fix for long running sio__references field Oct 14, 2020
Copy link
Contributor

@dsenalik dsenalik left a comment

Choose a reason for hiding this comment

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

Functionally tested and a massive improvement in page rendering time

@spficklin
Copy link
Member Author

spficklin commented Oct 14, 2020

Since this has been tested by @dsenalik I'm marking as approver 1 reviewed but it needs a code review still.

Copy link
Member

@laceysanderson laceysanderson left a comment

Choose a reason for hiding this comment

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

Code review done 👍 Looks good!

@laceysanderson laceysanderson merged commit 8eab8f8 into 7.x-3.x Oct 15, 2020
@laceysanderson laceysanderson deleted the 1100-tv3-references_field branch October 15, 2020 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug - confirmed For issues where a core developer has confirmed a bug exists. hacktoberfest-accepted A pull request submitted during Hacktoberfest which has been accepted by the PMC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants