Targeting contexts in larger list-based segments
Targeting contexts in larger list-based segments
Targeting contexts in larger list-based segments
Larger list-based segments are only available to customers on select plans. To learn more, read about our pricing. To upgrade your plan, contact Sales.
This topic explains how to target contexts within larger list-based segments.
Larger list-based segments are segments where the number of individual contexts targeted may be greater than 15,000. Larger list-based segments can include only one targeted context kind. These segments were previously called “big segments.”
If you are working with server-side SDKs, larger list-based segments require a persistent storage integration. You must configure this integration for each environment where you create larger list-based segments. To learn how, read SDK and integration configuration for segments.
Larger list-based segments do not support targeting rules. To learn how to target contexts by rule within a segment, read Rule-based segments.
Configure your SDK: Big segments
To add contexts to a larger list-based segment, create a comma-separated values (CSV) file containing the list of context keys you wish to include. The only data required for the CSV file is a list of context keys in the first column. You can add additional data in subsequent columns if you wish.
The CSV file has the following requirements:
Then, follow the segment creation instructions under Create larger list-based segments and add your CSV file in the “Upload CSV” dialog.
If you are on the details page of a segment that already contains contexts, you have the option to merge or overwrite the existing contexts with the contexts from the CSV file. If you are merging contexts, they must all be of the same context kind.
After you add context targets to a list-based segment using a CSV file, you can then add or remove individual contexts.
To add or remove individual contexts to or from a larger list-based segment:

To export the contexts from a list-based segment into a CSV file:

The export process runs in the background. When it completes, you receive an email notification containing a link to where you can download your CSV file.
LaunchDarkly does not support exporting segments with more than 10 million contexts.
You can also use the REST API: Create big segment export