Jump to content

Recommended Posts

Posted (edited)

Important point - SQL Express edition doesn't have the SQL Agent and SSIS. Both of these are needed for maintenance plans.

 

It's possible to script this as TSQL script which can be run on the server or remotely, but this wouldn't be as trivial to set up.

Edited by jinnantonnixx
Posted

I am wondering if we could get an Ok you can do this from @PhilNeal ?

 

The script does sound like it would be helpful - but I really don't want to be doing anything with the sims database without capita oking it first.... (yes I'm a chicken... buck buck) :D

  • 2 weeks later...
Posted
I'll look in to that, don't suppose there's a guide anywhere? Not a part of the system I use but the timetabler will be very appreciative if it helps!

 

I totally missed this reply! Sorry. :(

 

LA support team ran a patch or something to fix it for us.

Posted
We also seem plagued by this , would also be curious to hear if the reindexing management plan as kindly posted by jinnantonnixx helps! Tempted to bite the bullet and give this a go anyway :)

 

Well, before the reindexing plan was in place, SIMS reporting was like a sloth with gout. After the reindexing plan it's reasonable. Going on this, I'd say it's a worthwhile measure. If you do it, post back with your result either way.

Posted
I am wondering if we could get an Ok you can do this from @PhilNeal ?

 

The script does sound like it would be helpful - but I really don't want to be doing anything with the sims database without capita oking it first.... (yes I'm a chicken... buck buck) :D

 

He won't. Reindexing is a most basic DBA task, it's not rocket science to do - however it assumes a number of things - like it's done out of hours, that you have a correct backup before you start, that if your system is in a poor state at the start, you have a pragmatic approach to tackling it - ie not doing everything at once. You might find that your log file grows to the point that it fills your disc, so SQL won't start, or if you've been silly enough to put SQL onto your OS drive, stop your computer from booting.

 

The safe option is to hire a DBA to do it for you.

 

Performance wise it really depends. If it's in a pretty poor state you'll is a absolute massive increase, well worth any risk.

Posted
The reindexing patch also fixed the issue (somewhat) for myself quite a while back. However SIMS Discover is starting to take a very long time to do transfers again....so question is should we be running this patch every 6-12 months or something to keep things fast?
Posted
Hi just to report back, did this on our SIMS db last night and for example on a small report I ran before took around 4 minutes and 1 minutes 30 seconds after reindexing.

 

Thankyou!

 

Thats good enough for me!

 

Will give it a go now.

Posted
Hi just to report back, did this on our SIMS db last night and for example on a small report I ran before took around 4 minutes and 1 minutes 30 seconds after reindexing.

 

Thankyou!

 

Did you reindex (with the SIMS patch) or rebuild (with the maintenance plan)?

Posted
In the 'Define Reuild Index task' window, choose your SIMS database(s) to reindex.

For 'object', choose 'tables and views'

On the same window, check the box that says 'sort results in tempdb', keep the box that says 'keep index online...' unchecked.

 

I'm using SQL server 2012 and don't have the 'sort results in tempdb' check box or 'keep index online'. Will that make any difference?

 

sims-reindex.jpg

Posted
Well my success was short lived, 3 hours in and performance seems to have taken a nose dive when the admin girls are running big reports, they were all running pretty speedily first thing, meh! Server looks to be ticking over not doing alot, anyone have any advice on any tell tale signs it's a server performance issue?
Posted
You've chosen the 'Reorganise Index' task. Try the 'Rebuild Index' task instead. This will ensure that the query optimiser has the best stats.

 

:drunken_smilie: Thanks, I've set it up properly now :)

  • 1 month later...
Posted

My SIMS manager had a huge great big go at Capita regarding a load of cases that werent being followed up, one of them being the speed issue.

 

They have connected through and have setup a trace report through SQL profiler and have said that they will send it off to the developers to see if there are any issues, I dont know if its worth anyone else pushing for one of these, if the issue appears to be the same then they might do something about it.

  • 1 month later...
Posted
Apologies for raising this thread from the dead, but I thought it as worth mentioning that our simple reports (Name, reg, address block, previous school for one year group) would time out and not run at all. Ran the 'Rebuild index' as stated by @jinnantonnixx and they now run within a few minutes. Still warns the report will take a long time to run, but at least I'm getting the reports now!
Posted

Awesome response Mic, really great advice on how to maximise services and performance of servers. I am sure most elements can be used as many setups I have worked with have a SQL Server setup that is NOT dedicated to just SIMS. Was reading down your recomendation list and I remember doing about half of those things (in particular spreading out the physical location of the default and required databases, and the log file setup) when I was still in schools. Really really useful.

 

It would be great if a Capita bod could comment on things that should NOT be done from this list, due to SIMS not being able to cope with it, and/or offering alternatives.

Posted

Thanks Graham, absolutely agree; if someone from Capita wants to pop along and comment on things which they would disagree with, I'll Subtitle that section of the post with a note which says "don't apply on an instance of SIMS as capita do not recommend this"; that way it remains relevant for anyone with a SQL instance of something else running, but doesn't hinder anyone with a SIMS install.

I've already had a PM thanking me which is nice, as I said to him if it helps one school to get information out to those who need it faster than previously, and kills some earache for our colleagues in the server rooms, it was worth the post :)

 

- - - Updated - - -

 

On another note, I have no EduLime, so I won't waste a Corona.

  • Thanks 1
Posted

This is generally true. As I said though, I have no idea about the database, having never used it let alone written it, I shan't cast aspersions. It's also quite difficult to build a database for this kind of use in a generic performance tuned manner as they perform such a vast array of tasks and each school will use each bit of it to a different extent. So it's about finding the best balance across the board.

But hopefully regardless of the db design and structure, the best practice principles in my post will apply to anything; if you buy a 400bhp car and put £50 a corner rubber on it, you're coming off at the next roundabout. At least you are as soon as you start to push it :)

Posted
It's also quite difficult to build a database for this kind of use in a generic performance tuned manner as they perform such a vast array of tasks and each school will use each bit of it to a different extent. So it's about finding the best balance across the board.

While it is difficult to some degree, I would hope that suppliers employ people who have skill, knowledge and experience enough that what is difficult for most, is fairly mundane for them. For a supplier to turn round and say "your DB is slow because your use is 'unusual'" sounds like an excuse. Their job is to provide a product that copes with the demands of their customers - even 'unusual' demands.

 

So when you have :

 

"Hi just to report back, did this on our SIMS db last night and for example on a small report I ran before took around 4 minutes and 1 minutes 30 seconds after reindexing."

 

The fact that a "small report" is taking a minute and a half not seconds, should ring alarm bells. Not that it is not possible to ask an SQL database questions which involve scanning hundreds of millions of records to collect and aggregate data to give the answer, but in a school, it should be ... 'unusual'. And in these days of multicore multi threaded processors capable of executing 10^9 instructions per second, and with enough RAM to hold the entirety of the data in memory, mundane everyday queries should be dispatched by the DB server in fractions of a second.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...