Skip to content

Optimize boolean filter SQL generation for non-nullable bool fields#9151

Open
michaelstaib wants to merge 3 commits intomainfrom
mst/filter-optimization-1
Open

Optimize boolean filter SQL generation for non-nullable bool fields#9151
michaelstaib wants to merge 3 commits intomainfrom
mst/filter-optimization-1

Conversation

@michaelstaib
Copy link
Member

@michaelstaib michaelstaib commented Feb 19, 2026

Fixes #9124

@github-actions
Copy link
Contributor

github-actions bot commented Feb 19, 2026

Fusion Gateway Performance Results

Simple Composite Query

Req/s Err%
Constant (50 VUs) 2998.97 0.00%
Ramping (0-500-0 VUs) 3282.83 0.00%
Response Times & Query
Min Med Avg P90 P95 Max
Constant 0.78ms 14.44ms 16.45ms 30.86ms 36.13ms 172.49ms
Ramping 0.70ms 66.23ms 67.86ms 126.33ms 142.59ms 249.18ms
query TestQuery {
  topProducts(first: 5) {
    inStock
    name
    price
    shippingEstimate
    upc
    weight
    reviews {
      id
      body
      author {
        id
        username
        name
      }
    }
  }
}

Deep Recursion Query

Req/s Err%
Constant (50 VUs) 745.78 0.00%
Ramping (0-500-0 VUs) 826.13 0.00%
Response Times & Query
Min Med Avg P90 P95 Max
Constant 9.02ms 62.47ms 65.51ms 81.32ms 89.84ms 337.65ms
Ramping 1.86ms 252.52ms 261.10ms 514.07ms 557.92ms 705.23ms
query TestQuery {
  users {
    id
    username
    name
    reviews {
      id
      body
      product {
        inStock
        name
        price
        shippingEstimate
        upc
        weight
        reviews {
          id
          body
          author {
            id
            username
            name
            reviews {
              id
              body
              product {
                inStock
                name
                price
                shippingEstimate
                upc
                weight
              }
            }
          }
        }
      }
    }
  }
  topProducts(first: 5) {
    inStock
    name
    price
    shippingEstimate
    upc
    weight
    reviews {
      id
      body
      author {
        id
        username
        name
        reviews {
          id
          body
          product {
            inStock
            name
            price
            shippingEstimate
            upc
            weight
          }
        }
      }
    }
  }
}

Variable Batching Throughput

Req/s Err%
Constant (50 VUs) 23556.39 0.00%
Ramping (0-500-0 VUs) 18522.03 0.00%
Response Times & Query
Min Med Avg P90 P95 Max
Constant 0.10ms 1.71ms 2.07ms 3.95ms 4.84ms 48.92ms
Ramping 0.10ms 9.36ms 11.38ms 23.52ms 28.26ms 104.16ms
query TestQuery($upc: ID!, $price: Long!, $weight: Long!) {
  productByUpc(upc: $upc) {
    inStock
    shippingEstimate(weight: $weight, price: $price)
  }
}

Variables (5 sets batched per request)

[
  { "upc": "1", "price": 899, "weight": 100 },
  { "upc": "2", "price": 1299, "weight": 1000 },
  { "upc": "3", "price": 15, "weight": 20 },
  { "upc": "4", "price": 499, "weight": 100 },
  { "upc": "5", "price": 1299, "weight": 1000 }
]

Run 22191716617 • Commit add8d8a • Thu, 19 Feb 2026 17:52:12 GMT

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Avoid CASE statement for a boolean filter with Entity Framework

1 participant

Comments