mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
feat: use bulk Spotify API calls & inserts to make spotify crawling more efficient (#271)
* feat(spotify-api): bulk endpoints
* feat(music-library): allow bulk operations
* feat(spotify): bulk track+album+artist+genre import
* feat(spotify): use bulk import api for user crawl
* feat(spotify): bulk listen insert
For the benchmark case of a new user where Listory imports 50 new listens along with all now tracks, artists, albums & genres we significantly reduced the number of things happening:
Spotify API Requests: 208 => 8
DB Insert: 96 => 8
Tracing Spans: 1953 => 66
This commit is contained in:
parent
24b7308343
commit
8721fd101d
9 changed files with 427 additions and 23 deletions
|
|
@ -108,7 +108,6 @@ export class AuthService {
|
|||
}
|
||||
|
||||
async createApiToken(user: User, description: string): Promise<ApiToken> {
|
||||
console.log("createApiToken");
|
||||
const apiToken = this.apiTokenRepository.create();
|
||||
|
||||
apiToken.user = user;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue