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

@@ -236,3 +236,6 @@ def add_multiple_tasks(data, parent):
new_doc['subject'] = d.get("subject")
new_task = frappe.get_doc(new_doc)
new_task.insert()
def on_doctype_update():
frappe.db.add_index("Task", ["lft", "rgt"])