brotherton-erpnext/erpnext/stock/doctype
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
..
batch chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
bin chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
customs_tariff_number chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
delivery_note fix: remove readonly from billing address 2021-10-08 14:31:13 +05:30
delivery_note_item fix: using DN for transfer w/o internal customer (backport #27798) (backport #27805) (#27807) 2021-10-05 16:16:21 +05:30
delivery_settings chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
delivery_stop chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
delivery_trip chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
item fix: add (uom, brand) Item details in an Item Price (#27561) 2021-10-05 12:35:23 +05:30
item_alternative chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
item_attribute chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
item_attribute_value chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
item_barcode fix(field property): Made barcode field non-mandatory in item 2018-11-13 16:48:59 +05:30
item_customer_detail chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
item_default chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
item_manufacturer chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
item_price chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
item_quality_inspection_parameter chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
item_reorder chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
item_supplier chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
item_tax chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
item_variant chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
item_variant_attribute chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
item_variant_settings fix(ux): clean invalid fields from variant setting (#27412) 2021-09-12 16:36:51 +05:30
item_website_specification chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
landed_cost_item chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
landed_cost_purchase_receipt chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
landed_cost_taxes_and_charges chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
landed_cost_voucher chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
manufacturer chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
material_request refactor: Clean up mutable defaults and add CI check (#27828) 2021-10-06 16:58:48 +00:00
material_request_item chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
packed_item chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
packing_slip chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
packing_slip_item chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
pick_list chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
pick_list_item fix: set item.qty as mandatory in picklist (#27680) 2021-09-28 06:41:37 +00:00
price_list chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
price_list_country chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
purchase_receipt fix: batch_no not mapped from PR to Stock Entry (#27794) 2021-10-05 14:40:40 +05:30
purchase_receipt_item chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
putaway_rule chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
quality_inspection chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
quality_inspection_parameter chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
quality_inspection_parameter_group chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
quality_inspection_reading chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
quality_inspection_template chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
quick_stock_balance chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
repost_item_valuation fix: option to limit reposting in certain timeslot (#27725) 2021-10-01 13:05:36 +05:30
sales_bom
sales_bom_item
serial_no refactor: Clean up mutable defaults and add CI check (#27828) 2021-10-06 16:58:48 +00:00
shipment chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
shipment_delivery_note chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
shipment_parcel chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
shipment_parcel_template chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
stock_entry fix: set item uom as stock_uom if it isn't set (#27623) 2021-10-04 22:38:04 +05:30
stock_entry_detail chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
stock_entry_type chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
stock_ledger_entry fix(perf): index creation on voucher_detail_no (#27866) 2021-10-08 16:12:15 +05:30
stock_reconciliation fix: Validate if item exists on uploading items in stock reco (#27538) 2021-09-16 15:47:17 +05:30
stock_reconciliation_item chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
stock_reposting_settings fix: option to limit reposting in certain timeslot (#27725) 2021-10-01 13:05:36 +05:30
stock_settings chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
uom_category chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
uom_conversion_detail chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
variant_field chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
warehouse chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
warehouse_type chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
__init__.py