Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade version of postgres-array #9099

Merged
merged 1 commit into from
Apr 11, 2024
Merged

Conversation

jimrandomh
Copy link
Collaborator

@jimrandomh jimrandomh commented Apr 11, 2024

Postgres-array is a dependency of pg-types which is a depndency of pg. It's responsible for parsing jsonb fields in the results of queries we run in postgres. This version upgrade causes us to get the changes in bendrucker/postgres-array#16 , which makes that particular function ~2-3x faster. I observed that this function was ~2% of our server CPU time (on a benchmark where I was SSRing a post page with lots of comments in a loop), and after this upgrade I saw the time spent in it reduce accordingly.

The version is a major version only because they dropped compatibility with some old nodejs versions.

┆Issue is synchronized with this Asana task by Unito

Postgres-array is a dependency of pg-types which is a depndency of pg.
It's responsible for parsing jsonb fields in the results of queries we
run in postgres. This version upgrade causes us to get the changes in
bendrucker/postgres-array#16 , which makes that
particular function ~2-3x faster. I observed that this function was ~2%
of our server CPU time (on a benchmark where I was SSRing a post page
with lots of comments in a loop), and after this upgrade I saw the time
spent in it reduce accordingly.

The version is a major version only because they dropped compatibility
with some old nodejs versions.
@jimrandomh jimrandomh requested a review from a team as a code owner April 11, 2024 02:51
@jimrandomh jimrandomh requested review from oetherington and removed request for a team April 11, 2024 02:51
Copy link
Collaborator

@oetherington oetherington left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jimrandomh jimrandomh merged commit 240726b into master Apr 11, 2024
18 checks passed
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.

None yet

2 participants