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

hack to append data to a JSON array without doing a read/modify/write #15

Merged
merged 4 commits into from
Jan 20, 2016

Conversation

jgautier
Copy link
Contributor

@sentientwaffle @anandsuresh @ezray I know this is a gigantic hack but it prevents us from doing a read before modifying the data. This should get rid of about 2 million selects an hour for us hopefully speeding things up. What do you guys think?

@sentientwaffle
Copy link
Contributor

I don't have a pg setup handy to test, but if its works for you then it LGTM.

@jgautier
Copy link
Contributor Author

We have been running this for a while in prod so I will merge it now with the other browserify change.

jgautier added a commit that referenced this pull request Jan 20, 2016
hack to append data to a JSON array without doing a read/modify/write
@jgautier jgautier merged commit 5734c1c into master Jan 20, 2016
@anandsuresh anandsuresh deleted the jg-update-hack branch December 30, 2017 19:19
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.

2 participants