Skip to content

Review and clean up unusued schemas from sprout-data #70

@subaykan

Description

@subaykan

there are two schemas in the sprout-data db imports and independent
which may be unused. If we can confirm these are not needed, we can drop the schemas, and the nightly refresh schemas
from Gregor in slack

SELECT
    n.nspname AS "Schema",
    pg_size_pretty(SUM(pg_total_relation_size(c.oid))) AS "Size"
FROM
    pg_class c
LEFT JOIN
    pg_namespace n ON n.oid = c.relnamespace
WHERE
    n.nspname in ('imports', 'independent') 
GROUP BY
    n.nspname;

gives 7664 kb for independent and 8192 bytes for imports

update create scripts to comment out and archive
https://github.com/cssat/sprout-data-db-cron/tree/main/sql/create

remove the refresh scripts and drop the schemas
https://github.com/cssat/sprout-data-db-cron/tree/main/sql/refresh

Metadata

Metadata

Assignees

No one assigned

    Labels

    MaintenanceBehind-the-scenes improvements for security and longevity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions