You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it doesnt use the primary key index, does anyone know how to resolve this issue? Thanks so much.
The generated sql is:
SELECT
coalesce((json_agg("root") -> 0), 'null') AS "root"
FROM
(
SELECT
row_to_json(
(
SELECT
"_e"
FROM
(
SELECT
"_root.base"."org_id" AS "org_id"
) AS "_e"
)
) AS "root"
FROM
(
SELECT
*
FROM
"public"."account"
WHERE
(
(
("public"."account"."type") = (('CREDIT') :: "account_accounttype_enum")
)
AND (
("public"."account"."org_id") = (('92bc2bb1-4f2f-445d-902c-6dd5a9b6952f') :: uuid)
)
)
) AS "_root.base"
) AS "_root"
with the following execution plan:
Aggregate (cost=4.04..4.04 rows=1 width=32)
-> Index Scan using ix_account_type on account (cost=0.03..4.03 rows=1 width=16)
Index Cond: (type = 'CREDIT'::account_accounttype_enum)
Filter: (org_id = '92bc2bb1-4f2f-445d-902c-6dd5a9b6952f'::uuid)
SubPlan 1
-> Result (cost=0.00..0.00 rows=1 width=32)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
have a table with the composite key of <type, org_id>; when i query the table using hasura using the following:
or
it doesnt use the primary key index, does anyone know how to resolve this issue? Thanks so much.
The generated sql is:
with the following execution plan:
Beta Was this translation helpful? Give feedback.
All reactions