In case you have your own slow SQL query, you can optimize it automatically here.
For the query above, the following recommendations will be helpful as part of the SQL tuning process.
You'll find 3 sections below:
CREATE INDEX node_edges_idx_source_target ON "node_type_edges" ("source","target");
CREATE INDEX nodes_idx_node_id ON "nodes" ("node_type_id");
SELECT
n.node_id,
n.payload
FROM
nodes n
JOIN
node_type_edges a
ON n.node_type_id = a.source
JOIN
node_type_edges b
ON a.target = b."source"
WHERE
a.source = 15
AND b.source = 12
AND b.target = 1