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

这里直接从数据库中得到一个ID再插入数据,会不会存在上一个插入事务未提交,下一次获取到的与上一次的ID相同的问题呀? #1

Open
betaincao opened this issue May 10, 2021 · 3 comments

Comments

@betaincao
Copy link

@ning1875
Copy link
Owner

恩,有可能,这里可以全部搞成事务的

@betaincao
Copy link
Author

这里对path的定义只存储到上一级节点ID,当前节点的id不存储可以吗?这样会有什么问题吗?

@ning1875
Copy link
Owner

这里对path的定义只存储到上一级节点ID,当前节点的id不存储可以吗?这样会有什么问题吗?

带上自己节点的id主要是为了下层节点使用父级目录时方便。不带也可以,到时候在查一下父级的id再拼接上也行吧

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

No branches or pull requests

2 participants