updates to experimental.chain to address PR feedback

pull/1075/head
Scott Anderson 2020-05-29 14:32:40 -06:00
parent accaf074ba
commit 891296f688
1 changed files with 8 additions and 7 deletions

View File

@ -1,7 +1,8 @@
---
title: experimental.chain() function
description: >
The `experimental.chain()` function ...
The `experimental.chain()` function runs two queries in a single Flux script
sequentially and outputs the results of the second query.
menu:
v2_0_ref:
name: experimental.chain
@ -9,16 +10,16 @@ menu:
weight: 302
---
The `experimental.chain()` function forces two queries in a single Flux script
to run sequentially and outputs the results of the second query.
The Flux execution planner typically executes multiple queries in a single script in parallel.
The `experimental.chain()` function runs two queries in a single Flux script
sequentially and outputs the results of the second query.
Flux typically executes multiple queries in a single script in parallel.
Running the queries sequentially ensures any dependencies the second query has on
the results of the first query are met.
##### Applicable use cases:
- Writing to and bucket and querying the written data in a single Flux script or
##### Applicable use cases
- Writing to a bucket and querying the written data in a single Flux script or
[InfluxDB task](/v2.0/process-data/get-started/).
- Forcing the order of query execution in testing scenarios.
- Execute queries sequentially in testing scenarios.
_**Function type:** Miscellaneous_