Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
11-04-2021 11:45 AM
Hi,
We are evaluating fabric but before testing I wanted to find out if there are any limitations on cypher queries (including GDS)
I understand this is possible:
Query db#1 and use output as input for a query to db#2
And also this;
Query db#1 and combine output with output from a query to db#2 (using UNION)
But is this possible?
Construct a query which includes labels/properties from both db#1 and db#2
e.g.
WITH ["db#1", "db#2"] AS dbs
UNWIND fabric.graphIds() AS graphId
CALL {
USE fabric.graph(graphId)
OPTIONAL MATCH (db1:Label {db1prop: ""})-[COMMON_REL]-(db2:Label { db2prop: ""})
.....
If this could work I assume it would depend on having the node and relationship labels identical in both.
I read this but am still not clear
11-14-2021 10:33 AM
Yes if both have the same labels and rel-types you can send the same query to all shards.
But you currently cannot have relationships that span shards, so you need to have proxy nodes of that other shard that carry at least the id, to continue matching from.
All the sessions of the conference are now available online