alist icon indicating copy to clipboard operation
alist copied to clipboard

希望能将cloudreve显示文件夹大小和缩略图功能分开

Open Ayazk726 opened this issue 1 year ago • 4 comments

Please make sure of the following things

  • [X] I have read the documentation.
  • [X] I'm sure there are no duplicate issues or discussions.
  • [X] I'm sure this feature is not implemented.
  • [X] I'm sure it's a reasonable and popular requirement.

Description of the feature / 需求描述

  • 当cloudreve文件数量很多或者大小很大时,计算文件夹大小会消耗大量的时间(有时甚至会504)的同时会让部署了cloudreve的服务器负载很高,希望分开功能只显示缩略图或者只显示文件夹大小

Suggested solution / 实现思路

  1. 我建议只在网格视图打开时才通过api请求缩略图url从而先显示出内容,谁都不想点进去一直转圈圈。
  2. 目前的alist在获取完文件夹大小和缩略图url后,由于自动同步刷新的缘故会清空缓存导致重新发送请求获取,这会导致alist还未获取完url后就自动刷新,实际做了无用功。而cloudreve的api提供的缩略图url貌似是永久的可以考虑创建一个thumb_url字段写入数据库中永久保存,通过对比/api/v3/directory获得的文件id和thumb_url最后的文件id的一致性判断文件是否有被修改,加快缩略图的显示速度。
  3. 获取文件夹大小功能建议删掉感觉没用。

Additional context / 附件

No response

Ayazk726 avatar Jul 08 '24 12:07 Ayazk726

Thanks for opening your first issue here! Be sure to follow the issue template!

welcome[bot] avatar Jul 08 '24 12:07 welcome[bot]

?这个不是cloudreve的问题吗

Simonzhang8 avatar Jul 09 '24 00:07 Simonzhang8

?这个不是cloudreve的问题吗 Jul 9, 2024

  1. 计算文件夹大小在文件夹内容很多时cr的反应确实很慢,我说实话这功能没什么用还特别影响响应速度可以删了。
  2. 我非常不理解alist获取cr文件缩略图的逻辑,假如文件夹内有1w张图片alist必须列取完所有的缩略图url后才会显示而不是获取到url后立即显示,这会消耗大量的时间,这是cr那边的问题导致的吗?

Ayazk726 avatar Jul 09 '24 02:07 Ayazk726

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 22 '24 09:08 stale[bot]

Hello @, this issue was closed due to inactive more than 52 days. You can reopen or recreate it if you think it should continue. Thank you for your contributions again.

github-actions[bot] avatar Sep 01 '24 00:09 github-actions[bot]