server
server copied to clipboard
perf(shares): get all shares at once
Summary
Reduce the number of query by getting shares by group instead of checking if a share exists for each share type
Checklist
- Code is properly formatted
- Sign-off message is added to all commits
- [ ] Tests (unit, integration, api and/or acceptance) are included
- [ ] Screenshots before/after for front-end changes
- [ ] Documentation (manuals or wiki) has been updated or is not required
- [ ] Backports requested where applicable (ex: critical bugfixes)