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: asset depreciation entry posting #36461

Merged
merged 6 commits into from
Aug 8, 2023
Merged

perf: asset depreciation entry posting #36461

merged 6 commits into from
Aug 8, 2023

Conversation

anandbaburajan
Copy link
Contributor

@anandbaburajan anandbaburajan commented Aug 2, 2023

A site with 100k+ assets had their depreciation posting job timing out, so made the job daily_long

Optimised and refactored post_depreciation_entries and make_depreciation_entry

Now schedules are independent of each other -- failure of posting of one schedule won't cause rollback for whole asset

Now if the acc_frozen_upto date is set, schedules before it won't be posted

On my local setup, for 1k assets with 3 pending depreciation postings:

Before: 1225s
After: 854s
Improvement: 30%

@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Aug 2, 2023
@anandbaburajan anandbaburajan marked this pull request as draft August 2, 2023 09:14
@anandbaburajan anandbaburajan changed the title perf: make post depr entries job daily_long perf: post_depreciation_entries Aug 2, 2023
@anandbaburajan anandbaburajan marked this pull request as ready for review August 2, 2023 20:23
@anandbaburajan anandbaburajan changed the title perf: post_depreciation_entries perf: asset depreciation entry posting Aug 2, 2023
@anandbaburajan anandbaburajan marked this pull request as draft August 3, 2023 13:27
@anandbaburajan anandbaburajan marked this pull request as ready for review August 3, 2023 14:22
@anandbaburajan anandbaburajan marked this pull request as draft August 7, 2023 07:53
@anandbaburajan anandbaburajan marked this pull request as ready for review August 7, 2023 18:26
@anandbaburajan anandbaburajan merged commit cd1c175 into frappe:version-14-hotfix Aug 8, 2023
9 checks passed
frappe-pr-bot pushed a commit that referenced this pull request Aug 9, 2023
# [14.34.0](v14.33.2...v14.34.0) (2023-08-09)

### Bug Fixes

* **accounts:** Translate columns in AP/AR report ([#36503](#36503)) ([6739369](6739369))
* AP and AR summary ([769d7d7](769d7d7))
* check root type only when not none ([46bb309](46bb309))
* cross connect delivery note and sales invoice ([#36183](#36183)) ([8501a11](8501a11))
* Debit credit difference while submitting Sales Invoice ([#36523](#36523)) ([240d866](240d866))
* don't allow negative rate (backport [#36027](#36027)) ([#36465](#36465)) ([caa4f33](caa4f33))
* enqueue submit/cancel action for stock entry having more than 50 line items (backport [#36532](#36532)) ([#36536](#36536)) ([9c108a8](9c108a8))
* fetch ple for all party types ([674dba8](674dba8))
* fetch ple with party type employee in AP ([1ca9aca](1ca9aca))
* Fix query for financial statement report ([d1590f2](d1590f2))
* get incoming rate instead of BOM rate (backport [#36496](#36496)) ([#36506](#36506)) ([bdfbccd](bdfbccd))
* handle None value in payment_term_outstanding ([b033b3b](b033b3b))
* Lower deduction certificate for multi-company ([#36491](#36491)) ([2216875](2216875))
* payment allocation in invoice payment schedule ([#36440](#36440)) ([0e87c86](0e87c86))
* search not working for so in the Production Plan ([#36459](#36459)) ([8c57d56](8c57d56))
* serial no not able to reject for the internal transfer ([#36467](#36467)) ([c1819a4](c1819a4))
* stock entry decimal issue (backport [#36530](#36530)) ([#36533](#36533)) ([5b04708](5b04708))
* stock reconciliation negative stock error (backport [#36544](#36544)) ([#36549](#36549)) ([00b9df0](00b9df0))
* Tax withholding against order via Payment Entry ([#36493](#36493)) ([a234b89](a234b89))
* use correct lang separator for frappe (backport [#36519](#36519)) ([#36520](#36520)) ([f9981d1](f9981d1))
* **ux:** add `Ordered Qty` column in Get Items From > MR (backport [#36486](#36486)) ([#36505](#36505)) ([0d7a4b6](0d7a4b6))

### Features

* ledger comparison report ([#36485](#36485)) ([07f235c](07f235c))
* **RFQ:** make sending attachments configurable (backport [#36359](#36359)) ([#36535](#36535)) ([5881960](5881960))

### Performance Improvements

* asset depreciation entry posting ([#36461](#36461)) ([cd1c175](cd1c175))
* defer holiday list imports ([7adad42](7adad42))
@frappe-pr-bot
Copy link
Collaborator

🎉 This PR is included in version 14.34.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs-tests This PR needs automated unit-tests. released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants