Skip to content

collect

Collecting lazy queries with the engine chosen in the settings.

Every query of a profile is collected through :func:collect and :func:collect_all, which use the Polars engine of engine.collect_engine ("auto", "in-memory", "streaming" or "gpu"). :func:describe sets it for the duration of a profile with :func:use_engine.

Functions:

use_engine(engine)

Collect with engine inside the block.

collect(lf)

Collect one query.

collect_all(lfs)

Collect several queries together, sharing common sub-plans.