How to get the size (MB) of a non-filesystem dataset?
Angels
Partner, Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer Posts: 3 Partner
Hello,
I would like to get the size in MB of a postgreSQL dataset, but I can't find the metric as it is in a filesystem managed dataset.
PostgreSQL metrics:
Filesystem managed metrics:
They are not in the Edit tab, where it is possible to add metrics and custom metrics.
PostgreSQL Edit Tab:
Filesystem managed Edit Tab:
Is it possible? If not, why?
Thanks in advance.
Regards
Best Answers
-
JordanB Dataiker, Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered Posts: 297 Dataiker
Hi @Angels
,As a workaround, you can use a SQL probe with a select statement to retrieve the size of the table.
select pg_size_pretty(pg_relation_size('"table_name"'));
Please let us know if you have any questions.
Thanks,
Jordan