Reputation: 472
I want to get the query plan in Exasol database to check the total execution time, memory and cpu usage. Profiling in Exasol is so complex and difficult to understand.
explain analyze
in PostgreSQL or any other simple way? Upvotes: 2
Views: 1889
Reputation: 2209
In Exasol, you can use set profile='ON'
, this will record your query's steps (plus CPU, Memory, Output Records etc.) in exa_user_profile_last_day
table.
For more details, read this Exasol user guide - Profiling section
Upvotes: 0
Reputation: 1
Maybe it will be useful for someone who will try to use EXASOL Explain. There is a script with one missed field in select statement in exasol-explain/scripts/sqlprofile.lua, after temp_db_ram_peak field should follow:
max(PERSISTENT_DB_RAM_PEAK) as PERSISTENT_DB_RAM_PEAK
Otherwise "explain" and "explain_this" return an error "incorrect numbers of result column"
Upvotes: 0
Reputation: 7119
You can check the EXASOL User Manual about profiling a query. I agree it's a bit cumbersome :)
Or you can use the scripts I wrote to have an explain
like command: exasol-explain
Upvotes: 1