Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: index in Item and Item Variant Attribute #36133

Merged
merged 2 commits into from
Jul 15, 2023

Conversation

s-aga-r
Copy link
Contributor

@s-aga-r s-aga-r commented Jul 14, 2023

Source / Ref: ISS-23-24-02011

Add Index for columns used in this query.

@codecov
Copy link

codecov bot commented Jul 14, 2023

Codecov Report

Merging #36133 (04400eb) into develop (fd23bd0) will decrease coverage by 0.06%.
The diff coverage is 0.00%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #36133      +/-   ##
===========================================
- Coverage    64.26%   64.21%   -0.06%     
===========================================
  Files          785      785              
  Lines        60700    60681      -19     
===========================================
- Hits         39008    38965      -43     
- Misses       21692    21716      +24     
Impacted Files Coverage Δ
...ext/accounts/report/trial_balance/trial_balance.py 0.00% <0.00%> (ø)

... and 3 files with indirect coverage changes

@s-aga-r s-aga-r marked this pull request as ready for review July 15, 2023 04:39
@s-aga-r s-aga-r merged commit 6daaf42 into frappe:develop Jul 15, 2023
14 checks passed
s-aga-r added a commit that referenced this pull request Jul 15, 2023
…36144)

* perf: index `variant_of` and `attribute` in `Item Variant Attribute`

(cherry picked from commit e4128a5)

* perf: index `disabled` in `Item`

(cherry picked from commit 04400eb)

---------

Co-authored-by: s-aga-r <sagarsharma.s312@gmail.com>
s-aga-r added a commit that referenced this pull request Jul 15, 2023
…36145)

* perf: index `variant_of` and `attribute` in `Item Variant Attribute`

(cherry picked from commit e4128a5)

* perf: index `disabled` in `Item`

(cherry picked from commit 04400eb)

# Conflicts:
#	erpnext/stock/doctype/item/item.json

* chore: `conflicts`

---------

Co-authored-by: s-aga-r <sagarsharma.s312@gmail.com>
frappe-pr-bot pushed a commit that referenced this pull request Jul 18, 2023
## [13.52.6](v13.52.5...v13.52.6) (2023-07-18)

### Bug Fixes

* allow manual asset receipt mov from nowhere (backport [#36093](#36093)) ([#36095](#36095)) ([2993eb5](2993eb5))
* HSN code not showing up in GST itemised register reports ([#36142](#36142)) ([1d3917b](1d3917b))
* improve "Update Items" modal ([#36105](#36105)) ([3bc899f](3bc899f))

### Performance Improvements

* index in `Item` and `Item Variant Attribute` (backport [#36133](#36133)) ([#36145](#36145)) ([120de24](120de24))
frappe-pr-bot pushed a commit that referenced this pull request Jul 18, 2023
# [14.31.0](v14.30.7...v14.31.0) (2023-07-18)

### Bug Fixes

* `TypeError` while creating WO from PP (backport [#36136](#36136)) ([#36137](#36137)) ([dd51010](dd51010))
* Account balance patch and query fixes ([#36117](#36117)) ([0147754](0147754))
* Accounts closing balance patch ([#36113](#36113)) ([cf29156](cf29156))
* allow manual asset receipt mov from nowhere ([#36093](#36093)) ([4aaa1a1](4aaa1a1))
* Ambiguous column error while submitting stock entry ([#36058](#36058)) ([a3a052b](a3a052b))
* circular dependency during reposting causing timeout error ([2c21404](2c21404))
* get_dimension with_cost_center_and_project=false is not working ([#35974](#35974)) ([42c93a1](42c93a1))
* Handle multi-company in patch ([#36127](#36127)) ([e7f5754](e7f5754))
* improve "Update Items" modal ([#36105](#36105)) ([b86571d](b86571d))
* incorrect Balance Qty in the stock ledger for the item with Serial and Batch no ([373b868](373b868))
* incorrect Reserved Qty for Production Plan in BIN for multi-uom case ([2f632d0](2f632d0))
* Opening balance in TB report ([#36171](#36171)) ([313ad7a](313ad7a))
* Opening entries showing up incorrectly in TB report ([#36135](#36135)) ([d10e5e6](d10e5e6))
* Remove current fiscal year from Global Defaults ([#35960](#35960)) ([b877fa6](b877fa6))
* Trailing opening entries in Accounts closing balance ([#36175](#36175)) ([8a607db](8a607db))
* validate docs in closed accounting period on save ([#36157](#36157)) ([5985e02](5985e02))

### Features

* add local holidays ([#36116](#36116)) ([94caf7f](94caf7f))
* add project filter in reports importing financial statements js file ([#36097](#36097)) ([63e26e3](63e26e3))

### Performance Improvements

* index in `Item` and `Item Variant Attribute` (backport [#36133](#36133)) ([#36144](#36144)) ([6198983](6198983))
* send SLA doctypes in boot ([adb6918](adb6918))
@aakvatech
Copy link
Contributor

Would you also share anonymized contents of the ISS-23-24-02011 as part of the description?

@s-aga-r
Copy link
Contributor Author

s-aga-r commented Jul 20, 2023

Would you also share anonymized contents of the ISS-23-24-02011 as part of the description?

The ISS-23-24-02011 is for our reference. I don't think this PR needs any description (?) It's just a simple change to enable Index for some columns used in a query. If you're asking about performance improvements that will be negligible for most of the users as this user has ~1 Cr Item Variant Attributes.

@s-aga-r s-aga-r deleted the FIX-ISS-23-24-02011 branch July 27, 2023 08:12
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants