-
Notifications
You must be signed in to change notification settings - Fork 44
Fixes #1246 and #1756 - Removed Hall of Fame task #1754
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
Draft
bwbroersma
wants to merge
1
commit into
internetstandards:main
Choose a base branch
from
bwbroersma:gh1754-improve-hall-of-fame-task
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Fixes #1246 and #1756 - Removed Hall of Fame task #1754
bwbroersma
wants to merge
1
commit into
internetstandards:main
from
bwbroersma:gh1754-improve-hall-of-fame-task
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
88f8a89
to
ff56100
Compare
ff56100
to
4235ffa
Compare
aequitas
reviewed
May 20, 2025
beedb9b
to
c16928a
Compare
6977b11
to
c393ed8
Compare
…l of Fame task
c393ed8
to
eb80d6f
Compare
Testing concluded:
Steps forward:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Todo:
Migration
New: use of django-pgtrigger (note this does add some overhead/boilerplate to support the
pgtrigger.ignore
decorator to dynamically Ignoring Execution of the triggers)Rewrite
update.py
to useFame
modelNew: rewrite
update.py
+ Redis cache + Optimize run_stats_queries #1756 tointerface/views/__init__.py
Already cached via
@simple_cache_page
in RedisNew: check if instead of requesting once from the DB and sorting in application space the DB can be requested 3 times with the sorted output, so the
iterator()
can be used without sorting in Python, this would save memory (and probably faster to sort at the DB, since there it's also possible to add indices). Check if permalink formatting can be done generic and done at a point to minimize string copying.Optional: put
slow-worker
in some sort of composebatch
profile (since the 2-5GB memory container won't be needed in Single Test mode), or move remaining slow-worker tasks (registering and generating async results) to another containerFind a way to remove the
SELECT "checks_fame"."id"
(while.only("domain")
) for Index Only Scan performance for HoF queries (fixed by using domain as primary key in django, note this does create an extra"checks_fame_domain_HASHHASH_like" btree (domain varchar_pattern_ops)
index)Test
Seems okay:
checks_{domain,mail}testreport (id, timestamp, domain, score)
dump, or anonymized set)Use single
MERGE
instead ofDELETE + UPDATE
:Use
OR UPDATE OF score ON
triggerNote for the initial population: maybe
PARTITION BY domain ORDER BY id DESC
should be changed toPARTITION BY domain ORDER BY timestamp DESC
, although the change will probably be minimal, but the current situation is ordered by timestamp.