Ankush Menat
6019f60d0a
fix(perf): index creation on voucher_detail_no ( #27866 )
...
voucher_detail_no is supposed to have an index, it was added on
on_doctype_update function of table, however this function is only
called if DocType itself is updated and `on_update` is called on
DocType. Stock ledger Entry doctype hasn't changed since addition of
this index in function.
Before: Lack of this index was causing full table scan in
get_future_sle_to_fix function. (~50 seconds in a reposting job)
After: Single row is fetched (~0.5 second in full reposting job)
Learnings:
1. Add simple indexes via doctype only
2. For complex indexes always change doctype.json file for it to take
effect.
2021-10-08 16:12:15 +05:30
..
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-10-08 14:31:13 +05:30
2021-10-05 16:16:21 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-10-05 12:35:23 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2018-11-13 16:48:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-12 16:36:51 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-10-06 16:58:48 +00:00
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-28 06:41:37 +00:00
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-10-05 14:40:40 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-10-01 13:05:36 +05:30
2015-07-13 12:41:27 +05:30
2021-10-06 16:58:48 +00:00
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-10-04 22:38:04 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-10-08 16:12:15 +05:30
2021-09-16 15:47:17 +05:30
2021-09-02 16:44:59 +05:30
2021-10-01 13:05:36 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30
2021-09-02 16:44:59 +05:30