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
The model_from_serializable_data in django-model-cluster allows the check_fks argument, ensuring referenced foreign objects exist in the database. In Wagtail, get_latest_revision_as_object eventually invokes model_from_serializable_data, setting check_fks as True by default. With numerous tags, this results in extensive SQL queries for a single page. Would it make sense to add a check_fks argument in get_latest_revision_as_object, defaulting to True?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The
model_from_serializable_data
in django-model-cluster allows thecheck_fks
argument, ensuring referenced foreign objects exist in the database. In Wagtail,get_latest_revision_as_object
eventually invokesmodel_from_serializable_data
, settingcheck_fks
as True by default. With numerous tags, this results in extensive SQL queries for a single page. Would it make sense to add acheck_fks
argument inget_latest_revision_as_object
, defaulting to True?Beta Was this translation helpful? Give feedback.
All reactions