Added indexes for lft, rgt on nestedset doctypes (#13420)

This commit is contained in:
Nabin Hait
2018-04-02 10:43:46 +05:30
committed by GitHub
parent 5d71609f0b
commit c825e914d1
10 changed files with 37 additions and 3 deletions

View File

@@ -177,4 +177,7 @@ def get_children(doctype, parent, is_root=False):
# return nodes
return land_units
def on_doctype_update():
frappe.db.add_index("Land Unit", ["lft", "rgt"])