Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .server-changes/org-list-member-count.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
area: webapp
type: improvement
---

Reduced database load when loading the dashboard by removing an unused organization member count that was being calculated on every page navigation.
Comment thread
ericallam marked this conversation as resolved.
6 changes: 0 additions & 6 deletions apps/webapp/app/presenters/OrganizationsPresenter.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,6 @@ export class OrganizationsPresenter {
},
orderBy: { name: "asc" },
},
_count: {
select: {
members: true,
},
},
},
});

Expand Down Expand Up @@ -191,7 +186,6 @@ export class OrganizationsPresenter {
updatedAt: project.updatedAt,
externalRef: project.externalRef,
})),
membersCount: org._count.members,
};
});
}
Expand Down
Loading