mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-18 15:31:13 +00:00
759f6d8a9a
* stuff * stuff including batch_upsert function * stuff * do things * stuff * different timestamps * stuff * Revert changes to comment.rs * Update comment.rs * Update comment.rs * Update post_view.rs * Update utils.rs * Update up.sql * Update up.sql * Update down.sql * Update up.sql * Update main.rs * use anyhow macro * replace get(0) with first() * as_slice * Update series.rs * Update db_perf.sh * Update and rename crates/db_schema/src/utils/series.rs to crates/db_perf/src/series.rs * Update utils.rs * Update main.rs * Update main.rs * Update .woodpecker.yml * fmt main.rs * Update .woodpecker.yml * Instance::delete at end * Update main.rs * Update Cargo.toml --------- Co-authored-by: Nutomic <me@nutomic.com>
20 lines
463 B
Bash
Executable file
20 lines
463 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# This script runs crates/lemmy_db_perf/src/main.rs, which lets you see info related to database query performance, such as query plans.
|
|
|
|
set -e
|
|
|
|
CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
|
|
|
|
cd $CWD/../
|
|
|
|
source scripts/start_dev_db.sh
|
|
|
|
export LEMMY_CONFIG_LOCATION=config/config.hjson
|
|
export RUST_BACKTRACE=1
|
|
|
|
cargo run --package lemmy_db_perf -- "$@"
|
|
|
|
pg_ctl stop --silent
|
|
|
|
# $PGDATA directory is kept so log can be seen
|