Size: separate data_length and index_length
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 65/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- PHP
- Stelle
- 76
- Fork
- 73
- Merge medio
- 9h 31m
- PR unite (30g)
- 2
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di wp-cli/db-command
-
bug command:db-query
wp-cli/db-command#319 · 5 commenti · 1 reazione · 2 assegnatari ·
-
command:db scope:distribution state:unconfirmed
wp-cli/db-command#306 · 5 commenti · 1 reazione · 2 assegnatari ·
-
bug command:db-export
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
wp-cli/db-command#289 · 2 commenti ·
-
command:db-export command:db-import scope:distribution state:unconfirmed
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
wp-cli/db-command#327 · 8 commenti · 2 reazioni ·
-
command:db command:db-search
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
wp-cli/db-command#156 · 1 commento · 20 reazioni ·
Tutte le issue di wp-cli/db-command
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
getgrav/grav-plugin-api#45 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
RSS-Bridge/rss-bridge#5098 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
phingofficial/phing#2025 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
silverstripe/developer-docs#911 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100