# Choose embedded databases from the actual workload

Compare embedded databases using concurrency, durability and deployment needs, with a reporting example and a practical workload-specific decision matrix.

By Daltn editorial team. Published 2026-11-08.
Canonical: https://daltn.tech/feeds/duckdb-sqlite-business-data-choices/

## When should a business application use an embedded database?

Embedded databases can simplify local storage or analytical processing when their operating model fits the workload. They do not remove requirements for backups, access control, concurrency and shared reporting. Compare operational writes, analytical scans and deployment constraints separately before selecting SQLite, DuckDB or a server database for the application.

## Keep these in mind

- SQLite and DuckDB target different common workload patterns.
- In-memory processing is different from durable storage.
- A shared analytics requirement may justify additional infrastructure.

## Separate the workload categories

An application recording orders has different needs from a report scanning historical files. Both use tables, but their access patterns can differ significantly.

List write frequency, concurrency, query shape and data-sharing requirements. Include backup and recovery expectations before comparing benchmark speed.

[SQLite’s appropriate-uses guide](https://sqlite.org/whentouse.html) explains where embedded storage fits and where client-server databases may suit better. It does not claim every business should use one database category.

## Understand analytical concurrency

DuckDB is designed for analytical processing, with documented concurrency behavior. Review that behavior against your actual readers and writers.

The [DuckDB concurrency documentation](https://duckdb.org/docs/2.0/connect/concurrency) describes its supported operating model. Confirm the version used in your deployment.

An embedded database file does not automatically become a safely shared multi-process write service. Network filesystems and process boundaries require specific evaluation.

## A worked reporting design

Consider an illustrative service business producing a weekly report from exported order and expense files. One scheduled process builds the report.

An embedded analytical engine may simplify that bounded workload. The source exports still need validation, versioning and an understandable reporting cutoff.

The same business also accepts concurrent order changes from several staff. That operational path needs a separate assessment rather than inheriting the reporting choice.

## Choose from requirements, not a replacement slogan

A data warehouse supports organizational requirements beyond individual query execution. Shared governance, repeatable pipelines and cross-team access may still matter.

An embedded engine can complement those systems or serve a smaller independent task.

Workload | Requirement to inspect | Possible direction
--- | --- | ---
Single-device application | Local durability and recovery | Evaluate SQLite’s supported model.
Batch file analysis | Large scans and bounded process ownership | Evaluate DuckDB with representative files.
Concurrent operational service | Shared controlled writes | Evaluate a suitable server architecture.
Cross-team historical reporting | Governed sources and shared access | Evaluate a warehouse or managed reporting design.

## Test failures as well as query speed

Run representative queries using realistic data size and formats. Include malformed input, duplicate records and an interrupted import.

Test process termination during writes and verify recovery behavior. Also test restore from the actual backup process you plan to operate.

A fast demonstration on a laptop does not establish production concurrency or retention. Keep the test environment and configuration recorded.

1. Separate operational writes from analytical workloads.
1. List concurrent processes and required sharing boundaries.
1. Test representative reads, writes and interruptions.
1. Verify durable storage, backup and restore behavior.
1. Compare total operating effort with alternative architectures.

## Account for the remaining data work

Files still need owners, schema definitions and quality checks. Moving a query into memory does not correct a broken customer identifier.

Access control may belong to the surrounding application and filesystem. Verify where the engine’s responsibility ends.

Monitor data freshness and failed imports so users know what a report includes. Cached local data may lag behind operational changes.

Choose embedded storage when it meets concrete requirements simply. Claims about the death of warehousing obscure the workload trade-offs that actually matter.

Run a restore exercise in the actual deployment environment. A file copied during active writes may not represent the backup procedure you intended.

Check who can start competing application instances and where durable files survive redeployment. Local development can conceal these operating differences. Document recovery ownership and validate a restored report against known records before treating the backup as usable.

## Common questions

### Does in-memory analysis mean data cannot be saved?

No. Processing location and persistence are separate design choices. Inspect the engine configuration and the application’s save and recovery behavior.

### Should a small company avoid a warehouse?

Not automatically. Shared reporting, governance and integration requirements may justify one. Compare the actual workload and operating effort.

## Sources

- [Appropriate Uses for SQLite](https://sqlite.org/whentouse.html): Supports embedded versus client-server workload considerations.
- [Concurrency, DuckDB documentation](https://duckdb.org/docs/2.0/connect/concurrency): Supports version-specific concurrency considerations. The workload comparison is original analysis.
