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

PageView: use BigAutoField for primary key #9670

Merged
merged 3 commits into from
May 25, 2023
Merged

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented Oct 18, 2022

How to deploy

We create page views on 404 and on page views (duh), so while we do the migration this may slow down
doc serving (specially on .com where we have this feature enable for everyone), so in order to avoid that we need to disable page views while we do the migration.

Luckily we already have a feature flag for that:

(
DISABLE_PAGEVIEWS,
_("Disable all page views"),
),

ref #9492


📚 Documentation previews 📚

How to deploy

We create page views on 404 and on page views (duh),
so while we do the migration this may slow down
doc serving (specially on .com where we have this feature enable for
everyone), so in order to avoid that we need to disable page views
while we do the migration.

Luckily we already have a feature flag for that:

https://github.com/readthedocs/readthedocs.org/blob/a09bc1a976a93bcc3f987fa0a052901f0065619f/readthedocs/projects/models.py#L1897-L1900

ref #9492
@stsewd stsewd requested a review from a team as a code owner October 18, 2022 15:42
@stsewd stsewd requested a review from humitos October 18, 2022 15:42
Copy link
Member

@humitos humitos 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 to me! Make sure to put a note in the release project.

@stsewd stsewd merged commit acc6bb5 into main May 25, 2023
@stsewd stsewd deleted the use-bigautofield-pageview branch May 25, 2023 16:15
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.

2 participants