Click here to Skip to main content
15,887,214 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
AnswerRe: Question on performance... Pin
Mycroft Holmes15-Oct-22 11:56
professionalMycroft Holmes15-Oct-22 11:56 
AnswerRe: Question on performance... Pin
Daniel Pfeffer15-Oct-22 15:12
professionalDaniel Pfeffer15-Oct-22 15:12 
GeneralRe: Question on performance... Pin
jmaida15-Oct-22 15:53
jmaida15-Oct-22 15:53 
GeneralRe: Question on performance... Pin
Daniel Pfeffer15-Oct-22 19:00
professionalDaniel Pfeffer15-Oct-22 19:00 
GeneralRe: Question on performance... Pin
Sander Rossel15-Oct-22 20:40
professionalSander Rossel15-Oct-22 20:40 
GeneralRe: Question on performance... Pin
Daniel Pfeffer15-Oct-22 23:07
professionalDaniel Pfeffer15-Oct-22 23:07 
GeneralRe: Question on performance... Pin
Jörgen Andersson16-Oct-22 20:48
professionalJörgen Andersson16-Oct-22 20:48 
GeneralRe: Question on performance... Pin
Matt Bond17-Oct-22 4:56
Matt Bond17-Oct-22 4:56 
A few other ideas:
* Check for index fragmentation. If it's high that will hurt performance. In SSMS, right click on Indexes and select either Rebuild or Reindex to see what the values are. Then OK to do that action.
* Even if you need 20 columns to make a unique index, then do it as a composite key. That will still perform better than you manually doing the check. Manual checks may also have race conditions between the check and the insert.
* When creating indexes, don't forget about included columns. These are columns that are not a part of the index, but are retrieved with it. It allows for your index to be small and fast, but you get the data you need faster.
* Use the Execution Plan in SSMS to see where your bottlenecks are on the database side. Sometimes it will also offer index suggestions.

Enjoy!
Bond
Keep all things as simple as possible, but no simpler. -said someone, somewhere

AnswerRe: Question on performance... Pin
RickZeeland15-Oct-22 20:12
mveRickZeeland15-Oct-22 20:12 
GeneralRe: Question on performance... Pin
Sander Rossel15-Oct-22 21:10
professionalSander Rossel15-Oct-22 21:10 
GeneralRe: Question on performance... Pin
RickZeeland15-Oct-22 21:52
mveRickZeeland15-Oct-22 21:52 
AnswerRe: Question on performance... Pin
charlieg16-Oct-22 2:09
charlieg16-Oct-22 2:09 
GeneralRe: Question on performance... Pin
Sander Rossel16-Oct-22 3:57
professionalSander Rossel16-Oct-22 3:57 
GeneralRe: Question on performance... Pin
Jörgen Andersson16-Oct-22 21:11
professionalJörgen Andersson16-Oct-22 21:11 
GeneralRe: Question on performance... Pin
Sander Rossel16-Oct-22 23:23
professionalSander Rossel16-Oct-22 23:23 
GeneralRe: Question on performance... Pin
Jörgen Andersson17-Oct-22 0:43
professionalJörgen Andersson17-Oct-22 0:43 
GeneralRe: Question on performance... Pin
Sander Rossel17-Oct-22 9:49
professionalSander Rossel17-Oct-22 9:49 
GeneralRe: Question on performance... Pin
Ian Fitzgerald19-Oct-22 7:32
Ian Fitzgerald19-Oct-22 7:32 
GeneralRe: Question on performance... Pin
Sander Rossel20-Oct-22 1:09
professionalSander Rossel20-Oct-22 1:09 
GeneralRe: Question on performance... Pin
harold aptroot16-Oct-22 2:49
harold aptroot16-Oct-22 2:49 
GeneralRe: Question on performance... Pin
Sander Rossel16-Oct-22 4:03
professionalSander Rossel16-Oct-22 4:03 
AnswerRe: Question on performance... Pin
Marc Clifton16-Oct-22 4:05
mvaMarc Clifton16-Oct-22 4:05 
GeneralRe: Question on performance... Pin
Sander Rossel16-Oct-22 8:22
professionalSander Rossel16-Oct-22 8:22 
GeneralRe: Question on performance... Pin
Marc Clifton17-Oct-22 5:43
mvaMarc Clifton17-Oct-22 5:43 
AnswerRe: Question on performance... Pin
raddevus16-Oct-22 5:13
mvaraddevus16-Oct-22 5:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.