When working in Trifacta, you are designing the recipe based on a sample of the full dataset. By default, samples displayed in the Trifacta application can be up to 10 MB in size. In some cases, it would be beneficial to increase or decrease the maximum size of samples to improve the performance of Trifacta in the browser or to include more data in the browser.

The sample size reflects the maximum permitted size of a sample that is delivered to the browser. If the available data is less than the maximum permitted size, then the actual sample size may be smaller.

  • When this setting is reduced, the sample currently loaded in the browser is immediately reduced to the new maximum size. Other available samples for the recipe are resized when they are reloaded.

  • If you raise the maximum sample size, the volume of the currently loaded sample can be expanded to the maximum size, if the data is available in the sample.


The capability to edit the Sample size in the transformer allows you to change the sample size that is returned to the browser, which can help speed up calculations and reduce the computational load on your machine. When this setting is changed, the sample currently loaded in the browser is immediately changed to the new maximum size. Other available samples for the recipe are resized when they are reloaded.

Sample size settings are saved per recipe. You can set different sample sizes for each recipe. Collaborators on the recipe will use the same setting.

  • When this setting is reduced, the sample currently loaded in the browser is immediately reduced to the new maximum size. Other available samples for the recipe are resized when they are reloaded.

  • From v8.11 onwards, you can also increase the sample size up to 40 MB

  • For more information, see Configure Application Limits.

Note: The Trifacta application provides a recommendation for the new sample size.

Steps

  1. On the Transformer page, click the name of the sample in the top menu.

The Sample Details dialog is displayed.

2. In the Sample Details dialog, click Edit.

3. Use the slider bar to change the maximum size of samples delivered to the browser for this recipe:

  • The Trifacta application provides a recommendation for the new sample size. You should set your sample size to this value or a smaller value.

  • The range of the slider indicates the maximum available data for the sample. For example, if the sample is 7 MB then the slider shows a maximum of 7 MB.

  • Note that a warning message is displayed if the sample size exceeds the recommended size. Also, an alert is displayed if the recipe reaches 100% of the memory limit.

4. To apply your changes, click Save.

The current sample is immediately updated to reflect the new maximum sample size. The sizes of all subsequent samples that are delivered to the browser for this recipe are capped at this new maximum size.

Samples are still generated at the preset size in backend storage.

More Info

For more information on the Sample Details dialog, see Sample Indicator.

Also, check out-

Did this answer your question?