dbTalk Databases Forums  

detecting table scans

comp.databases.sybase comp.databases.sybase


Discuss detecting table scans in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Matthias Apitz
 
Posts: n/a

Default detecting table scans - 11-21-2008 , 06:26 AM







Hello,

In a huge complex Sybase application written in ESQL/C and JDBC with hundreds
of tables and some hundred concurrent connects to ASE 12.5.4 we're facing situations
in which a simple FETCH from a small table, which normally takes 5-6 ms, takes
from time to time 10-20 ms, or INSERT lasts even 3 secs; it is unclear what is
causing this. One of our hypothesis is that the application in some areas, sometimes,
is falling into full table scans, and the above mentioned long INSERT is victim of such
an event of other processes running at the same time.

My question is: Is there some kind of logging I could switch on (for example by a trace
flag) which will let ASE log all such table scans?

TIA

matthias
--
http://www.unixarea.de/

Reply With Quote
  #2  
Old   
Bret_Halford
 
Posts: n/a

Default Re: detecting table scans - 11-21-2008 , 09:13 AM






On Nov 21, 5:26*am, Matthias Apitz <g... (AT) UnixArea (DOT) de> wrote:
Quote:
Hello,

In a huge complex Sybase application written in ESQL/C and JDBC with hundreds
of tables and some hundred concurrent connects to ASE 12.5.4 we're facingsituations
in which a simple FETCH from a small table, which normally takes 5-6 ms, takes
from time to time 10-20 ms, or INSERT lasts even 3 secs; it is unclear what is
causing this. One of our hypothesis is that the application in some areas, sometimes,
is falling into full table scans, and the above mentioned long INSERT is victim of such
an event of other processes running at the same time.

My question is: Is there some kind of logging I could switch on (for example by a trace
flag) which will let ASE log all such table scans?

TIA

* * * * matthias
--http://www.unixarea.de/
Perhaps the MDA monitoring table monSysPlanText in conjuntion with
monSysSQLText?

-bret


Reply With Quote
  #3  
Old   
Bret_Halford
 
Posts: n/a

Default Re: detecting table scans - 11-21-2008 , 09:13 AM



On Nov 21, 5:26*am, Matthias Apitz <g... (AT) UnixArea (DOT) de> wrote:
Quote:
Hello,

In a huge complex Sybase application written in ESQL/C and JDBC with hundreds
of tables and some hundred concurrent connects to ASE 12.5.4 we're facingsituations
in which a simple FETCH from a small table, which normally takes 5-6 ms, takes
from time to time 10-20 ms, or INSERT lasts even 3 secs; it is unclear what is
causing this. One of our hypothesis is that the application in some areas, sometimes,
is falling into full table scans, and the above mentioned long INSERT is victim of such
an event of other processes running at the same time.

My question is: Is there some kind of logging I could switch on (for example by a trace
flag) which will let ASE log all such table scans?

TIA

* * * * matthias
--http://www.unixarea.de/
Perhaps the MDA monitoring table monSysPlanText in conjuntion with
monSysSQLText?

-bret


Reply With Quote
  #4  
Old   
Bret_Halford
 
Posts: n/a

Default Re: detecting table scans - 11-21-2008 , 09:13 AM



On Nov 21, 5:26*am, Matthias Apitz <g... (AT) UnixArea (DOT) de> wrote:
Quote:
Hello,

In a huge complex Sybase application written in ESQL/C and JDBC with hundreds
of tables and some hundred concurrent connects to ASE 12.5.4 we're facingsituations
in which a simple FETCH from a small table, which normally takes 5-6 ms, takes
from time to time 10-20 ms, or INSERT lasts even 3 secs; it is unclear what is
causing this. One of our hypothesis is that the application in some areas, sometimes,
is falling into full table scans, and the above mentioned long INSERT is victim of such
an event of other processes running at the same time.

My question is: Is there some kind of logging I could switch on (for example by a trace
flag) which will let ASE log all such table scans?

TIA

* * * * matthias
--http://www.unixarea.de/
Perhaps the MDA monitoring table monSysPlanText in conjuntion with
monSysSQLText?

-bret


Reply With Quote
  #5  
Old   
Bret_Halford
 
Posts: n/a

Default Re: detecting table scans - 11-21-2008 , 09:13 AM



On Nov 21, 5:26*am, Matthias Apitz <g... (AT) UnixArea (DOT) de> wrote:
Quote:
Hello,

In a huge complex Sybase application written in ESQL/C and JDBC with hundreds
of tables and some hundred concurrent connects to ASE 12.5.4 we're facingsituations
in which a simple FETCH from a small table, which normally takes 5-6 ms, takes
from time to time 10-20 ms, or INSERT lasts even 3 secs; it is unclear what is
causing this. One of our hypothesis is that the application in some areas, sometimes,
is falling into full table scans, and the above mentioned long INSERT is victim of such
an event of other processes running at the same time.

My question is: Is there some kind of logging I could switch on (for example by a trace
flag) which will let ASE log all such table scans?

TIA

* * * * matthias
--http://www.unixarea.de/
Perhaps the MDA monitoring table monSysPlanText in conjuntion with
monSysSQLText?

-bret


Reply With Quote
  #6  
Old   
Bret_Halford
 
Posts: n/a

Default Re: detecting table scans - 11-21-2008 , 09:13 AM



On Nov 21, 5:26*am, Matthias Apitz <g... (AT) UnixArea (DOT) de> wrote:
Quote:
Hello,

In a huge complex Sybase application written in ESQL/C and JDBC with hundreds
of tables and some hundred concurrent connects to ASE 12.5.4 we're facingsituations
in which a simple FETCH from a small table, which normally takes 5-6 ms, takes
from time to time 10-20 ms, or INSERT lasts even 3 secs; it is unclear what is
causing this. One of our hypothesis is that the application in some areas, sometimes,
is falling into full table scans, and the above mentioned long INSERT is victim of such
an event of other processes running at the same time.

My question is: Is there some kind of logging I could switch on (for example by a trace
flag) which will let ASE log all such table scans?

TIA

* * * * matthias
--http://www.unixarea.de/
Perhaps the MDA monitoring table monSysPlanText in conjuntion with
monSysSQLText?

-bret


Reply With Quote
  #7  
Old   
Bret_Halford
 
Posts: n/a

Default Re: detecting table scans - 11-21-2008 , 09:13 AM



On Nov 21, 5:26*am, Matthias Apitz <g... (AT) UnixArea (DOT) de> wrote:
Quote:
Hello,

In a huge complex Sybase application written in ESQL/C and JDBC with hundreds
of tables and some hundred concurrent connects to ASE 12.5.4 we're facingsituations
in which a simple FETCH from a small table, which normally takes 5-6 ms, takes
from time to time 10-20 ms, or INSERT lasts even 3 secs; it is unclear what is
causing this. One of our hypothesis is that the application in some areas, sometimes,
is falling into full table scans, and the above mentioned long INSERT is victim of such
an event of other processes running at the same time.

My question is: Is there some kind of logging I could switch on (for example by a trace
flag) which will let ASE log all such table scans?

TIA

* * * * matthias
--http://www.unixarea.de/
Perhaps the MDA monitoring table monSysPlanText in conjuntion with
monSysSQLText?

-bret


Reply With Quote
  #8  
Old   
Bret_Halford
 
Posts: n/a

Default Re: detecting table scans - 11-21-2008 , 09:13 AM



On Nov 21, 5:26*am, Matthias Apitz <g... (AT) UnixArea (DOT) de> wrote:
Quote:
Hello,

In a huge complex Sybase application written in ESQL/C and JDBC with hundreds
of tables and some hundred concurrent connects to ASE 12.5.4 we're facingsituations
in which a simple FETCH from a small table, which normally takes 5-6 ms, takes
from time to time 10-20 ms, or INSERT lasts even 3 secs; it is unclear what is
causing this. One of our hypothesis is that the application in some areas, sometimes,
is falling into full table scans, and the above mentioned long INSERT is victim of such
an event of other processes running at the same time.

My question is: Is there some kind of logging I could switch on (for example by a trace
flag) which will let ASE log all such table scans?

TIA

* * * * matthias
--http://www.unixarea.de/
Perhaps the MDA monitoring table monSysPlanText in conjuntion with
monSysSQLText?

-bret


Reply With Quote
  #9  
Old   
Bret_Halford
 
Posts: n/a

Default Re: detecting table scans - 11-21-2008 , 09:13 AM



On Nov 21, 5:26*am, Matthias Apitz <g... (AT) UnixArea (DOT) de> wrote:
Quote:
Hello,

In a huge complex Sybase application written in ESQL/C and JDBC with hundreds
of tables and some hundred concurrent connects to ASE 12.5.4 we're facingsituations
in which a simple FETCH from a small table, which normally takes 5-6 ms, takes
from time to time 10-20 ms, or INSERT lasts even 3 secs; it is unclear what is
causing this. One of our hypothesis is that the application in some areas, sometimes,
is falling into full table scans, and the above mentioned long INSERT is victim of such
an event of other processes running at the same time.

My question is: Is there some kind of logging I could switch on (for example by a trace
flag) which will let ASE log all such table scans?

TIA

* * * * matthias
--http://www.unixarea.de/
Perhaps the MDA monitoring table monSysPlanText in conjuntion with
monSysSQLText?

-bret


Reply With Quote
Reply




Thread Tools
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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.