Added future perf oprimization note

refs 1bc2a604c3 (r1239780571)
This commit is contained in:
Naz 2023-06-26 12:10:35 +07:00 committed by naz
parent cf48d4ef5c
commit bb13845773

View File

@ -212,6 +212,7 @@ export class CollectionsService {
}
private async removePostFromAllCollections(postId: string) {
// @NOTE: can be optimized by having a "getByPostId" method on the collections repository
const collections = await this.collectionsRepository.getAll();
for (const collection of collections) {