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

Avoid lock on graph uri update (VIVO-3885) #395

Merged
merged 2 commits into from
Jun 16, 2023

Conversation

litvinovg
Copy link
Contributor

VIVO GitHub issue

What does this pull request do?

Run graph uri update in a separate thread to avoid lock

How should this be tested?

Test as in issue description:

  • Populate an instance with 10+ million triples.
  • Log in as root or admin: submit email and password.
  • There should not be any delay before you are redirected to Site Admin.
  • Log out, there should not be any delay before you are redirected to home page.

Interested parties

@VIVO-project/vivo-committers @chenejac @brianjlowe

@litvinovg litvinovg requested review from brianjlowe and chenejac June 9, 2023 11:45
@chenejac chenejac linked an issue Jun 12, 2023 that may be closed by this pull request
chenejac
chenejac previously approved these changes Jun 12, 2023
Copy link
Contributor

@chenejac chenejac left a comment

Choose a reason for hiding this comment

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

@litvinovg I don't see any significant delay anymore (I tried with 1M+ triplets). So, it looks it works for me.

Copy link
Member

@brianjlowe brianjlowe left a comment

Choose a reason for hiding this comment

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

Very noticeable improvement, especially if you log in / log out and request pages while a long-running RDF upload is being processed

@brianjlowe
Copy link
Member

@chenejac Wasn't sure if your comment counts as an approval. If so, this should be ready to be merged.

@chenejac chenejac merged commit 0e984eb into vivo-project:main Jun 16, 2023
@chenejac
Copy link
Contributor

Yes, I approved the PR

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.

Long delay when logging in to populated instance
3 participants