Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2892423
using_edges.diviner
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
929 B
Referenced Files
None
Subscribers
None
using_edges.diviner
View Options
@title
Using Edges
@group
developer
Guide to the Edges infrastructure.
= Overview =
Edges are a generic way of storing a relationship between two objects (like a
Task and its attached files).
An edge is defined by a source PHID (the edge origin), a destination PHID
(the edge destination) and an edge type (which describes the relationship,
like "is subscribed to" or "has attached file").
Every edge is directional, and stored alongside the source object. Some edges
are configured to automatically write an inverse edge, effectively building
a bidirectional relationship. The strength of storing relationships like this
is that they work when databases are partitioned or sharded.
= Reading Edges =
You can load edges with
@{class:PhabricatorEdgeQuery}
.
= Writing Edges =
You can edit edges with
@{class:PhabricatorEdgeEditor}
.
= Edges and Lisk =
@{class:PhabricatorLiskDAO}
includes some builtin support for edges.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 19, 16:48 (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1113437
Default Alt Text
using_edges.diviner (929 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment