Coder Social home page Coder Social logo

greg-1-anderson / terminus_debugging_tools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pantheon-systems/terminus_debugging_tools

0.0 0.0 0.0 22 KB

A collection of terminus plugins to facilitate managing sites on Pantheon.

License: MIT License

PHP 100.00%

terminus_debugging_tools's Introduction

terminus debugging tools

A collection of terminus plugins to facilitate managing sites on Pantheon.

Installation

For installing this plugin, please follow the instrctions from here - https://pantheon.io/docs/terminus/plugins/

Blob Blotter commands

Finds the biggest text/blob columns from your MariaDB database ordered by size.

$ 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

Finds the biggest rows from the specified table and column.

$ terminus blob:cells SITE.ENV TABLE COLUMN --format=table

Example output:

$ 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

Analyze Table commands

Runs ANALIZE TABLE query on either a specific group of tables or all of them.

$ 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

terminus_debugging_tools's People

Contributors

alexdicianu avatar uberhacker avatar nstielau avatar albertcausing avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.