CREATE INDEX IF NOT EXISTS idx_relationships_ns_relation
ON relationships(namespace, relation);
