This is an automated email from the ASF dual-hosted git repository.
pjfanning pushed a commit to branch 1.2.x
in repository https://gitbox.apache.org/repos/asf/pekko-persistence-r2dbc.git
The following commit(s) were added to refs/heads/1.2.x by this push:
new dbbc273 Document only one entry per pid in snapshot store (#305)
(#334)
dbbc273 is described below
commit dbbc2730c48b34e0ea93320c82bdad05bd95ae66
Author: PJ Fanning <[email protected]>
AuthorDate: Sun Apr 19 07:34:55 2026 +0200
Document only one entry per pid in snapshot store (#305) (#334)
Update snapshots.md
---
docs/src/main/paradox/snapshots.md | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/docs/src/main/paradox/snapshots.md
b/docs/src/main/paradox/snapshots.md
index f7c1fb3..4e1f1ab 100644
--- a/docs/src/main/paradox/snapshots.md
+++ b/docs/src/main/paradox/snapshots.md
@@ -29,3 +29,11 @@ The following can be overridden in your `application.conf`
for the snapshot spec
The snapshot plugin is used whenever a snapshot write is triggered through the
@extref:[Pekko Persistence APIs](pekko:typed/persistence-snapshot.html).
+
+## Retention
+
+The R2DBC snapshot plugin only ever keeps *one* snapshot per persistence id in
the database.
+If a `keepNSnapshots > 1` is specified for an `EventSourcedBehavior` that
setting will be ignored.
+
+The reason for this is that there is no real benefit to keep multiple
snapshots around on a relational
+database with a high consistency.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]