typeidea icon indicating copy to clipboard operation
typeidea copied to clipboard

性能优化,update

Open huajianzhanggithub opened this issue 6 years ago • 0 comments

    def get(self, request, *args, **kwargs):
        response = super().get(request, *args, **kwargs)
        self.handle_visited()
        return response

您好,这个handle_visited函数是UPDATE操作,太耗时了,怎么能先return了response,然后再执行handle_visited函数啊?

huajianzhanggithub avatar Jan 01 '20 09:01 huajianzhanggithub