Skip to content

Commit

Permalink
Merge pull request #101 from HarryPaulo/create-index-message
Browse files Browse the repository at this point in the history
feat: performance tunning, add_index for key [reference_doctype, refe…
  • Loading branch information
shridarpatil authored Sep 9, 2024
2 parents 240f99c + 3823eed commit 0827ab3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2024-05-03 13:22:45.081391",
"modified": "2024-09-02 04:37:50.937855",
"modified_by": "Administrator",
"module": "Frappe Whatsapp",
"name": "WhatsApp Message",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ def format_number(self, number):
return number



def on_doctype_update():
frappe.db.add_index("WhatsApp Message", ["reference_doctype", "reference_name"])


@frappe.whitelist()
def send_template(to, reference_doctype, reference_name, template):
try:
Expand Down

0 comments on commit 0827ab3

Please sign in to comment.