Followup for 🐛 Impossible to save a pending revision as the default one without creating a new revision RTBC , where @berdir proposed this:
And is it worth optimizing the code below for this case? Meaning, only delete and re-insert the default revision tables and not the revision tables? That would half the number of writes and would be a considerable speed boost for publishing a workspace, no?
We already have a condition on the $query->execute(), so we already now prepare the query and then ignore it for a non-default revision save. that means we just need to add a condition (maybe prepare a flag up here?) on two existing if conditions?
Update SqlContentEntityStorage to only update base tables (both shared and dedicated) when re-saving a pending revision as a default one.
Do it :)
Nope.
N/A
Nope.
Nope.
TBD.
Active
11.0 🔥
entity system
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
No activities found.