Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pbackup: Use SQL to find jobs for FULL
FULL backups want only jobs without existing stat records. Usually, there will be none. Select jobs without stat records by `LEFT JOIN stat ON stat_job_id = job_id WHERE stat_job_id IS NULL`. This reduced the time for test runs to discover that there are no FULL jobs to do in an actual database from 2.02 seconds to 0.06 seconds.
- Loading branch information