Aller au contenu principal

Query Optimizer

Category: Agent

Optimize database queries (SQL, FHIR, Elasticsearch) using AI

What this node does

  • SQL optimization
  • FHIR query optimization
  • ES query optimization
  • Performance tips

How to use

  1. In the Agentic Studio, open or create a workflow
  2. In the node palette on the left, find Query Optimizer under the Agent category (or use the search bar)
  3. Drag the node onto the canvas
  4. Double-click the node to open its configuration dialog
  5. Fill in the required parameters (see Configuration below)
  6. Connect the Original Query and Query Type (SQL/FHIR/ES) input port from an upstream node
  7. Connect the Optimized Query and Optimization Suggestions output to the next node downstream

Inputs

PortTypeRequiredDescription
Original QuerytextPlain text string
Query Type (SQL/FHIR/ES)textPlain text string

Outputs

PortTypeDescription
Optimized QuerytextPlain text string
Optimization SuggestionsarrayA list of items

Configuration

Open the configuration dialog by double-clicking the Query Optimizer node on the canvas.

ParameterWhat to enter
queryTypeConfigure queryType in the node settings
includeExplanationConfigure includeExplanation in the node settings
llmConfigConfigure llmConfig in the node settings

When to use this node

  • Optimize slow queries
  • Improve FHIR searches
  • Database performance tuning

Need help configuring this node?

Go to Settings → Connectors to set up the connection this node depends on, then reference the connector ID in the node configuration dialog.