Skip to content
Back to skills

Duckdb Analytics

ASecurity

Embed DuckDB safely for fast analytics: Parquet/CSV scans, memory/thread bounds, read-only modes and concurrency

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
developmentrustsqlbackendperformance

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add AdityaaaTiwari/ANVIL --skill duckdb-analytics --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Duckdb Analytics?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Duckdb Analytics
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/adityaaatiwari-duckdb-analytics/badge)](https://www.skillsdirectory.com/skills/adityaaatiwari-duckdb-analytics)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Embed DuckDB safely for fast analytics: Parquet/CSV scans, memory/thread bounds, read-only modes and concurrency
profile: standard
tags: duckdb, analytics, parquet, data
---

# DuckDB analytics

Use when running embedded analytical queries over Parquet, CSV, JSON, or local `.duckdb` files.

## External files and performance
- Query partitioned Parquet/JSON directly (`read_parquet('data/dt=*/*.parquet', hive_partitioning = true)`) with column projection and `WHERE` pushdowns so DuckDB reads only needed row groups and columns.
- Avoid `SELECT *` in production analytics; list needed columns explicitly to keep vectorized memory footprints low.
- Persist expensive cleaned outputs directly via `COPY (...) TO 'out.parquet' (FORMAT PARQUET, COMPRESSION ZSTD)` instead of materializing huge DataFrames in host language memory.

## Concurrency and resource bounds
- DuckDB supports single-writer OR multiple read-only processes on a `.duckdb` file, not concurrent read+write across separate OS processes. Open shared files with `access_mode = 'READ_ONLY'` for readers.
- Always configure `SET memory_limit = '2GB';` and `SET threads = 4;` (and `SET temp_directory = ...` if spilling) in shared backend services so one analytical query cannot OOM the host process.

## Parameter safety
Always use prepared statement parameters (`$1` / `?`) for filter values, and never interpolate untrusted user strings into SQL or `read_parquet(...)` paths; restrict external access with `enable_external_access = false` when running user-supplied SQL.

## Verify
Check `EXPLAIN ANALYZE` for Parquet predicate/projection pushdown, confirm `memory_limit` behavior on large inputs, and test concurrent read-only access or parameterized filtering.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.