Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions server/src/instant/db/model/triple.clj
Original file line number Diff line number Diff line change
Expand Up @@ -692,8 +692,7 @@
id_etypes AS (
SELECT
cast(elem ->> 0 AS uuid) AS entity_id,
cast(elem ->> 1 AS text) AS etype,
TO_JSONB(cast(elem ->> 0 AS uuid)) AS entity_id_jsonb
cast(elem ->> 1 AS text) AS etype
FROM
jsonb_array_elements(cast(?id+etypes AS jsonb)) AS elem
),
Expand All @@ -714,7 +713,7 @@
triples.ctid
FROM
triples
JOIN id_etypes ON triples.value = entity_id_jsonb
JOIN id_etypes ON json_uuid_to_uuid(triples.value) = id_etypes.entity_id
JOIN attrs ON triples.attr_id = attrs.id
WHERE
triples.vae
Expand Down
Loading