#/api/asset/time-bucket reqest takes too long
1 messages · Page 1 of 1 (latest)
:wave: Hey @tranquil acorn,
Thanks for reaching out to us. Please follow the recommended actions below; this will help us be more effective in our support effort and leave more time for building Immich :immich:.
References
- Container Logs:
docker compose logsdocs - Container Status:
docker compose psdocs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy
Checklist
- :ballot_box_with_check: I have verified I'm on the latest release(note that mobile app releases may take some time).
- :ballot_box_with_check: I have read applicable release notes.
- :blue_square: I have reviewed the FAQs for known issues.
- :blue_square: I have reviewed Github for known issues.
- :blue_square: I have tried accessing Immich via local ip (without a custom reverse proxy).
- :blue_square: I have uploaded the relevant logs, docker compose, and .env files using the buttons below or the
/uploadcommand. - :blue_square: I have tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable
(an item can be marked as "complete" by reacting with the appropriate number)
If this ticket can be closed you can use the /close command, and re-open it later if needed.
I've found that it's a problem with the SQL query of function getTimeBucket, it takes more than 4s to return results.
query explain shows...
checked another little bigger album where the loading is instant...
seems like some stacked assets issue, however there are no stacked assets in any album
could @primal cradle check it? thanks
@mystic ferry Is this another one of those reverse index cases?
with timings...
Looks like it
Maybe #7918 solved it
[Pull Request] perf(server): optimize getByIds query (#7918)
Are you down to try running the main branch @tranquil acorn ?
Alex is too slow to release new versions /s
I can try
yes, it solves it, now it's instant, thanks! looking forward for a new release