kopia lustrzana https://github.com/wagtail/wagtail
![]() The rebuild_reference_index management command starts by deleting the entire ReferenceIndex table. In Wagtail versions 4.1 and 4.2, all models are tracked in the reference index. Unfortunately this also includes the ReferenceIndex model itself. This is changed in 5.0 to only track certain Wagtail-related models [0]. This means that when rebuild_reference_index runs in versions 4.1 or 4.2, and deletes the ReferenceIndex table, it runs the code that checks whether ReferenceIndex instances have any references. If the index contains a large number of references (as could happen if an upgrade to 4.1 built an index for a non-Wagtail model), this process becomes extremely slow. There's no need for the rebuild_reference_index command to update the index when deleting it, so this can be significantly optimized by disabling auto update here. [0] https://docs.wagtail.org/en/stable/releases/5.0.html#referenceindex-no-longer-tracks-models-used-outside-of-wagtail |
||
---|---|---|
.. | ||
_static | ||
_templates | ||
advanced_topics | ||
contributing | ||
editor_manual | ||
extending | ||
getting_started | ||
public | ||
reference | ||
releases | ||
topics | ||
Makefile | ||
README.md | ||
autobuild.sh | ||
conf.py | ||
favicon.ico | ||
index.rst | ||
logo.png | ||
spelling_wordlist.txt | ||
support.md |
README.md
Wagtail docs
These are Sphinx docs, automatically built at https://docs.wagtail.org when the main
branch is committed to GitHub. To build them locally, install Wagtail's development requirements (in the root Wagtail directory):
pip install -e .[testing,docs]
To build the documentation for browsing, from this directory run:
make html
then open _build/html/index.html
in a browser.
To rebuild automatically while editing the documentation, from this directory run:
sphinx-autobuild . _build
The online MyST playground at Curvenote or the MyST-Markdown VS Code Extension are helpful tools for working with the MyST syntax.