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

Maintain relationships between database blocks and database storage #9496

Closed
88250 opened this issue Oct 24, 2023 · 3 comments
Closed

Maintain relationships between database blocks and database storage #9496

88250 opened this issue Oct 24, 2023 · 3 comments
Assignees
Milestone

Comments

@88250
Copy link
Member

88250 commented Oct 24, 2023

#9285 (comment)

@88250 88250 added this to the backlog milestone Oct 24, 2023
@88250 88250 changed the title Shallow clone corresponding databases when copying database blocks Deep clone corresponding databases when copying database blocks Oct 29, 2023
@88250 88250 removed the Development label Nov 1, 2023
@88250 88250 removed this from the backlog milestone Nov 1, 2023
@88250
Copy link
Member Author

88250 commented Nov 1, 2023

不考虑深克隆了:#9285 (comment)

考虑改为使用单独的 JSON 文件维护数据库块(Node)和数据库存储(JSON)之间的关联,在数据库块增加、复制和删除时变更关联关系。

@88250 88250 changed the title Deep clone corresponding databases when copying database blocks Maintain relationships between database blocks and database storage Nov 1, 2023
@88250 88250 added this to the 2.10.14 milestone Nov 1, 2023
@zxhd863943427
Copy link
Contributor

不考虑深克隆了:#9285 (comment)

考虑改为使用单独的 JSON 文件维护数据库块(Node)和数据库存储(JSON)之间的关联,在数据库块增加、复制和删除时变更关联关系。

没太理解,什么意思?

@88250
Copy link
Member Author

88250 commented Nov 1, 2023

就是单独用个结构(不一定是 JSON)来维护 av-blocks 的关联关系,这样后面就可以方便通过 av id 查找到 av blocks 了。也能在渲染 av block 的时候判断是不是“镜像块”(通过 av-blocks[avID] 是否存在多个 blocks,如果存在说明有多个 av blocks 引用到了同一个 av)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants