changelog/v0.21: add dag stat additions
Jorropo committed
Jun 6, 2023 at 15:49 UTC
50daf64be41903b4c7175ffb2d883d94ecf9cd88
1 file changed
+22
docs/changelogs/v0.21.md
+22
@@ -11,6 +11,7 @@
11
- [`client/rpc` migration of `go-ipfs-http-client`](#clientrpc-migration-of-go-ipfs-http-client)
12
- [Gateway: DAG-CBOR/-JSON previews and improved error pages](#gateway-dag-cbor-json-previews-and-improved-error-pages)
13
- [Gateway: subdomain redirects are now `text/html`](#gateway-subdomain-redirects-are-now-texthtml)
14
+ - [`ipfs dag stat` deduping statistics](#ipfs-dag-stat-deduping-statistics)
15
- [📝 Changelog](#-changelog)
16
- [👨👩👧👦 Contributors](#-contributors)
17
@@ -102,6 +103,27 @@ $ curl "https://subdomain-gw.example.net/ipfs/${cid}/"
103
104
Rationale can be found in [kubo#9913](https://github.com/ipfs/kubo/pull/9913).
105
106
+#### `ipfs dag stat` deduping statistics
107
+
108
+`ipfs dat stat` now accept multiple CIDs and will dump advanced statistics
109
+on the number of shared blocks and size of each CID.
110
+
111
+```console
112
+$ ipfs dag stat --progress=false QmfXuRxzyVy5H2LssLgtXrKCrNvDY8UBvMp2aoW8LS8AYA QmfZDyu2UFfUhL4VdHaw7Hofivmn5D4DdQj38Lwo86RsnB
113
+
114
+CID Blocks Size
115
+QmfXuRxzyVy5H2LssLgtXrKCrNvDY8UBvMp2aoW8LS8AYA 3 2151
116
+QmfZDyu2UFfUhL4VdHaw7Hofivmn5D4DdQj38Lwo86RsnB 4 3223
117
+
118
+Summary
119
+Total Size: 3326
120
+Unique Blocks: 5
121
+Shared Size: 2048
122
+Ratio: 1.615755
123
+```
124
+
125
+`ipfs --enc=json dag stat`'s keys are a non breaking change, new keys have been added but old keys with previous sementics are still here.
126
+
127
### 📝 Changelog
128
129
### 👨👩👧👦 Contributors