# Source Datastore Best Practices

Source: https://userguide.qualytics.io/source-datastore/datastore/deep-dive/best-practices/

These recommendations help you keep source datastores easy to manage, safe, and light on the systems they read from.

## Scope Each Datastore to One Schema or Folder

A datastore covers one schema of a database, or one folder path of a bucket. Create one datastore for each schema or folder you want to monitor instead of reaching for a wide scope, so containers, checks, and anomalies stay grouped the way your teams own the data. To add several schemas at once, use [multi-schema creation](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/multiple-schema/).

## Reuse Connections for the Same System

When several datastores read from the same database or bucket, create the connection once and add the others with **Existing Connection**. The credentials then live in one place, and a password change is a single edit on the **Manage Connections** page. Remember that editing a shared connection affects every datastore that uses it. See [Connection](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/connection/#reusing-a-connection).

## Grant Only the Access Each Connection Needs

A source connection needs only read access to the data it scans. Give write access only to the connection behind an enrichment datastore, and keep that datastore on a dedicated schema or storage path, separate from the data you govern. Each connector's **Permissions** page lists the exact grants.

## Keep Credentials in a Secrets Manager

If your organization manages credentials outside Qualytics, turn on **Secrets Management** and reference each secret with `${key}` instead of typing it into the form. A changed secret takes effect on the next connection, with nothing to edit in Qualytics. See [HashiCorp Vault](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/hashicorp-vault/).

## Allow Only the Addresses You Need

Copy the addresses from the information banner on the **Add Datastore** page and allow only the group that matches how your deployment reaches the source: the public addresses for a source on the internet, the private ones for a source in the same private network. See [Finding the addresses to allow](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/connection/#finding-the-addresses-to-allow).

## Name Datastores So Environments Stand Apart

Use a **Name Template** that says where the data comes from, such as `prod_{{schema}}` or `staging_{{schema}}`, so datastores from different environments are easy to tell apart in lists, filters, and notifications.

## Start with Sync, Then Profile and Scan

Select **Initiate Sync** when you create a datastore so it discovers its containers and fields right away. Profile once Sync finishes, and Scan after that. The **Get started in three steps** strip on a new datastore's overview page walks you through that order. See [How It Works](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/how-it-works/#datastore-lifecycle).

## Hold Back Parallel Queries on Shared Databases

For a database that also serves applications, set **Max Parallelization** on its connection so scans do not slow down other work. The cap applies to each datastore on its own, so lower it further when several datastores share the connection. Raise it again when the database can handle more. See [Max Parallelization](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/connection/#max-parallelization).

## Clean Up Unused Connections

A connection stays in Qualytics after its last datastore is deleted. Review the **Manage Connections** page from time to time and delete the connections nothing uses, so old credentials do not linger.

---

## See Also

- **Permissions**

  The role and team permission each datastore action needs.

  [Permissions](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/permissions/)
- **How It Works**

  How a datastore maps to your storage, the layers behind it, the lifecycle, and the Timeline.

  [How It Works](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/how-it-works/)
- **Connection**

  How a connection holds the credentials that one or more datastores share.

  [Connection](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/connection/)
- **Multiple-Schema**

  Create one datastore per schema or folder from a single connection.

  [Multiple-Schema](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/multiple-schema/)
- **Supported Connectors**

  Every connector by family, with its enrichment support and multi-schema fields.

  [Supported Connectors](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/supported-connectors/)
- **JDBC Connectors**

  How Qualytics reads relational databases and warehouses through JDBC.

  [JDBC Connectors](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/jdbc/)
- **DFS Connectors**

  How Qualytics reads files from cloud object storage and distributed file systems.

  [DFS Connectors](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/dfs/)
- **Native Connectors**

  How Qualytics reads a platform's own storage or API without its query engine.

  [Native Connectors](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/native/)
- **Supported File Formats**

  The file formats DFS datastores read, including compressed variants.

  [Supported File Formats](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/supported-file-formats/)
- **Filename Globbing**

  How DFS datastores group files with similar names into one container.

  [Filename Globbing](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/filename-globbing/)
- **HashiCorp Vault**

  Pull connection credentials from a secrets manager instead of typing them in.

  [HashiCorp Vault](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/hashicorp-vault/)
- **Examples**

  Real scenarios, from onboarding a warehouse to protecting a busy database.

  [Examples](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/examples/)

*Last updated: November 16, 2026.*
