geraldvillorente / terminus-debugging-tools
此包的最新版本(2.0)没有可用的许可证信息。
用于调试问题的有用命令。
2.0
2019-02-26 01:57 UTC
This package is auto-updated.
Last update: 2024-09-27 06:39:36 UTC
README
一组terminus插件,用于简化在Pantheon上管理网站。
安装
要安装此插件,请遵循以下说明 - https://pantheon.io/docs/terminus/plugins/
Blob Blotter命令
按大小顺序查找MariaDB数据库中最大的文本/blob列。
$ terminus blob:columns SITE.ENV
------------------------------------ -------------------- --------------------
Table Column Biggest entry (KB)
------------------------------------ -------------------- --------------------
cache data 61.2412
field_data_body body_value 46.4551
field_revision_body body_value 46.4551
cache_update data 38.4697
search_dataset data 19.4033
查找指定表和列中的最大行。
$ terminus blob:cells SITE.ENV TABLE COLUMN --format=table
示例输出
$ terminus blob:cells SITE.ENV field_data_body body_value --format=table
------------- --------- --------- ----------- ------------- ---------- ------- -------------- ------------- -----------
Entity_type Bundle Deleted Entity_id Revision_id Language Delta Body_summary Body_format Column_KB
------------- --------- --------- ----------- ------------- ---------- ------- -------------- ------------- -----------
node article 0 238 238 und 0 full_html 46.4551
node article 0 183 183 und 0 full_html 21.3848
node article 0 179 179 und 0 full_html 18.3184
node article 0 186 186 und 0 full_html 15.7764
node article 0 222 222 und 0 full_html 15.4717
node article 0 158 158 und 0 full_html 14.0332
分析表命令
对特定组的表或所有表运行ANALIZE TABLE查询。
$ terminus analyze-table:run SITE.ENV TABLE
$ terminus analyze-table:run SITE.ENV TABLE_1,TABLE_2,TABLE_3
$ terminus analyze-table:run SITE.ENV all