Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Sybase > Performance issue with sysaudit table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-12-08, 03:50
munish.narula munish.narula is offline
Registered User
 
Join Date: Jun 2008
Posts: 1
Performance issue with sysaudit table

Hi,
I have configured 8 audit tables on sybsecurity database and switched on auditing. Each table can have upto 15 million records.

I am fetching records from these tables in a batch of 10000 using a simple query.
select top 10000 from sysaudits_01 where eventtime >= t1 and eventtime < t2

The time taken for each iteration keeps on increasing as we move deeper into the table. Below are some stats.

Time taken for iteration 1: 31
Time taken for iteration 2: 0
Time taken for iteration 3: 0
Time taken for iteration 4: 235
Time taken for iteration 5: 406
....
....
....
Time taken for iteration 50: 5203
Time taken for iteration 51: 5610
Time taken for iteration 52: 6453
Time taken for iteration 53: 5937
Time taken for iteration 54: 5922
Time taken for iteration 55: 6312
....
....
....
Time taken for iteration 87: 10906
Time taken for iteration 88: 10281
Time taken for iteration 89: 10703
Time taken for iteration 90: 10711
Time taken for iteration 91: 10360
Time taken for iteration 92: 11188

Can you suggest me a way by which i can improve on the timings for the query. I tried creating index on the table but sybase does not allow me to do so as it is a system table. Is there any other way of tuning the query.
Reply With Quote
  #2 (permalink)  
Old 06-14-08, 05:40
trvishi trvishi is offline
Registered User
 
Join Date: Sep 2003
Location: Switzerland
Posts: 370
You probably need a mechanism to archive your audit records periodically to a different dba database and flush out the audit database. If you do that you have the option of creating indexes etc.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On