How do I know when an edge has been successfully created?
General Question
Reproduction steps:
- sending a request
CREATE EDGE IF NOT EXISTS `MyEdge` (`id` string NOT NULL); - I receive a successful response
- sending a request
DESC EDGE `MyEdge`; - I receive a successful response
But when I try to add an edge of a given type (INSERT EDGE `MyEdge` (id) VALUES "1";), I get an error that the edge MyEdge does not exist.
I need to wait 5-10 seconds for the request to add an edge to process successfully.
Could you tell me please what request to send to make sure that the edge has actually been created and that we can already add data for this edge?
Good question. Currently, data synchronization is asynchronous, and you need to wait for two heartbeats (with the default heartbeat being 10 seconds) before you can insert data.
@MuYiYong , do you have any good suggestions for handling this issue?
After consulting with the product team, in the current version, there isn't an effective way to handle schema awareness, and data can only be inserted after waiting for two heartbeat intervals. However, in the new version scheduled for release at the end of this year, this issue has been properly addressed.
However, in the new version scheduled for release at the end of this year, this issue has been properly addressed.
This is great news! Thank you!
Could you tell me please in which version of Nebula this error was fixed? In 3.8.0?