This should vastly improve the speed of the ContentNode admin page such that it becomes useful—at the moment the list page just times out on prod.
Removes two very expensive queries:
Drops the count of annotations per content node for each row of the list page. This is very very slow and not that interesting anyway.
Adds the estimated paginator taken from Perma for the result set.
Also adds two fields on the change page that were probably omissions: resource_id and resource_type. They were listed in readonly_fields, but those values have no effect if they aren't also in fields. (This behavior of Django's is silly.)
This should vastly improve the speed of the ContentNode admin page such that it becomes useful—at the moment the list page just times out on prod.
Removes two very expensive queries:
Also adds two fields on the change page that were probably omissions:
resource_id
andresource_type
. They were listed inreadonly_fields
, but those values have no effect if they aren't also infields
. (This behavior of Django's is silly.)