You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: fix CDB64 documentation based on CTO feedback PE-8929
- Fix db source description: "requires locally parsing ANS-104 bundles
to index discovered items" (more accurate than "requires local indexing")
- Fix incorrect "without network requests" claim - default shipped index
stores partitions on Arweave, so network requests ARE made (with caching)
- Add partitioning explanation: records partitioned by first byte of
binary data item ID (hex prefix 00-ff)
- Clarify that --partitioned flag creates manifest.json automatically
- Clarify upload tool workflow: uploads partitions, resolves offsets,
updates manifest with arweave-bundle-item locations
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: content/build/run-a-gateway/manage/cdb64.mdx
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,9 +18,9 @@ When your gateway receives a request for a data item (content inside an ANS-104
18
18
19
19
The gateway checks multiple sources when resolving a data item ID to its root transaction. The order is controlled by `ROOT_TX_LOOKUP_ORDER`:
20
20
21
-
1.**db** - Your local SQLite database (fastest, but requires local indexing)
21
+
1.**db** - Your local SQLite database (fastest, but requires locally parsing ANS-104 bundles to index discovered items)
22
22
2.**gateways** - HEAD requests to other AR.IO gateways
23
-
3.**cdb** - CDB64 file-based index (O(1) lookup, no network required)
23
+
3.**cdb** - CDB64 file-based index (O(1) lookup from local files or cached remote data)
24
24
4.**graphql** - GraphQL queries to trusted gateways
25
25
26
26
The default configuration tries each source in order until a match is found:
@@ -38,7 +38,7 @@ The shipped CDB64 index covers:
38
38
- Data items with content types
39
39
- Block heights 0 through 1,820,000
40
40
41
-
This means most historical ArDrive, Akord, and similar application data will resolve instantly without network requests.
41
+
This means most historical ArDrive, Akord, and similar application data can be resolved via the CDB64 index. The default shipped index stores partition data on Arweave, so network requests are made to fetch CDB data (with intelligent byte-range caching). For zero network latency, you can download the CDB files locally.
42
42
43
43
## Configuration Options
44
44
@@ -115,7 +115,7 @@ When enabled, you can add new index files to the directory without restarting yo
115
115
116
116
## Partitioned Indexes
117
117
118
-
Large CDB64 indexes can be split across up to 256 partition files for better manageability. A partitioned index consists of:
118
+
Large CDB64 indexes can be split across up to 256 partition files for better manageability. Records are partitioned by the first byte of the binary data item ID, represented as a hex prefix (00-ff). A partitioned index consists of:
119
119
120
120
-`manifest.json` - Describes all partitions and their locations
121
121
-`00.cdb` through `ff.cdb` - Partition files (only populated prefixes exist)
@@ -151,7 +151,7 @@ If you need to create CDB64 indexes for specific data sets, the gateway includes
0 commit comments