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: Don't update session in cache after every request #26308

Merged
merged 2 commits into from
May 4, 2024

Conversation

ankush
Copy link
Member

@ankush ankush commented May 3, 2024

It's just reading and writing same information except last_update inside data which is never read back from this.

@ankush ankush requested review from a team and akhilnarang and removed request for a team May 3, 2024 08:23
@ankush ankush added the defer backport Backports for some PR are deferred for a week or two to test them properly before releasing label May 3, 2024
@github-actions github-actions bot added the add-test-cases Add test case to validate fix or enhancement label May 3, 2024
@ankush ankush removed the add-test-cases Add test case to validate fix or enhancement label May 3, 2024
@ankush ankush marked this pull request as draft May 3, 2024 08:57
@ankush
Copy link
Member Author

ankush commented May 3, 2024

image

lol, this is only way it was ever put into cache.

@ankush ankush marked this pull request as ready for review May 3, 2024 09:05
@ankush ankush marked this pull request as draft May 3, 2024 09:43
It's just reading and writing same information except last_update inside
data which is never read back from this.
@ankush ankush marked this pull request as ready for review May 4, 2024 05:49
@ankush ankush enabled auto-merge (squash) May 4, 2024 05:49
These are all repeat get_docs which occur in common requests.
@ankush ankush merged commit 7fe9cc4 into frappe:develop May 4, 2024
23 checks passed
@ankush ankush deleted the session_perf branch May 4, 2024 06:10
@ankush ankush added backport version-15-hotfix Backport the PR to v15 backport version-14-hotfix backport to version 14 and removed defer backport Backports for some PR are deferred for a week or two to test them properly before releasing labels May 7, 2024
mergify bot pushed a commit that referenced this pull request May 7, 2024
It's just reading and writing same information except last_update inside
data which is never read back from this.

(cherry picked from commit 7fe9cc4)

# Conflicts:
#	frappe/sessions.py
mergify bot pushed a commit that referenced this pull request May 7, 2024
It's just reading and writing same information except last_update inside
data which is never read back from this.

(cherry picked from commit 7fe9cc4)
ankush added a commit that referenced this pull request May 9, 2024
)

It's just reading and writing same information except last_update inside
data which is never read back from this.

(cherry picked from commit 7fe9cc4)

Co-authored-by: Ankush Menat <ankush@frappe.io>
frappe-pr-bot pushed a commit that referenced this pull request May 14, 2024
# [15.27.0](v15.26.0...v15.27.0) (2024-05-14)

### Bug Fixes

* allow navigating to `Table MultiSelect` fields using tab ([496ae05](496ae05))
* cache github release data per bench (backport [#26382](#26382)) ([#26387](#26387)) ([6e8ef85](6e8ef85))
* **document_follow:** `following` was treated as a string not a boolean ([e0ecfc6](e0ecfc6))
* Increase folder link field size ([#26381](#26381)) ([#26384](#26384)) ([52c335c](52c335c))
* **integrations:** add back `response.raise_for_status()` ([13182e4](13182e4))
* make rename_doc work pre_model_sync ([#26419](#26419)) ([2db51ea](2db51ea))
* pass user and shared params when checking for cache keys ([#26402](#26402)) ([#26404](#26404)) ([a0eb7c1](a0eb7c1))

### Features

* functionality to assign users by user group ([#26044](#26044)) ([#26432](#26432)) ([c308931](c308931))

### Performance Improvements

* Don't update session in cache after every request ([#26308](#26308)) ([#26362](#26362)) ([c0ba12c](c0ba12c))
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport version-14-hotfix backport to version 14 backport version-15-hotfix Backport the PR to v15
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants