Denormalized audio permission logic in a separate table to enhance performance
This commit is contained in:
parent
afbf7151c8
commit
4e7f1e63d2
17 changed files with 648 additions and 21 deletions
1
changes/changelog.d/denormalization.enhancement
Normal file
1
changes/changelog.d/denormalization.enhancement
Normal file
|
|
@ -0,0 +1 @@
|
|||
Denormalized audio permission logic in a separate table to enhance performance
|
||||
|
|
@ -5,3 +5,20 @@ Next release notes
|
|||
|
||||
Those release notes refer to the current development branch and are reset
|
||||
after each release.
|
||||
|
||||
Denormalized audio permission logic in a separate table to enhance performance
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
With this release, we're introducing a performance enhancement that should drastically reduce the load on the database and API
|
||||
servers (cf https://dev.funkwhale.audio/funkwhale/funkwhale/merge_requests/939).
|
||||
|
||||
Under the hood, we now maintain a separate table to link users to the tracks they are allowed to see. This change is **disabled**
|
||||
by default, but will be enabled by default starting in Funkwhale 0.21.
|
||||
|
||||
If you want to try it now, add
|
||||
``MUSIC_USE_DENORMALIZATION=True`` to your ``.env`` file, restart Funkwhale, and run the following command::
|
||||
|
||||
python manage.py rebuild_music_permissions
|
||||
|
||||
This shouldn't cause any regression, but we'd appreciate if you could test this before the 0.21 release and report any unusual
|
||||
behaviour regarding tracks, albums and artists visibility.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue