Commit graph

15 commits

Author SHA1 Message Date
dd57a52ab6
feat: optimize db queries (#297) 2023-09-17 00:31:39 +02:00
38cf2ff549
chore(deps): bump all (#294) 2023-09-16 13:02:19 +02:00
8f7eebb806 feat(api): API tokens for authentication
Create and managed simple API tokens for access to the API from external
tools.
2023-02-19 16:19:40 +01:00
renovate[bot]
ef84800ce8 chore(deps): update typeorm 2022-06-25 16:26:58 +02:00
ee5bd41a37 feat(api): configurable max pool connections
This should help with failing health checks while the crawler is running.

Quick math: 10 users, 30 songs each, each song requires at least 3
queries => 900 db queries every minute.

With the default of 10 pool connections, this blocks all available db
bandwidth for some time and causes slow UI and failing healthchecks.
2022-06-11 19:21:00 +02:00
a0ffe108e1 feat(api): update existing artists in MusicLibrary 2021-11-21 15:53:49 +01:00
a0c28e2324 feat: top genres report 2021-11-21 15:53:49 +01:00
3c6f3289f1 feat(server): save genres for artists and albums
This can later be used for reports
2021-05-25 19:23:42 +02:00
f56548e432 chore: run prettier format 2021-05-25 16:02:00 +02:00
fcc2f7d1b6 fix(api): db error on duplicate music library import
When the spotify crawler loop would import an artist multiple
times in parallel the first would succeed but the following queries
would throw with following exception:

    QueryFailedError: duplicate key value violates unique constraint "IDX_ARTIST_SPOTIFY_ID"

This error also could happen for the album or track.
2020-11-21 17:00:33 +01:00
44f7e26270 feat: implement long-lived sessions 2020-11-09 18:34:23 +01:00
a7c5c68540 feat(api): setup database migrations 2020-05-03 21:10:31 +02:00
d881a78757 chore(api): update dependencies 2020-05-03 21:10:31 +02:00
f253a66f86 feat(api): user authentication 2020-05-03 21:10:31 +02:00
db62d5d908 feat(api): setup nestjs 2020-05-03 21:00:20 +02:00