Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memos.api.v1.MemoService/ListMemos is very slow #3969

Closed
DLHTX opened this issue Sep 30, 2024 · 7 comments
Closed

memos.api.v1.MemoService/ListMemos is very slow #3969

DLHTX opened this issue Sep 30, 2024 · 7 comments
Labels

Comments

@DLHTX
Copy link

DLHTX commented Sep 30, 2024

Describe the bug

I updated to the v0.22.6, but the memos list very slow,when i refresh home page, it takes amlost two minutes

Steps to reproduce

1.Go to home page
2.refresh

The version of Memos you're using.

0.22.6

Screenshots or additional context

image

@DLHTX DLHTX added the bug Something isn't working label Sep 30, 2024
@DLHTX
Copy link
Author

DLHTX commented Sep 30, 2024

This api memos.api.v1.ResourceService/ListResources is also very slow does it load the entire db file?
image

@DLHTX
Copy link
Author

DLHTX commented Sep 30, 2024

image

@Issues-translate-bot
Copy link

Issue is not in English. It has been translated automatically.


image

@RoccoSmit
Copy link
Contributor

What version did you upgrade from? v0.22.5 introduced caching functionality that would require thumbnails to be generated on first load. This could be the cause for a slow first load

@DLHTX
Copy link
Author

DLHTX commented Sep 30, 2024

What version did you upgrade from? v0.22.5 introduced caching functionality that would require thumbnails to be generated on first load. This could be the cause for a slow first load

Hi, I just 100% reproduced this problem, I deleted memos_prod.db and restarted docker, and made a new copy of this memos_prod.db. it loads fast when I first go to the page, but when I go to other page, it seems to make a request for ListResources and then all the loading of the page gets stuck. I think it might be the caching mechanism you're talking about.

@RoccoSmit
Copy link
Contributor

The request that might be sow on first load due to caching would be the /file/resources/{id}/{imageName} image requests.

Are you finding the site is slow with an fresh db? So no memos or images to display?

@RoccoSmit
Copy link
Contributor

RoccoSmit commented Sep 30, 2024

The only other example I can think of where "the page gets stuck" is this issue #3922. Does your experience align with this?

@johnnyjoygh johnnyjoygh added PR welcome Good for new contributor need more context and removed bug Something isn't working labels Oct 12, 2024
@boojack boojack closed this as not planned Won't fix, can't repro, duplicate, stale Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants