on 2019 Jan 29 9:25 AM
Hello, Team We need to provide estimated (average) number of transactions per minute on a specific DB for an integration company.
Is there a way to get this data out of SQL Anywhere server 16?
Thank you
Request clarification before answering.
Here's a wild guess: Use the database server properties for number of commits and rollbacks since the server has been started, such as
select cast(property('Commit') as bigint) as CommitCount, cast(property('Rlbk') as bigint) as RollbackCount, cast(datediff(minute, cast(property('StartTime') as datetime), current timestamp) as double) as ServerRuntimeInMinutes , (CommitCount + RollbackCount) / ServerRuntimeInMinutes as AverageTxnRatePerMinute
If you need that for a particular interval, just store the results at the start and end of the according interval and compare those.
Commits and rollbacks can also be counted per connection or per database with the same property names using the connection_property() resp. db_property() functions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
30 | |
10 | |
8 | |
8 | |
7 | |
7 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.