Skip to content

Commit

Permalink
fix: improve query to make use of index
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Oct 18, 2023
1 parent f20bc7c commit 21c87a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graphql/operations/proposals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default async function (parent, args) {
}

if (where.validation) {
searchSql += " AND JSON_OVERLAPS(JSON_EXTRACT(p.validation, '$.name') , JSON_ARRAY(?))";
searchSql += " AND JSON_EXTRACT(p.validation, '$.name') = ?";
params.push(where.validation);
}

Expand Down

0 comments on commit 21c87a9

Please sign in to comment.