6019f60d0a
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. |
||
---|---|---|
.. | ||
dashboard | ||
dashboard_chart | ||
dashboard_chart_source | ||
doctype | ||
form_tour | ||
module_onboarding/stock | ||
number_card | ||
onboarding_slide/add_a_few_products_you_buy_or_sell | ||
onboarding_step | ||
page | ||
print_format | ||
report | ||
stock_dashboard/stock | ||
workspace/stock | ||
__init__.py | ||
get_item_details.py | ||
landed_taxes_and_charges_common.js | ||
README.md | ||
reorder_item.py | ||
stock_balance.py | ||
stock_ledger.py | ||
utils.py |
Inventory management module.