Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for database summary display #36

Closed
denis-stepanov opened this issue Aug 31, 2022 · 1 comment · Fixed by #49
Closed

Support for database summary display #36

denis-stepanov opened this issue Aug 31, 2022 · 1 comment · Fixed by #49
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@denis-stepanov
Copy link
Owner

It would be good to have a command like db-djv-pg dbinfo which would display a database summary: number of tracks, number of fingerprints, date of last update, etc.

@denis-stepanov denis-stepanov added the enhancement New feature or request label Aug 31, 2022
@denis-stepanov denis-stepanov added this to the v1.5.0 milestone Sep 21, 2022
@denis-stepanov denis-stepanov self-assigned this Oct 18, 2022
@denis-stepanov denis-stepanov linked a pull request Oct 28, 2022 that will close this issue
@denis-stepanov
Copy link
Owner Author

Implemented as follows:

(advent-pyenv) $ db-djv-pg dbinfo -h
usage: db-djv-pg dbinfo [-h] [-c]

optional arguments:
  -h, --help   show this help message and exit
  -c, --check  check database consistency
(advent-pyenv) $ db-djv-pg dbinfo -c
Dejavu database info:
  Fingerprinted / total tracks = 117 / 117
  Peak groups                  = 29482 (avg. ~= 252 per track)
  Fingerprints                 = 760255 (avg. ~= 6498 per track)
  Total fingerprinted time    ~= 489 s (avg. ~= 4.2 s per track)
  Database size               ~= 117 MB (avg. ~= 1.0 MB per track)
  Fingerprinting frequency    ~= 1555 Hz (~= 3.53% of sampling frequency 44100 Hz)
  Hash size                    = 10 B
  Hash collisions             ~= 19.74%
  First update                ~= 2022-10-27 23:19:34
  Last update                 ~= 2022-10-27 23:24:19
  Last vacuum                 ~= 2022-10-27 23:46:24

AdVent database info:
  Countries                    = 1
  TV channels                  = 11 (avg. ~= 11 per country)
  Jingles                      = 117 (avg. ~= 11 per TV channel)
  Pure entry / entry jingles   = 36 / 70
  Pure exit / exit jingles     = 47 / 81
  No action jingles            = 0
  Time coverage from           = 2022-02-05
  Time coverage till           = 2022-10-14

Database health checks:
  D0010: timestamps in future                       : OK
  D0011: created > modified                         : OK
  D0020: same song name, different SHA1             : OK
  D0021: same SHA1, different song name             : OK
  D0030: fingerprinted without fingerprints         : OK
  D0035: fingerprint counts mismatch                : OK
  D0040: fingerprint hashes of variable size        : OK
  D0100: vacuum needed                              : OK
  A0010: non-fingerprinted tracks                   : OK
  A0020: low confidence tracks                      : OK
  A0050: bad track name format                      : OK
  A0051: bad track date format                      : OK
  A0080: bad flags                                  : OK
  --------------------------------------------------+-------
  TOTAL CHECKS                                      : OK
(advent-pyenv) $ 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant