-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[24.0] Workflow Comment Indexing #17700
[24.0] Workflow Comment Indexing #17700
Conversation
ddaf267
to
c5915c6
Compare
Adding the index makes sense, but can you say more about the performance issues ? Is that in the editor or the list index ? Which endpoint are you seeing this with ? Outside of the editor and workflow export I would hope we don't need to join against the comment model. |
Weren't comments part of 23.2 as well ? In which case you want to target 23.2 |
This is on the editor, specifically the load workflow endpoint |
I take that back, it's a little unexpected that we'll have a migration against an existing release, I think 24.0 is fine for now as that's not yet out and I think it's not super-critical that the editor load is slow (how slow are we talking btw ?) |
about 10-20 seconds |
Can you share a workflow ? |
You can try this one: https://usegalaxy.org/published/workflow?id=174d3de4589911fa |
ups, that one is 30s for me |
c5915c6
to
bfef9d4
Compare
We need to add an index as a database migration as a separate commit (see #15733 for an example) |
@jdavcs do you mean we need one migration commit and one index addition commit per index? |
we can add multiple indexes in one migration. But, ideally, we need one db migration per commit (i.e. a commit containing a new db revision script). |
That is what the second commit in this PR does |
which, obviously, I missed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, sorry for missing the second commit! 😄
usegalaxy.org has performance issues with workflows which contain Comments.
After having a closer look at the database model, @davelopez and I suspect this could be due to missing indexes.
This PR adds those indexes.
How to test the changes?
(Select all options that apply)
License