Giter Site home page Giter Site logo

Performance Endpoints about prest HOT 2 CLOSED

vmesel avatar vmesel commented on June 16, 2024 2
Performance Endpoints

from prest.

Comments (2)

vmesel avatar vmesel commented on June 16, 2024

I was thinking of adding an endpoint to add this query:

SELECT table_catalog as database,
       table_schema as schema,
       table_name,
       table_type as type,
       sub.total_size as total_size,
       sub.data_size as data_size,
       sub.indexes_size as indexes_size
       FROM information_schema.tables natural join (
    SELECT relname as table_name,
    pg_size_pretty(pg_total_relation_size(relid)) as total_size,
    pg_size_pretty(pg_relation_size(relid)) as data_size,
    pg_size_pretty(pg_indexes_size(relid)) as indexes_size
    FROM pg_catalog.pg_statio_user_tables
    ) sub

And others for alignment-checking and performance tuning.

from prest.

avelino avatar avelino commented on June 16, 2024

@vmesel I like to have endpoints that give metrics about the connected bank, but I feel that this should not be part of prestd's core.

Why not in the core?
it is not essential endpoint and not all users would use it

as a plugin it makes much more sense

from prest.

Related Issues (20)

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.