Unix Technical Forum

Stored Procedure Performance

This is a discussion on Stored Procedure Performance within the Informix forums, part of the Database Server Software category; --> I've got a stored procedure which is called from a VB application on the clients machine. This SPL takes ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 07:05 PM
Joe Pacelli
 
Posts: n/a
Default Stored Procedure Performance

I've got a stored procedure which is called from a VB application on
the clients machine. This SPL takes about 2-3 seconds to run. I can
run this SPL over and over and recieve 2-3 second results. Then all of
sudden it will go to 40+ seconds and stay this way for 1-2 minutes. It
will then eventually return back to the normal 2-3 seconds.
The client has 2 databases on this instance. One a live and one a
test. The live has no problems and does not see this issue. While
running this on test I've ran onstat and found no exclusive locks, yet
it just sits there. There is no one else hitting this test base other
than myself.

Any ideas of what to look for.

I've put set explain with stored procedure and it revealed nothing.

Thanks,
Joe P
Senior Software Engineer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-19-2008, 07:05 PM
John Carlson
 
Posts: n/a
Default Re: Stored Procedure Performance

On 1 Jul 2003 09:22:16 -0700, joepacelli@earthlink.net (Joe Pacelli)
wrote:

What are your checkpoint durations?

>I've got a stored procedure which is called from a VB application on
>the clients machine. This SPL takes about 2-3 seconds to run. I can
>run this SPL over and over and recieve 2-3 second results. Then all of
>sudden it will go to 40+ seconds and stay this way for 1-2 minutes. It
>will then eventually return back to the normal 2-3 seconds.
>The client has 2 databases on this instance. One a live and one a
>test. The live has no problems and does not see this issue. While
>running this on test I've ran onstat and found no exclusive locks, yet
>it just sits there. There is no one else hitting this test base other
>than myself.
>
>Any ideas of what to look for.
>
>I've put set explain with stored procedure and it revealed nothing.
>
>Thanks,
>Joe P
>Senior Software Engineer


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-19-2008, 07:05 PM
Paul Watson
 
Posts: n/a
Default Re: Stored Procedure Performance

Look at checkpoints [Most likely]
Look at the 'set wait mode' and locking issues [you seemed to have
checked]

Set explain is only relevant when the SPL is created.

Joe Pacelli wrote:
>
> I've got a stored procedure which is called from a VB application on
> the clients machine. This SPL takes about 2-3 seconds to run. I can
> run this SPL over and over and recieve 2-3 second results. Then all of
> sudden it will go to 40+ seconds and stay this way for 1-2 minutes. It
> will then eventually return back to the normal 2-3 seconds.
> The client has 2 databases on this instance. One a live and one a
> test. The live has no problems and does not see this issue. While
> running this on test I've ran onstat and found no exclusive locks, yet
> it just sits there. There is no one else hitting this test base other
> than myself.
>
> Any ideas of what to look for.
>
> I've put set explain with stored procedure and it revealed nothing.
>
> Thanks,
> Joe P
> Senior Software Engineer


--
Paul Watson #
Oninit Ltd # Growing old is mandatory
Tel: +44 1436 672201 # Growing up is optional
Fax: +44 1436 678693 #
Mob: +44 7818 003457 #
www.oninit.com #
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:01 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com