[PR #940] [MERGED] refactor: small optimize for sql query #15665

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/940
Author: @appleboy
Created: 2/15/2017
Status: Merged
Merged: 2/15/2017
Merged by: @lunny

Base: masterHead: sql3


📝 Commits (2)

  • a8edb4b refactor: small optimize for sql query
  • aa9fac1 fix: get owner name if Searcher is not nil or user star page.

📊 Changes

3 files changed (+30 additions, -32 deletions)

View changed files

📝 models/repo.go (+24 -16)
📝 models/star.go (+3 -5)
📝 routers/home.go (+3 -11)

📄 Description

  • Remove unused function RepositoriesWithUsers.
  • SQL improvement for repo.GetOwner loop condition.

cc @lunny


🔄 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/940 **Author:** [@appleboy](https://github.com/appleboy) **Created:** 2/15/2017 **Status:** ✅ Merged **Merged:** 2/15/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `sql3` --- ### 📝 Commits (2) - [`a8edb4b`](https://github.com/go-gitea/gitea/commit/a8edb4b1cddb815c33dfd769b2c7fdb8a179aec8) refactor: small optimize for sql query - [`aa9fac1`](https://github.com/go-gitea/gitea/commit/aa9fac15fc3d44e5aa221e8681e364f5ac1658b1) fix: get owner name if Searcher is not nil or user star page. ### 📊 Changes **3 files changed** (+30 additions, -32 deletions) <details> <summary>View changed files</summary> 📝 `models/repo.go` (+24 -16) 📝 `models/star.go` (+3 -5) 📝 `routers/home.go` (+3 -11) </details> ### 📄 Description * Remove unused function `RepositoriesWithUsers`. * SQL improvement for `repo.GetOwner` loop condition. cc @lunny --- <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:51:51 -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#15665