zkcopy icon indicating copy to clipboard operation
zkcopy copied to clipboard

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

Open alexey-milovidov opened this issue 7 years ago • 2 comments

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

alexey-milovidov avatar Dec 28 '17 18:12 alexey-milovidov

Good point. What might be desired behavior?

kshchepanovskyi avatar Dec 29 '17 00:12 kshchepanovskyi

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.)

alexey-milovidov avatar Dec 30 '17 20:12 alexey-milovidov