Skip to content

Commit

Permalink
add memo
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaddeusJiang committed Jul 22, 2024
1 parent d64d555 commit e6e6db4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Binary file added docs/file_faster_than_db.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions docs/ideas.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# ideas

- [ ] 为什么我不用 download url 作为文件名呢?

优点:可以避免重复下载,提高用户体验以及 storage

缺点:

1. 无法直接观看视频和图片,因为文件后缀不对。

1. 有一个解决方案:可以使用 filename.url 格式,url 即可。
2. Q: elixir 读区 file 并判断文件名是否存在,是否比 database select 快?

![ChatGPT answer: file existed faster than db](./file_faster_than_db.png)

- [ ] memo: filename 可以使用空格区分,#设计参考 macos history

0 comments on commit e6e6db4

Please sign in to comment.