Skip to content

Commit 1422448

Browse files
committed
Add Data Refresh section
1 parent cfb92f4 commit 1422448

File tree

1 file changed

+23
-0
lines changed
  • spiceaidocs/docs/local-acceleration

1 file changed

+23
-0
lines changed

spiceaidocs/docs/local-acceleration/index.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,29 @@ Data Storage: Ensure that the local storage has enough capacity to store the acc
2323

2424
Data Security: Assess data sensitivity and secure network connections between edge and data connector when replicating data for further usage. Assess the security of any Data Accelerator that is external to the Spice runtime and connected to the Spice runtime. Implement encryption, access controls, and secure protocols.
2525

26+
## Data Refresh
27+
28+
Dataset acceleration can be configured in `full` (the entire dataset is refreshed) or `append` (new data from a dataset source is appended) acceleration modes.
29+
30+
The data refresh interval for an accelerated dataset in `full` mode can be specified via [refresh_interval](/reference/spicepod/datasets#accelerationrefresh_interval) or triggered via Api (`POST`, `/v1/datasets/:name/refresh`).
31+
32+
An example CuRL
33+
34+
```bash
35+
curl -i -XPOST 127.0.0.1:3000/v1/datasets/eth_recent_blocks/refresh
36+
```
37+
38+
And response
39+
40+
```bash
41+
HTTP/1.1 201 Created
42+
content-type: application/json
43+
content-length: 55
44+
date: Thu, 11 Apr 2024 20:11:18 GMT
45+
46+
{"message":"Dataset refresh triggered for eth_recent_blocks."}
47+
```
48+
2649
## Example
2750

2851
### Locally Accelerating eth.recent_blocks

0 commit comments

Comments
 (0)