Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiddendoom45 committed Sep 19, 2019
1 parent 34e8cf0 commit 4883d86
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,28 @@ Past Hour : 5.285 sold/min increasing by 0.020388cents/minute, increases
Initially it will only print the current average with the changed averaged over the past minute/15 minutes/hour added as more
data is collected

## Compressing / Merging databases

The database file generated can be compressed with the following command.

```
java -cp BTATrack.jar core.Compact [database...]
```

The database is compressed by removing duplicate entries with the same price keeping only the times it was first seen and last seen.

One or more databases may be specified, if more than one is specified then it will assume the data is from the same bundle and merge the data together and compress them. Each database will contain the same compressed information after the program finishes.

<br/>
<br/>

Additionally databases can be merged with the following command if they contain data about the same bundle.

```
java -cp BTATrack.jar core.Compact merge [database...]
```

One or more databases may be specified, if one is specified then it only sorts the default index according to timestamp and cleans up the disk space used. Each database will contain the same information after the program finishes.

### Dependancies

Expand Down

0 comments on commit 4883d86

Please sign in to comment.