# perf\(netflow-db\): decode the next nfcapd batch while publishing the current one · flambo/atlantis

[View on GitCafe](https://git.cafe/flambo/atlantis/commit/6cca5a1dcff60fdfc026e771995b39b7358e8cc5)

Repository: [flambo/atlantis](https://git.cafe/flambo/atlantis)

Visibility: public

Requested revision: 6cca5a1dcff60fdfc026e771995b39b7358e8cc5

Requested commit: 6cca5a1dcff60fdfc026e771995b39b7358e8cc5

Commit: 6cca5a1dcff60fdfc026e771995b39b7358e8cc5

Tree: 12793aba2d007e847788141d79b699d4a2d543df

Author: flamboh

Committer: flamboh

## Message

```
perf(netflow-db): decode the next nfcapd batch while publishing the current one

A scoped decode thread works on batch N+1 while the writer publishes batch N, so decode workers no longer wait for MAAD and SQLite writes. At most two decoded batches are held. Revision checks still bracket every decode.

```

## Parents

- [4595418c060bf7743e390910c65f24295aa7377e](https://git.cafe/flambo/atlantis/commit/4595418c060bf7743e390910c65f24295aa7377e?format=markdown)

[Source at this commit](https://git.cafe/flambo/atlantis/tree/6cca5a1dcff60fdfc026e771995b39b7358e8cc5?format=markdown)
