https://github.com/sjmiller609/reproduce-issue
https://github.com/sjmiller609/reproduce-issue
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sjmiller609/reproduce-issue
- Owner: sjmiller609
- Created: 2024-12-10T02:13:53.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-12-17T15:57:25.000Z (6 months ago)
- Last Synced: 2025-03-29T10:12:58.668Z (2 months ago)
- Language: Rust
- Size: 54.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Reproduce query rate issues
Problem resolved in apalis 0.6.2
### Start the services using Docker Compose:
```bash
docker-compose up --build
```### Check query rate:
Run the below command a few times, checking the change in the "calls" column of the output
```bash
docker exec -u postgres -it investigate-jobs-db-1 psql -c 'SELECT
query,
calls,
total_exec_time,
total_exec_time/calls as avg_exec_time,
rows/calls as avg_rows,
100.0 * shared_blks_hit/nullif(shared_blks_hit + shared_blks_read, 0) AS hit_percent
FROM pg_stat_statements where calls > 100
ORDER BY total_exec_time DESC
LIMIT 10;'
```### Access the Flame Graph:
http://localhost:8080/debug/pprof/profile