Skip to content

Commit

Permalink
Add just many-events command
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Kishimoto <[email protected]>
  • Loading branch information
yukibtc committed Apr 9, 2024
1 parent f590f1e commit 6aae783
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@ db/
*.db-shm
*.db-wal
*.mdb
many-events.json
many-events.json.zst
.idea/
.vscode/
5 changes: 5 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ book:
flatbuf:
cd crates/nostr-database && just flatbuf

# Get many-events.json to test database performance
many-events:
curl https://cdn.jb55.com/s/many-events.json.zst -o many-events.json.zst
zstd -d many-events.json.zst

# Count the lines of codes of this project
loc:
@echo "--- Counting lines of .rs files (LOC):" && find crates/ bindings/ -type f -name "*.rs" -not -path "*/target/*" -exec cat {} \; | wc -l

0 comments on commit 6aae783

Please sign in to comment.