-
Notifications
You must be signed in to change notification settings - Fork 6
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
Pipelining (MULTI/EXEC
) support
#8
Comments
Go ahead. Thank you for your contributions so far! |
One thing to note is that using RedisGraph's For example, executing the following pipeline:
The Lines 146 to 149 in 9b3f66b
This also applies to relationship types and property keys, naturally. |
let mut graph = Graph::open(conn, "test_graph".to_string()).unwrap();
let nodes: Vec<Node> = graph.pipe()
.atomic() // Maybe make this the default? It isn't the default in `redis-rs` however
.mutate("CREATE (:L1 {prop: 1})-[:R1 {prop: 2}]->(:L2 {prop: 3})-[:R2 {prop: 4}]->(:L3 {prop: 5})")
.query("MATCH (x) RETURN x")
.delete()
.exec()?; |
RedisGraph has supported
MULTI/EXEC
to execute queries and mutations atomically for a while. Theredis
crate supports it through theredis::pipe().atomic()
mode. It'd be nice to have implement pipelining on graphs in this crate.I'm up for implementing this once #7 lands.
The text was updated successfully, but these errors were encountered: