Skip to content

Commit 081149a

Browse files
committed
Updated the doc with time quantum
1 parent 43486a9 commit 081149a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ Let's create the `stargazer` frame which has user IDs of stargazers as its rows:
3333
$ curl -XPOST localhost:10101/frame -d '{"db": "project", "frame": "stargazer", "options": {"rowLabel": "stargazer_id"}}'
3434
```
3535

36+
Since our data contains time stamps for the time users starred repos, we will change the *time quantum* for the `stargazer` frame. Time quantum is the resolution of the time we want to use. We will set it to `YMD` (year, month, day) for `stargazer`:
37+
```
38+
$ curl -XPATCH localhost:10101/frame/time_quantum -d '{"db": "project", "frame": "stargazer", "time_quantum": "YMD"}'
39+
3640
Next up is the `language` frame, which will contain IDs for programming languages:
3741
```
3842
$ curl -XPOST localhost:10101/frame -d '{"db": "project", "frame": "language", "options": {"rowLabel": "language_id"}}'
@@ -51,7 +55,7 @@ $ pilosa import -d project -f language project-language.csv
5155
If you are using a Docker container for Pilosa (with name `pilosa`), you should instead copy the `*.csv` file into the container and then import them:
5256
```
5357
$ docker cp project-stargazer.csv pilosa:/project-stargazer.csv
54-
$ docker exec -it pilosa pilosa import -d project -f stargazer /project-stargazer.csv pilosa
58+
$ docker exec -it pilosa pilosa import -d project -f stargazer /project-stargazer.csv
5559
$ docker cp project-language.csv pilosa:/project-language.csv
5660
$ docker exec -it pilosa pilosa import -d project -f language /project-language.csv
5761
```

0 commit comments

Comments
 (0)