8000 perf(doc): skip order_by when name is set in load_from_db (backport #18837) by mergify[bot] · Pull Request #31452 · frappe/frappe · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

perf(doc): skip order_by when name is set in load_from_db (backport #18837) #31452

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
merged 3 commits into from
Feb 28, 2025

Conversation

mergify[bot]
Copy link
Contributor
@mergify mergify bot commented Feb 28, 2025

Setting ORDER BY clause in the SQL nudges MariaDB to not use index (even) for primary keys.

Screenshot from 2022-11-10 11-33-21


This is an automatic backport of pull request #18837 done by [Mergify](https://mergify.com).

Setting ORDER BY clause in the SQL nudges MariaDB to not use index
(even) for primary keys.

(cherry picked from commit 9ad0538)

# Conflicts:
#	frappe/model/document.py
@mergify mergify bot added the conflicts label Feb 28, 2025
Copy link
Contributor Author
mergify bot commented Feb 28, 2025

Cherry-pick of 9ad0538 has failed:

On branch mergify/bp/version-14-hotfix/pr-18837
Your branch is up to date with 'origin/version-14-hotfix'.

You are currently cherry-picking commit 9ad0538521.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   frappe/model/document.py

no changes added to commit (use "git add" and/or "git commit -a")

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

@ankush ankush enabled auto-merge (squash) February 28, 2025 04:59
@ankush ankush merged commit 1f39f8e into version-14-hotfix Feb 28, 2025
7 of 9 checks passed
@ankush ankush deleted the mergify/bp/version-14-hotfix/pr-18837 branch February 28, 2025 05:15
frappe-pr-bot pushed a commit that referenced this pull request Mar 4, 2025
## [14.94.2](v14.94.1...v14.94.2) (2025-03-04)

### Bug Fixes

* check for running jobs before migrating (backport [#31438](#31438)) ([#31439](#31439)) ([c937328](c937328))
* check types explicitly ([b1be1d4](b1be1d4))
* ensure consistent error in response ([3b8c976](3b8c976))
* ensure correct context in `sys.exc_info` ([3000e66](3000e66))
* ensure exception is always returned ([17a318a](17a318a))
* Ensure that scheduled jobs don't start in maintenance_mode ([#31450](#31450)) ([#31455](#31455)) ([466a646](466a646))
* explicitly check type of form name ([21f7b33](21f7b33))
* fetch data from submitted child rows for global search indexing ([#31405](#31405)) ([#31406](#31406)) ([660be20](660be20))
* handle large URL on webhook logs (backport [#31428](#31428)) ([#31429](#31429)) ([c5e7e51](c5e7e51))
* ignore `disable_traceback` if `_dev_server` is True ([956af31](956af31))
* merge conflict ([ec77e5c](ec77e5c))
* merge conflicts ([fdcd4be](fdcd4be))
* **print:** handle custom format with custom module ([5ed9a3e](5ed9a3e))
* redo some fixes to ensure cypress passes (backport [#31334](#31334)) ([b7224b9](b7224b9))
* remove dev server condition ([c1bea8b](c1bea8b))
* remove flag to ensure some checks run ([4ee4708](4ee4708))
* remove merge conflict ([63f3e4a](63f3e4a))
* **send_message:** escape HTML in the text ([50bbf7e](50bbf7e))
* set login_id for sengrid ([c832259](c832259))
* template error on custom print format ([7f6948d](7f6948d))
* Update phonenumber library to handle new GY phone number format (backport [#31328](#31328)) ([#31342](#31342)) ([2386a8a](2386a8a))
* update type hints to allow integers ([8ad02b2](8ad02b2))
* update whitelisted methods ([997ff9b](997ff9b))
* **workflow_action:** Pass context as dict to render template ([49621bb](49621bb))

### Performance Improvements

* Add prefix index for file_url ([#29185](#29185)) ([#31403](#31403)) ([d2ad3de](d2ad3de))
* cast int-link field filters to string ([#31396](#31396)) ([#31397](#31397)) ([dbb2645](dbb2645))
* **doc:** skip order_by when name is set in load_from_db (backport [#18837](#18837)) ([#31452](#31452)) ([1f39f8e](1f39f8e))
* skip order by for open_count ([#31472](#31472)) ([#31480](#31480)) ([5a2ad66](5a2ad66))
* workspace cache thrashing (backport [#31446](#31446)) ([#31449](#31449)) ([4f39405](4f39405))
@frappe-pr-bot
Copy link
Collaborator

🎉 This PR is included in version 14.94.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 19, 2025
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.

3 participants
0