-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Maintain relationships between database blocks and database storage #9496
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
Comments
不考虑深克隆了:#9285 (comment) 考虑改为使用单独的 JSON 文件维护数据库块(Node)和数据库存储(JSON)之间的关联,在数据库块增加、复制和删除时变更关联关系。 |
没太理解,什么意思? |
就是单独用个结构(不一定是 JSON)来维护 av-blocks 的关联关系,这样后面就可以方便通过 av id 查找到 av blocks 了。也能在渲染 av block 的时候判断是不是“镜像块”(通过 av-blocks[avID] 是否存在多个 blocks,如果存在说明有多个 av blocks 引用到了同一个 av)。 |
88250
added a commit
that referenced
this issue
Nov 2, 2023
appdev
pushed a commit
to appdev/siyuan-unlock
that referenced
this issue
Nov 13, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#9285 (comment)
The text was updated successfully, but these errors were encountered: