niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Sybase
sp_help taking 20 seconds?
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
John Brock
*nix forums beginner


Joined: 08 Jun 2005
Posts: 13

PostPosted: Wed Jun 21, 2006 10:06 pm    Post subject: sp_help taking 20 seconds? Reply with quote

My program accesses a Development database when I am developing,
and a Production database when in actual use. The Development
database is always lightning fast, but occasionally the Production
database can be excruciatingly slow. I attributed this partially
to contention, since other production jobs can be hitting the same
server at the same time as mine, but also perhaps to the fact that
my program wasn't always optimized for speed. (I never felt the
need to do so when writing it, since the Development database was
always fast!).

Recently though I noticed in one slow period that sp_help would
repeatedly hang for a full 20 seconds before listing the 50 or so
tables in the Production database. Clearly that can't be the fault
of our coding!

So can this ever be normal, even on a heavily stressed server? I'm
thinking that this might be evidence of some sort of configuration
problem, and if there is reason to believe this is the case I could
go to the database administrators and try to get the problem
resolved. Otherwise I'll just have to try to optimize my program
further, or see if I can get the Production database moved to a
different server.
--
John Brock
jbrock@panix.com
Back to top
bret@sybase.com
*nix forums addict


Joined: 24 May 2005
Posts: 66

PostPosted: Thu Jun 22, 2006 5:31 pm    Post subject: Re: sp_help taking 20 seconds? Reply with quote

Slow system stored procedures is often a sign of contention in tempdb
(since they often use temp tables). If that seems to be the
case, you might look into using the new multiple tempdb feature to
offload some of the tempdb processing.

-bret

John Brock wrote:
Quote:
My program accesses a Development database when I am developing,
and a Production database when in actual use. The Development
database is always lightning fast, but occasionally the Production
database can be excruciatingly slow. I attributed this partially
to contention, since other production jobs can be hitting the same
server at the same time as mine, but also perhaps to the fact that
my program wasn't always optimized for speed. (I never felt the
need to do so when writing it, since the Development database was
always fast!).

Recently though I noticed in one slow period that sp_help would
repeatedly hang for a full 20 seconds before listing the 50 or so
tables in the Production database. Clearly that can't be the fault
of our coding!

So can this ever be normal, even on a heavily stressed server? I'm
thinking that this might be evidence of some sort of configuration
problem, and if there is reason to believe this is the case I could
go to the database administrators and try to get the problem
resolved. Otherwise I'll just have to try to optimize my program
further, or see if I can get the Production database moved to a
different server.
--
John Brock
jbrock@panix.com
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Fri Nov 21, 2008 6:38 am | All times are GMT
navigation Forum index » Databases » Sybase
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts how to display time of file in seconds newbie Solaris 4 Wed Jul 19, 2006 7:09 am
No new posts process taking long time to dump core techimadhu C 4 Wed Jul 19, 2006 6:52 am
No new posts Correct way of taking in two integers Steve Carter C 4 Wed Jul 19, 2006 1:46 am
No new posts function taking a long time. any options o speed it up. Rhys Stewart PostgreSQL 2 Tue Jul 18, 2006 1:11 pm
No new posts SQL Question, taking differences between sum of columns Anil G Oracle 5 Wed Jul 12, 2006 4:13 am

Php Scripts | Virtual Pets Blog | Mortgage | Babb Fest | Loans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.3727s ][ Queries: 16 (0.2641s) ][ GZIP on - Debug on ]