I noticed that loading change_view pages is slower when using reversion, due to a transaction block being opened. If I replace the implementation of create_revision with:
@contextmanager
def create_revision(self, request: HttpRequest):
if request.method == "GET":
yield
else:
with create_revision():
set_user(request.user)
yield
This goes away. Is there a reason for wrapping change_view GET requests in a create_revision block?
I noticed that loading change_view pages is slower when using reversion, due to a transaction block being opened. If I replace the implementation of
create_revision
with:This goes away. Is there a reason for wrapping change_view
GET
requests in acreate_revision
block?