Redgate Summit – The Database DevOps Transformation Watch now
PASS Data Community Summit logo

PASS Data Community Summit

A hybrid conference in Seattle and online

15-18 November

Flyway Documentation

This documentation is deprecated. The new documentation can now be found on documentation.red-gate.com

Poll

Stream

Flyway Teams

Description

Whether to stream SQL migrations when executing them. Streaming doesn’t load the entire migration in memory at once. Instead each statement is loaded individually.

This is particularly useful for very large SQL migrations composed of multiple MB or even GB of reference data, as this dramatically reduces Flyway’s memory consumption.

Default

false

Usage

Commandline

./flyway -stream="true" info

Configuration File

flyway.stream=true

Environment Variable

FLYWAY_STREAM=true

API

Flyway.configure()
    .stream(true)
    .load()

Gradle

flyway {
    stream = true
}

Maven

<configuration>
    <stream>true</stream>
</configuration>