fauna / fauna-js

Javascript driver for Fauna v10 (current)
https://fauna.com
Other
37 stars 7 forks source link

Add performance hints support #309

Closed fauna-chase closed 16 hours ago

fauna-chase commented 5 days ago

ENG-6989

Description

This allows the driver to be configured to query with performance hints enabled. When enabled, performance hints will be returned in the summary of the response.

Motivation and context

Without this change we won't be able to display performance hints in the dashboard or CLI. Performance hints are intended to be a self service way for users to debug query performance/cost and just overall find ways to improve their queries.

How was the change tested?

I added a test for the specified header. I also tested this version of the CLI with a locally running version of the dashboard to ensure I could get performance hints to show up.

Screenshots (if appropriate):

Change types

Checklist:


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.