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

It must be clearly stated that this tool cannot copy sequential nodes with maintaining correct sequence number. #15

Open
alexey-milovidov opened this issue Dec 28, 2017 · 2 comments

Comments

@alexey-milovidov
Copy link

So, the next created sequential node won't get correct number.

@kshchepanovskyi
Copy link
Collaborator

Good point. What might be desired behavior?

@alexey-milovidov
Copy link
Author

It's rather difficult to copy sequential nodes correctly.

One possible solution is to create and delete "fake" sequential nodes in multi transaction, while sequence number will become desired minus one; then create the final node.

This solution works, but it's rather tricky. For example, if sequence number was one million, you need to create and delete node 999 999 times. To speed up the process, you can do multiple create/delete in one transaction, for example, 100 operations in a batch. (Transaction can be arbitary large unless packet size is greater than 1 MB; and it's difficult to predict packet size.)

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