[PR #2936] [MERGED] Remove unnecessary IssueList attribute loads #16670

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2936
Author: @ethantkoenig
Created: 11/19/2017
Status: Merged
Merged: 11/21/2017
Merged by: @lunny

Base: masterHead: perf/issues


📝 Commits (2)

  • d46ba01 Remove unnecessary IssueList attribute loads
  • 1721cfa Merge branch 'master' into perf/issues

📊 Changes

2 files changed (+16 additions, -9 deletions)

View changed files

📝 models/issue_indexer.go (+3 -0)
📝 models/issue_list.go (+13 -9)

📄 Description

IssueList.loadAttributes() loads attachments and comments, but these fields are rarely used for lists of issues. This PR updates IssueList.loadAttributes() to load everything except attachments and comments, and add separate methods for explicitly loading attachments/comments.


🔄 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/2936 **Author:** [@ethantkoenig](https://github.com/ethantkoenig) **Created:** 11/19/2017 **Status:** ✅ Merged **Merged:** 11/21/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `perf/issues` --- ### 📝 Commits (2) - [`d46ba01`](https://github.com/go-gitea/gitea/commit/d46ba01032c5753b33a325d6b5d89648eba5b847) Remove unnecessary IssueList attribute loads - [`1721cfa`](https://github.com/go-gitea/gitea/commit/1721cfa5a0932acb0276502a77f2e2ba88f6d15d) Merge branch 'master' into perf/issues ### 📊 Changes **2 files changed** (+16 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `models/issue_indexer.go` (+3 -0) 📝 `models/issue_list.go` (+13 -9) </details> ### 📄 Description `IssueList.loadAttributes()` loads attachments and comments, but these fields are rarely used for lists of issues. This PR updates `IssueList.loadAttributes()` to load everything except attachments and comments, and add separate methods for explicitly loading attachments/comments. --- <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 12:16:00 -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#16670