Skip to content

Commit

Permalink
Disable content compression for PMC queries (#110)
Browse files Browse the repository at this point in the history
Documents in the PMC corpus are quite large and while profiling we
noticed that content decompression takes a significant amount of time on
the client side thus introducing the risk of accidental bottlenecks.

Relates elastic/rally#952
  • Loading branch information
danielmitterdorfer committed Apr 8, 2020
1 parent ae85588 commit e95892e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pmc/operations/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
{
"name": "default",
"operation-type": "search",
"#COMMENT": "Large responses cause overhead on the client when decompressing the response. Disable to avoid the overhead",
"response-compression-enabled": false,
"body": {
"query": {
"match_all": {}
Expand All @@ -26,6 +28,8 @@
{
"name": "term",
"operation-type": "search",
"#COMMENT": "Large responses cause overhead on the client when decompressing the response. Disable to avoid the overhead",
"response-compression-enabled": false,
"body": {
"query": {
"term": {
Expand All @@ -37,6 +41,8 @@
{
"name": "phrase",
"operation-type": "search",
"#COMMENT": "Large responses cause overhead on the client when decompressing the response. Disable to avoid the overhead",
"response-compression-enabled": false,
"body": {
"query": {
"match_phrase": {
Expand All @@ -48,6 +54,8 @@
{
"name": "articles_monthly_agg_uncached",
"operation-type": "search",
"#COMMENT": "Large responses cause overhead on the client when decompressing the response. Disable to avoid the overhead",
"response-compression-enabled": false,
"body": {
"size": 0,
"aggs": {
Expand All @@ -64,6 +72,8 @@
"name": "articles_monthly_agg_cached",
"operation-type": "search",
"cache": true,
"#COMMENT": "Large responses cause overhead on the client when decompressing the response. Disable to avoid the overhead",
"response-compression-enabled": false,
"body": {
"size": 0,
"aggs": {
Expand Down

0 comments on commit e95892e

Please sign in to comment.