[GH-ISSUE #1508] Improving Postgres Database Performances #867

Closed
opened 2026-02-26 02:34:28 +03:00 by kerem · 2 comments
Owner

Originally created by @dhenry123 on GitHub (Sep 19, 2022).
Original GitHub issue: https://github.com/koel/koel/issues/1508

i built one posgresql database with more than 14000/1000 (songs/albums) and i got latency on scrolling albums

I added this index :

CREATE INDEX songs_album_id_index ON public.songs USING btree (album_id);

API : /api/albums?page=7

Time loading between each page (arm64 platform/raspberry-pi4/kubernetes) :

No index with new index
4 seconds 700 milliseconds

+++

Originally created by @dhenry123 on GitHub (Sep 19, 2022). Original GitHub issue: https://github.com/koel/koel/issues/1508 i built one posgresql database with more than 14000/1000 (songs/albums) and i got latency on scrolling albums I added this index : ``` CREATE INDEX songs_album_id_index ON public.songs USING btree (album_id); ``` API : /api/albums?page=7 Time loading between each page (arm64 platform/raspberry-pi4/kubernetes) : | No index | with new index | | ------- | -------- | | 4 seconds | 700 milliseconds | +++
kerem closed this issue 2026-02-26 02:34:28 +03:00
Author
Owner

@phanan commented on GitHub (Sep 21, 2022):

Do you think you can send a PR?

<!-- gh-comment-id:1253373365 --> @phanan commented on GitHub (Sep 21, 2022): Do you think you can send a PR?
Author
Owner

@phanan commented on GitHub (Oct 26, 2022):

Closed by #1547.

<!-- gh-comment-id:1292561664 --> @phanan commented on GitHub (Oct 26, 2022): Closed by #1547.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#867
No description provided.