Indexes for ADT branches? #2557
Replies: 3 comments 1 reply
-
|
You are right, Soufflé currently does not index ADT or record fields. Manually unpacking relations is the simplest way to go. adding @julienhenry |
Beta Was this translation helpful? Give feedback.
-
|
(Different account) For other readers: I ended up switching to
Update 2025-09-20: Also posted this comment with more detail about Ascent: s-arash/ascent#70 (comment) |
Beta Was this translation helpful? Give feedback.
-
|
Update: the Ascent authors clarify that it doesn't index ADTs either: s-arash/ascent#72 (comment). So the performance difference must be something else.
Regardless, the "manual indexing" workaround in the original post does produce significant speedups, so still worth keeping in mind for anyone else who runs into the same problem. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all, I was trying out Soufflé for some cross-domain graph reachability analysis. I was representing my nodes as e.g.
and populated a relation like
But it seems like this relation is not indexed in the same way as if I had manually unpacked/flattened the ADT fields and passed them in. I got a substantial speedup by manually unpacking the relation like this:
and then querying that relation instead when I wanted to know about
CiJobs.$CiJobas the first element, but 80s seems like a substantial enough difference to suggest that it's not indexing at all?Are ADTs branches indexed at present? Are there any other tricks to use here, so that I don't have to manually unpack each query I care about into its own "index" relation?
Beta Was this translation helpful? Give feedback.
All reactions