perf: Don't update list view settings on every query (#31743)
It literally doesn't do anything ever. User settings are explicitly updated using `user_settings.save` endpoint.
This commit is contained in:
parent
445f3cb5a9
commit
3bfc9fa8da
1 changed files with 4 additions and 0 deletions
|
|
@ -1142,6 +1142,10 @@ class DatabaseQuery:
|
|||
|
||||
def update_user_settings(self):
|
||||
# update user settings if new search
|
||||
if not self.save_user_settings_fields and not getattr(self, "user_settings", None):
|
||||
# Nothing has changed or needs to be changed
|
||||
return
|
||||
|
||||
user_settings = json.loads(get_user_settings(self.doctype))
|
||||
|
||||
if hasattr(self, "user_settings"):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue