brotherton-erpnext/erpnext/stock
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
..
dashboard chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
dashboard_chart
dashboard_chart_source chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
doctype fix(perf): index creation on voucher_detail_no (#27866) 2021-10-08 16:12:15 +05:30
form_tour
module_onboarding/stock
number_card
onboarding_slide/add_a_few_products_you_buy_or_sell
onboarding_step
page
print_format
report test: automated test for running all stock reports (#27510) 2021-09-15 19:24:35 +05:30
stock_dashboard/stock
workspace/stock
__init__.py chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
get_item_details.py refactor: Clean up mutable defaults and add CI check (#27828) 2021-10-06 16:58:48 +00:00
landed_taxes_and_charges_common.js
README.md
reorder_item.py fix: use ceil in case of whole uoms for reorder qty (#27834) 2021-10-06 18:16:33 +05:30
stock_balance.py chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
stock_ledger.py fix: not able to submit stock entry with 350 items (#27523) 2021-09-15 20:42:47 +05:30
utils.py chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30

Inventory management module.