Skip to content

fix: slow stock transactions (backport #45025) #45027

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

Merged

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jan 1, 2025

 Query   |  162 | Creating sort index | select *, posting_datetime as "timestamp"
                from `tabStock Ledger Entry`
                where item_code = 'ABC001'
                        and warehouse = 'WH-001'
                        and is_cancelled = 0
                        and creation < '2025-01-01 13:21:26.738690'
                        and (
                                posting_datetime <= '2024-12-31 08:49:39'
                        )
                order by posting_date desc, posting_time desc, creation desc
                limit 1

order by posting_date and posting_time is not indexed

Screenshot 2025-01-01 at 1 56 46 PM
This is an automatic backport of pull request #45025 done by [Mergify](https://mergify.com).

@mergify mergify bot requested a review from rohitwaghchaure as a code owner January 1, 2025 09:22
@github-actions github-actions bot added needs-tests This PR needs automated unit-tests. stock labels Jan 1, 2025
@rohitwaghchaure
Copy link
Collaborator

@Mergifyio backport version-15

Copy link
Contributor Author

mergify bot commented Jan 1, 2025

backport version-15

✅ Backports have been created

@rohitwaghchaure rohitwaghchaure merged commit 85ba96e into version-15-hotfix Jan 1, 2025
11 of 12 checks passed
@rohitwaghchaure rohitwaghchaure deleted the mergify/bp/version-15-hotfix/pr-45025 branch January 1, 2025 09:41
mergify bot added a commit that referenced this pull request Jan 1, 2025
fix: slow stock transactions (#45025)

(cherry picked from commit e92af10)

Co-authored-by: rohitwaghchaure <[email protected]>
(cherry picked from commit 85ba96e)
rohitwaghchaure added a commit that referenced this pull request Jan 1, 2025
fix: slow stock transactions (backport #45025) (backport #45027)
frappe-pr-bot pushed a commit that referenced this pull request Jan 1, 2025
## [15.47.3](v15.47.2...v15.47.3) (2025-01-01)

### Bug Fixes

* slow stock transactions (backport [#45025](#45025)) ([#45027](#45027)) ([bb75adb](bb75adb))
frappe-pr-bot pushed a commit that referenced this pull request Jan 3, 2025
## [15.47.4](v15.47.3...v15.47.4) (2025-01-03)

### Bug Fixes

* Added patch and fallback code to prevent future issues similiar to helpdesk ticket 28246 ([ab87265](ab87265))
* Added patch and fallback code to prevent future issues similiar to helpdesk ticket 28246 ([66544bf](66544bf))
* BOM cost update issue ([00102a1](00102a1))
* Fixed logic in if condition causing tests to fail ([b3b8083](b3b8083))
* Removed patch as instructed by mentor ([3049027](3049027))
* Removed patch as instructed by mentor ([163af91](163af91))
* removed unknown patch? ([f9d038e](f9d038e))
* removed unused code ([d31b0a5](d31b0a5))
* slow stock transactions (backport [#45025](#45025)) ([#45027](#45027)) ([85ba96e](85ba96e))
* **style:** set image width in BOM ([6247d5a](6247d5a))
* validate components and their qty as per BOM in the stock entry ([b5f6926](b5f6926))
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 16, 2025
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. stock
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant