Skip to content

Improve performance by using hstore to compute row_changed_fields#1

Open
DavidBoone wants to merge 1 commit intomichelmilezzi:masterfrom
DavidBoone:jsonb-fix-perf
Open

Improve performance by using hstore to compute row_changed_fields#1
DavidBoone wants to merge 1 commit intomichelmilezzi:masterfrom
DavidBoone:jsonb-fix-perf

Conversation

@DavidBoone
Copy link
Copy Markdown

I noticed the performance hit when hstore was swapped out for jsonb. I tracked it down to the query which calculated changed_fields, and found that be reverting to using the hstore - operator I was able to recover most of that performance. It's still slower than hstore, but the gap is significantly shrunk.

No audit trigger: 9.7s
hstore original: 16.5s
jsonb original: 25.4s
jsonb This PR: 18.1s

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.

1 participant