Execution
An FQL query is typically executed in 2 separate stages:
- Source acquisition
- Filtering and projection
1. Source acquisition
A data source is acquired with a using
clause, combined with the from
, take
and skip
clause.
But a Data source provider MAY analyse the whole syntax tree to optimize and reduce the size of the initial data set.
2. Filtering and projection
After the initial data has been acquired, the syntax tree is now considered a series of pipelined execution each on the data set that was produced by the previous clause.