k-capehart / go-salesforce

Salesforce REST API client written in Go
https://pkg.go.dev/github.com/k-capehart/go-salesforce/v2
MIT License
30 stars 6 forks source link

[feature] Query Explain Plan #71

Closed TuSKan closed 5 days ago

TuSKan commented 1 week ago

A feature to return plans of a Query, without executing it.

Analyzes the performance of a specified SOQL query, report, or list view.

sf query explain

k-capehart commented 1 week ago

@TuSKan This is a cool idea to add. Can you talk a bit about the use cases to using this in a client app?

TuSKan commented 1 week ago

Thank you for being open to discuss this PR. My use case for this feature is to have a estimation of number of records and very costly queries before effectively request a query, to avoid or warning long time duration API calls.

k-capehart commented 5 days ago

Thanks for the explanation. Merging this into a feature branch now.