-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
WIP: Defer last commit info #16063
WIP: Defer last commit info #16063
Conversation
e7aeedf
to
86e68fb
Compare
Signed-off-by: Andrew Thornton <[email protected]>
Signed-off-by: Andrew Thornton <[email protected]>
86e68fb
to
10b56e1
Compare
Signed-off-by: Andrew Thornton <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #16063 +/- ##
==========================================
- Coverage 44.19% 44.18% -0.01%
==========================================
Files 694 695 +1
Lines 82324 82432 +108
==========================================
+ Hits 36379 36422 +43
- Misses 40057 40107 +50
- Partials 5888 5903 +15
Continue to review full report at Codecov.
|
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.
tiniest of nits. Still going through the other code though.
Signed-off-by: Andrew Thornton <[email protected]>
Signed-off-by: Andrew Thornton <[email protected]>
Things to be aware of: The use of a queue with the default workers of 0 and boost of 1 with queue length 20 means that there is only 1 repository getting its commit info generated at a time unless there are 20 waiting. We may want to increase the number of boost workers for this queue by default. |
In light of information found in #16035 I think I'm going to have to make this WIP and have another think. A different solution is required. |
@zeripath I am wondering what prompted you to rethink this? Unless I am misunderstanding the proposed solution, #16035 is irrelevant? The way I understand the approach is:
|
@@ -146,6 +146,16 @@ func NewQueueService() { | |||
_, _ = section.NewKey("CONN_STR", Indexer.IssueQueueConnStr) | |||
} | |||
|
|||
// Default the last_commit_queue to use the level queue | |||
section = Cfg.Section("queue.issue_indexer") |
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.
the queue name is not right.
Can this PR be closed then as #16467 got merged now? |
@delvh whilst this does do things differently and does some novel things I think you're right and I'm gonna close it. |
We use the commitinfo cache because we recognise that generating its data is slow. However, when we have a commit info cache we allow it to cause the page to not be rendered until the commit info has been calculated.
This PR simply changes the code to allow the page to still be rendered at least partially whilst we're waiting.