Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
With relative file paths for file connector, don't need templating in spice pod.
  • Loading branch information
Jeadie authored Sep 23, 2024
1 parent 7cd4e18 commit 3011470
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions acceleration/indexes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Indexes can be created on accelerated datasets (for supported engines) to improv

```bash
spice init acceleration-indexes
cd acceleration-indexes
```

**Step 2.** Download the large test dataset locally
Expand All @@ -18,19 +19,19 @@ wget https://public-data.spiceai.org/large_eth_traces.parquet

**Step 3.** Add the spicepod with indexes configured

Add the following to your `spicepod.yaml`. Be sure to replace `path/to/large_eth_traces.parquet` with the absolute path to the downloaded dataset.
Add the following to your `spicepod.yaml`.

```yaml
datasets:
- from: file://path/to/large_eth_traces.parquet
- from: file:/large_eth_traces.parquet
name: traces
acceleration:
enabled: true
engine: duckdb
mode: file
indexes:
trace_id: enabled
- from: file://path/to/large_eth_traces.parquet
- from: file:/large_eth_traces.parquet
name: traces_no_index
acceleration:
enabled: true
Expand All @@ -43,7 +44,6 @@ datasets:
Spice will start and load the dataset into sqlite. **This may take several minutes.**
```bash
cd acceleration-indexes
spice run
```

Expand Down

0 comments on commit 3011470

Please sign in to comment.