Subject | Re: What could be slowing our database down? |
---|---|
Author | Michael Vilhelmsen |
Post date | 2003-04-23T11:14:10Z |
>clean up
> I've always thought of "sweep" as the servers rather rude way to
> when you force dirty applications on it for some time or you fail todo some
> standard maintenance on the database in a routine, timely fashion.broken)
>
> I disable sweep (it maybe a left over from vesion 5.5 when sweep was
> but i check the server stats from time to time. If the applicationis clean
> and the computers running it are stable, then sweep may never be calledWe have also disabled the sweep function.
> anyway, even if it's set at 5,000.
Also we take a look at the DB stats every once in a while.
The transactions are always close top each other (at least when all
users log out at night time).
We have made a small rutine to sweep the DB every night at 01.00.
This normally takes 2 minutes.
But once in a while the users have aborted a rather big update
(rollback) which has made the gab between transactions rather big.
And here the sweep takes over.
>I call
> I do a backup and restore about every six months. This is after what
> good, healthy, moderately heavy user traffic by up to 15-20 clients8 hours
> a day 5 days a week on a database of about 250Mb. I might evenoverlook a
> restore til 8 or 9 months.We actually never do a backup restore unless something crashes.
>I can
>
> > > >Could the size of the table (~1M recs) significantly affect the
> > speed of
> > > >returning records read by index?
> > >
> > > It could. How often do they run SET STATS to rebalance the indexes?
> >
> > Is this something that should be done every once in a while ?
> > What does it do
> >
>
> I have an adminstrative button in my app which rebuilds the indexes.
> set it off when I like. I have never really noticed a difference in apprunning
> performance after such a rebuild.
> If you have the correct indexes already, it will perform well. I was
> one application for about 2 years. We did an upgrade - both hardware andinstalling all
> software and I rebuilt the database (not completely). After
> the new stuff, It was noticeably faster - everyone was pleased. Thenone day
> about 3 months later, I was poking around and noticed that an indexI was
> used to seeing wasn't there (my fault). One index on one table. I put itindexes.
> in.. and boy did it make a difference. I was asked by the users what had
> happened. they all noticed. They never notice when I rebuild the
This we also experienced.
We have a lot of indexes in oour DB.
It works well, and noone ever notices anything.
Except the first time, when I created some more indexes, they all also
said it went faster.
Thank you
Michael
>
>
> Alan