[PR #495] [MERGED] Optimization for user.GetRepositoryAccesses to reduce db query times #15412

Closed
opened 2025-11-02 11:45:59 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/495
Author: @lunny
Created: 12/27/2016
Status: Merged
Merged: 12/28/2016
Merged by: @lunny

Base: masterHead: lunny/optimization_user_GetRepositoryAccesses


📝 Commits (2)

  • 3c2fd7b optimization for user.GetRepositoryAccesses to reduce db query times
  • 6f9d90d fix missing cache

📊 Changes

1 file changed (+27 additions, -18 deletions)

View changed files

📝 models/access.go (+27 -18)

📄 Description

Too many database queries on this method. This will reduce many of them.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/495 **Author:** [@lunny](https://github.com/lunny) **Created:** 12/27/2016 **Status:** ✅ Merged **Merged:** 12/28/2016 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `lunny/optimization_user_GetRepositoryAccesses` --- ### 📝 Commits (2) - [`3c2fd7b`](https://github.com/go-gitea/gitea/commit/3c2fd7b705f29eb19baae68dd3d7e0195d00b032) optimization for user.GetRepositoryAccesses to reduce db query times - [`6f9d90d`](https://github.com/go-gitea/gitea/commit/6f9d90df43960ce72d098edda8de625abfda4de0) fix missing cache ### 📊 Changes **1 file changed** (+27 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `models/access.go` (+27 -18) </details> ### 📄 Description Too many database queries on this method. This will reduce many of them. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:45:59 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15412