这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@rakeshkky
Copy link
Member

Description

The default compression level is max bound for Brotli and Gzip. This PR reduces the compression level to 4 for brotli and 1 for gzip. Refer to this article to learn more about compression speeds vs level.

Affected components

  • Server

Related Issues

N/A

Solution and Design

Use compression params for brotli and gzip compression.

Steps to test and verify

Add onegraph as a remote schema and check the introspection query time in console.

Limitations, known bugs & workarounds

@rakeshkky rakeshkky added the c/server Related to server label Sep 25, 2019
@rakeshkky rakeshkky self-assigned this Sep 25, 2019
@netlify
Copy link

netlify bot commented Sep 25, 2019

Deploy preview for hasura-docs ready!

Built with commit 891b875

https://deploy-preview-2938--hasura-docs.netlify.com

@rakeshkky rakeshkky force-pushed the brotli-comprssion-opt branch from 4a2fa5f to 2892ac2 Compare September 25, 2019 16:01
@hasura-bot
Copy link
Contributor

Review app for commit 2892ac2 deployed to Heroku: https://hge-ci-pull-2938.herokuapp.com
Docker image for server: hasura/graphql-engine:pull2938-2892ac22

Copy link
Contributor

@lexi-lambda lexi-lambda left a comment

Choose a reason for hiding this comment

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

This seems fine to me, aside from the minor style comment. This seems like something that could possibly benefit from being user-configurable, but given the tradeoffs in play, these values seem pretty generally-applicable, so I think it’s fine to keep them hardcoded for the moment and see if anyone asks for configurability.

@rakeshkky rakeshkky force-pushed the brotli-comprssion-opt branch from 2892ac2 to 891b875 Compare September 26, 2019 06:20
@hasura-bot
Copy link
Contributor

Review app for commit 891b875 deployed to Heroku: https://hge-ci-pull-2938.herokuapp.com
Docker image for server: hasura/graphql-engine:pull2938-891b875b

@rakeshkky
Copy link
Member Author

Closing this PR as its changes are going through #2967

@rakeshkky rakeshkky closed this Oct 1, 2019
@hasura-bot
Copy link
Contributor

Review app https://hge-ci-pull-2938.herokuapp.com is deleted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c/server Related to server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants