fix: improve top-artists response time

By calculating the necessary counts in the database, we avoid
unncessary joins and data transmissions.
This commit is contained in:
Julian Tölle 2020-07-11 19:35:31 +02:00
parent 2ea7366a58
commit aecc82576a
4 changed files with 44 additions and 39 deletions

View file

@ -1,7 +1,7 @@
import { Module } from "@nestjs/common";
import { ReportsService } from "./reports.service";
import { ReportsController } from "./reports.controller";
import { ListensModule } from "src/listens/listens.module";
import { ReportsController } from "./reports.controller";
import { ReportsService } from "./reports.service";
@Module({
imports: [ListensModule],