Skip to content

fix(rules): use jsonb containment for data equality filters#222

Open
IamKirbki wants to merge 1 commit intomainfrom
chore/using-gin-index
Open

fix(rules): use jsonb containment for data equality filters#222
IamKirbki wants to merge 1 commit intomainfrom
chore/using-gin-index

Conversation

@IamKirbki
Copy link
Copy Markdown
Contributor

Switch rule-generated JSON equality predicates from path extraction to @> with jsonb_build_object so PostgreSQL can use existing GIN indexes on data columns. Keep is set semantics and non-equality operators unchanged, and update query tests to match the new SQL output.

closes: #194

Switch rule-generated JSON equality predicates from path extraction to `@>` with `jsonb_build_object` so PostgreSQL can use existing GIN indexes on data columns. Keep `is set` semantics and non-equality operators unchanged, and update query tests to match the new SQL output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Optimize rules engine JSONB queries to utilize GIN indexes with @> operator

1 participant