Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

detecting table scans

 
   Database Help (Home) -> Sybase RSS
Next:  Access freezes when running query against 85000 r..  
Author Message
Matthias Apitz

External


Since: May 30, 2008
Posts: 2



(Msg. 1) Posted: Fri Nov 21, 2008 8:25 am
Post subject: detecting table scans
Archived from groups: comp>databases>sybase (more info?)

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/

 >> Stay informed about: detecting table scans 
Back to top
Login to vote
Bret_Halford

External


Since: Jul 14, 2008
Posts: 10



(Msg. 2) Posted: Fri Nov 21, 2008 8:25 am
Post subject: Re: detecting table scans [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Nov 21, 5:26 am, Matthias Apitz wrote:
> 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/

Perhaps the MDA monitoring table monSysPlanText in conjuntion with
monSysSQLText?

-bret

 >> Stay informed about: detecting table scans 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
A way to tell a table's been altered? - Is there a way to tell a table's been altered? sysobjects.crdate doesn't change and there seem to be no date fields in syscolumns. Is there someplace else to look?

how to find rowsize of a table in ASE 12.5 - I am writing a script that would generate database and server related information for some reporting purpose. I want to know how do I get the following information in ASE12.5 (1) For a table; (a) Average Rowlength of the table (b) Patition detail of the...

table + primary key - create table au_clients ( id numeric(10,0) not null, name varchar(255) not null, constraint au_clients_pk primary key (id)) go i want that id is filled automatically. How to do it?

how to do table + primary key - create table au_clients ( id numeric(10,0) identity, name varchar(255) not null, constraint au_clients_pk primary key (id)) with identity_gap = 10 go how to do that primary key begins from 0?

to add table with primary key - create table au_clients ( id numeric(10,0) not null, name varchar(255) not null, constraint au_clients_pk primary key (id)) with identity_gap = 10 go /* default users */ insert into au_clients (name) value...
   Database Help (Home) -> Sybase All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]