Is there a monitoring table available with the last-touch timestamp for a table?
Is it possible to somehow find out the last-touch time for a table in vertica, possibly via some kind of a monitor table? The use case I am trying to solve for is when using some "cache" type tables for reports which I want to linger while their being active, but if no query's touched the table for X amount of time, I want to have a garbage-collection procedure drop the table.
0
Comments
select max(epoch) from <table_name>;
But I am not sure if there is way to convert the epoch value to timestamp.
Hi,
I am looking to see last used (if possible select/insert/update) tables.
We have many Schemas and tables but alot of them are junk and not in used.
Does anyone have a script to identify or Show activity on Tables?
I am guessing I am not the first one
thanks,
Eyal
What I do to monitor something like this is i look at projection usage.
I don`t care about the table, what i care more are projections, because to many projections will make your life a hell.
Loading will be slow, purging will be slow, waste of space, how used is that projection in your workload and does it worth having an extra projection just to gain 1-2 sec on a 10 sec query ?! Also the TM is working to much when you have a lot of mouths to feed .
Here is SQL to make a report out of your Proj usage:
- you can create some views based on those queryes ot make them fixed.
- hope this helped.