Size: separate data_length and index_length
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 65/100
Piste de recherche
Start at the database size reporting path used by the --human-readable output and inspect how data and index sizes are currently combined and rounded. Done means the output separates Data, Index, and Total while preserving the combined total and avoiding the demonstrated rounding discrepancy.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Feature Request
- Yes, I reviewed the contribution guidelines.
Especially on larger sites, and with DB optimization (i.e. additional indexes), indexes can be quite big already on its own. Calculating data and index sizes together skew things slightly.
Here's an example of one site
Data total: ~3.43 GB
Index total: ~2.80 GB
Grand total: ~6.23 GB
Describe the solution you'd like
At least when using an output format that doesn't just give the size as a number, data and index should be displayed separately. At least it should be clearly documented that index sizes are counted to tally.
For example with --human-readable instead of
+------+------+
| Name | Size |
+------+------+
| wdb | 7 GB |
+------+------+
return could be
| Name | Data | Index | Total |
|------|---------|---------|---------|
| wdb | 3.43 GB | 2.80 GB | 6.23 GB |
There's currently also slight rounding issue where 6.23 GB becomes 7 GB.
- Langage dominant
- PHP
- Étoiles
- 76
- Forks
- 73
- Merge moyen
- 9 h 31 min
- PR mergées (30 j)
- 2
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de wp-cli/db-command
-
bug command:db-query
wp-cli/db-command#319 · 5 commentaires · 1 réaction · 2 personnes assignées ·
-
command:db scope:distribution state:unconfirmed
wp-cli/db-command#306 · 5 commentaires · 1 réaction · 2 personnes assignées ·
-
bug command:db-export
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
wp-cli/db-command#289 · 2 commentaires ·
-
command:db-export command:db-import scope:distribution state:unconfirmed
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
wp-cli/db-command#327 · 8 commentaires · 2 réactions ·
-
command:db command:db-search
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
wp-cli/db-command#156 · 1 commentaire · 20 réactions ·
Toutes les issues de wp-cli/db-command
Issues similaires
-
priority: p3
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
googleapis/librarian#7636 ·
-
0. Needs triage bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
nextcloud/fulltextsearch#1011 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
phpstan/phpstan-doctrine#794 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
Automattic/static-site-importer#1767 ·