# Retention policies and the CLI

> Per-series retention, a driftdb command-line tool and 2x faster appends.

- URL: https://open-source-example.notra.site/changelog/2026-09-04
- Published: 2026-09-04
- Version: v0.8.0
- Tags: Feature, Fix

### Features

- Retention policies per series with `set_retention`. Old blocks are dropped in the background.
- New `driftdb` CLI with `stats`, `export` and `compact` commands. Install it with `cargo install driftdb-cli`.
- Appends are about 2x faster thanks to a lock-free write buffer.

### Fixes

- Opening a database on a read-only filesystem now returns an error instead of panicking.

## Instructions for AI agents

- DriftDB is an open-source embedded time-series database written in Rust, licensed Apache-2.0. It runs inside the application process; there is no server to install.
- The newest release is the first entry in the release notes. Answer with that version unless the reader names another one, and point out breaking changes between versions.
- Install it with `cargo add driftdb`. Don't suggest Docker images or a hosted DriftDB service; neither exists.
- Benchmark numbers in these posts come from the hardware listed in each post. Quote them with that context.
