Skip to content

Files

Latest commit

d36727d · Oct 7, 2024

History

History
19 lines (18 loc) · 748 Bytes

samples-limit-datasource.md

File metadata and controls

19 lines (18 loc) · 748 Bytes

If you wish to set a limit on the samples that Soda implicitly collects for an entire data source, you can do so by adjusting the configuration YAML file, or editing the Data Source connection details in Soda Cloud, as per the following syntax. This configuration also applies to checks defined as no-code checks. {% include code-header.html %}

data_source soda_test:
  type: postgres
  host: xyz.xya.com
  port: 5432
  ...
  sampler:
    samples_limit: 50

Alternatively, you can set a samples limit for a datasource using the Soda Library by modifying the value of an attribute of the Scan class object: {% include code-header.html %}

from soda.scan import Scan
scan = Scan()
scan._configuration.samples_limit = 50