Size: separate data_length and index_length
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 65/100
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- PHP
- 星标
- 76
- 派生
- 73
- 平均合并
- 9 小时 31 分钟
- 30 天内合并 PR
- 2
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
wp-cli/db-command 的其他 Issue
-
bug command:db-query
wp-cli/db-command#319 · 5 条评论 · 1 个 reaction · 已指派 2 人 ·
-
command:db scope:distribution state:unconfirmed
wp-cli/db-command#306 · 5 条评论 · 1 个 reaction · 已指派 2 人 ·
-
bug command:db-export
难度 3/5 1-2 天 新手友好度 45/100
wp-cli/db-command#289 · 2 条评论 ·
-
command:db-export command:db-import scope:distribution state:unconfirmed
难度 5/5 一周以上 新手友好度 25/100
wp-cli/db-command#327 · 8 条评论 · 2 个 reaction ·
-
command:db command:db-search
难度 3/5 1-2 天 新手友好度 35/100
wp-cli/db-command#156 · 1 条评论 · 20 个 reaction ·
查看 wp-cli/db-command 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
getgrav/grav-plugin-api#45 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
RSS-Bridge/rss-bridge#5098 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
phingofficial/phing#2025 ·
-
难度 2/5 1-3 小时 新手友好度 82/100
silverstripe/developer-docs#911 ·
-
难度 2/5 1-3 小时 新手友好度 74/100