You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Examples:
we need recording listen count numbers to show top listened recordings;
we need numbers of pieces and recordings associated with people to sort people on catalog pages by these numbers;
we need derived person name forms to do quick lookups for person objects matching string names when importing music from webpages (currently implemented in ExtPersonName table).
It would be nice to implement these as a method decorator, something like: @stored
def method(): ...
The text was updated successfully, but these errors were encountered:
In-database count ordering can be performed without extra fields with annotate() django ORM method.
There is now a title field in models.Recording. Its values can get out of sync if pieces are modified, but we can perform an ordering check following the title inheriting logic in Python code after the query (just the check, which is much faster than pythonic sort), then proceed if everything is OK (usually it should be) or perform a pythonic sort and initiate a background title sync if the order is broken.
Examples:
we need recording listen count numbers to show top listened recordings;
we need numbers of pieces and recordings associated with people to sort people on catalog pages by these numbers;
we need derived person name forms to do quick lookups for person objects matching string names when importing music from webpages (currently implemented in ExtPersonName table).
It would be nice to implement these as a method decorator, something like:
@stored
def method(): ...
The text was updated successfully, but these errors were encountered: