From 6aae7831b3c8b5d17de367818d9265db001b1fac Mon Sep 17 00:00:00 2001 From: Yuki Kishimoto Date: Tue, 9 Apr 2024 10:38:20 +0200 Subject: [PATCH] Add `just many-events` command Signed-off-by: Yuki Kishimoto --- .gitignore | 2 ++ justfile | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index d8848b5ea..9bd9f01a0 100644 --- a/.gitignore +++ b/.gitignore @@ -5,5 +5,7 @@ db/ *.db-shm *.db-wal *.mdb +many-events.json +many-events.json.zst .idea/ .vscode/ diff --git a/justfile b/justfile index 79c74520b..478ae59d7 100755 --- a/justfile +++ b/justfile @@ -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 \ No newline at end of file