Each relationship field (e.g. rel_decisions on a Task) stores a plain array of related post IDs as a single post meta value. A record's full relationship graph is computed on read by combining its own forward links with reverse links discovered on other posts – so linking from either side makes the connection visible from both, without a database migration or custom table.
Store relationships as post ID arrays with forward + reverse lookup, not a junction table
Written by
in