Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unneeded wbia call #451

Merged
merged 3 commits into from Apr 8, 2024
Merged

Remove unneeded wbia call #451

merged 3 commits into from Apr 8, 2024

Conversation

holmbergius
Copy link
Contributor

This change improves iaResults.jsp page display speed while reducing unnecessary traffic to and burden on WBIA. Wildbook knows when a matching Task is complete but was still sending multiple completion status queries to WBIA per page load for completed tasks, causing significant and unnecessary page load slow downs. This change now checks for Task object completion (either its own completion time is set or all completion times are set for all sub-Task node children) in the database before querying WBIA about Task status. For incomplete tasks, queries are still sent.

@holmbergius holmbergius self-assigned this Apr 7, 2024
myShepherd.beginDBTransaction();
long startTime=System.currentTimeMillis();
Copy link
Member

Choose a reason for hiding this comment

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

is this used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Timer removed in subsequent commit.

Copy link
Member

@naknomum naknomum left a comment

Choose a reason for hiding this comment

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

looks good. one inconsequential (i think!) nitpick.

@holmbergius holmbergius merged commit 32b593d into master Apr 8, 2024
2 checks passed
@holmbergius holmbergius deleted the remove-unneeded-WBIA-call branch April 8, 2024 16:59
@TanyaStere42 TanyaStere42 added this to the 10.1.0 milestone Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants