![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, Is there an easy way to determine the rate of change for table? I realize that I could do periodic select count(*) from XXX, but that would only determine the size of the table. It would ignore updates. What I'd really like to do would be able to determine the number of non-read operations over a table so that I can determine the rate of change for that table. Thanks for any help.. |
#3
| |||
| |||
|
|
Rate of change implies count of changes per unit of time. The way you could do this is by having a change table with a count column and a datetme column. An insert trigger on the data table will get the current time, and if it's less than one minute later than the latest datetime stored in the change table, the trigger incrments the count column of that latest change table column with the count of the currently changing rows, otherwise the trigger makes a new row in the change table with the current time and a count equal to the current count of changed rows in the data table. Joe Weinstein at BEA Madison Pruet wrote: Hi, Is there an easy way to determine the rate of change for table? I realize that I could do periodic select count(*) from XXX, but that would only determine the size of the table. It would ignore updates. What I'd really like to do would be able to determine the number of non-read operations over a table so that I can determine the rate of change for that table. Thanks for any help.. |
#4
| |||
| |||
|
|
Thanks. I'd prefer to find some way to do this without having to impact user application performance, so would rather avoid having triggers. "Joseph Weinstein" <joe.remove_this (AT) bea (DOT) com.remove_this> wrote in message news:3EFDE0B5.9B3AB7DD (AT) bea (DOT) com.remove_this... Rate of change implies count of changes per unit of time. The way you could do this is by having a change table with a count column and a datetme column. An insert trigger on the data table will get the current time, and if it's less than one minute later than the latest datetime stored in the change table, the trigger incrments the count column of that latest change table column with the count of the currently changing rows, otherwise the trigger makes a new row in the change table with the current time and a count equal to the current count of changed rows in the data table. Joe Weinstein at BEA Madison Pruet wrote: Hi, Is there an easy way to determine the rate of change for table? I realize that I could do periodic select count(*) from XXX, but that would only determine the size of the table. It would ignore updates. What I'd really like to do would be able to determine the number of non-read operations over a table so that I can determine the rate of change for that table. Thanks for any help.. If your using 12.5.0.3 or later, you could use the new mon tables..... |
#5
| |||
| |||
|
|
Is there an easy way to determine the rate of change for table? I realize that I could do periodic select count(*) from XXX, but that would only determine the size of the table. It would ignore updates. What I'd really like to do would be able to determine the number of non-read operations over a table so that I can determine the rate of change for that table. |
![]() |
| Thread Tools | |
| Display Modes | |
| |