Click here to Skip to main content
15,891,725 members
Home / Discussions / Database
   

Database

 
Questionsql server 2000 Pin
kulandaivel_mca200717-Dec-08 22:56
kulandaivel_mca200717-Dec-08 22:56 
AnswerRe: sql server 2000 Pin
Blue_Boy17-Dec-08 23:27
Blue_Boy17-Dec-08 23:27 
Questioneditor Stored procedure in MYSQL Pin
ptr_Electron17-Dec-08 21:44
ptr_Electron17-Dec-08 21:44 
AnswerRe: editor Stored procedure in MYSQL Pin
Wendelius18-Dec-08 9:03
mentorWendelius18-Dec-08 9:03 
GeneralExecution Plan Pin
Mycroft Holmes17-Dec-08 16:47
professionalMycroft Holmes17-Dec-08 16:47 
GeneralRe: Execution Plan Pin
Wendelius17-Dec-08 18:15
mentorWendelius17-Dec-08 18:15 
GeneralRe: Execution Plan Pin
Mycroft Holmes17-Dec-08 18:23
professionalMycroft Holmes17-Dec-08 18:23 
GeneralRe: Execution Plan Pin
Wendelius18-Dec-08 8:47
mentorWendelius18-Dec-08 8:47 
Mycroft Holmes wrote:
I was hoping for a quick confirmation


I guess I've been teaching and consulting for so many years that's it's quite impossible to get a quick or exact answer from me Smile | :)

Mycroft Holmes wrote:
each has a clustered index scan cost over 80%


I've noticed that the db engine is very eager to use clustered indexes and to perform horizontal tree scans on clustered indexes. There has been situations where simply replacing a clustered index with a nonclustered one has resulted to better performance. Especially if there are other index candidates or index joins can be used. It may be worth trying.

Mycroft Holmes wrote:
The query retuens 3.4m rows from a base table of 16m with lots of linkages


Have you measured and separated the execution time versus time to deliver the records. A large part of the wall time consumed may be used for transferring the data (execution plan doesn't show that). Also that's quite big amount of rows to handle in a procedure. Perhaps there could be ways to combine the queries or rearrange the logic somehow (purely guessing here).

The need to optimize rises from a bad design.My articles[^]

QuestionBuilt-In Functions Myth!!! Pin
Gamzun17-Dec-08 8:48
Gamzun17-Dec-08 8:48 
Questionstored procedure. [modified] Pin
Talsaniya Jayesh17-Dec-08 5:00
professionalTalsaniya Jayesh17-Dec-08 5:00 
AnswerRe: stored procedure. Pin
Wendelius17-Dec-08 6:01
mentorWendelius17-Dec-08 6:01 
QuestionStore Procedure parameter Pin
faizurrahman17-Dec-08 1:26
faizurrahman17-Dec-08 1:26 
AnswerRe: Store Procedure parameter Pin
Ashfield17-Dec-08 2:27
Ashfield17-Dec-08 2:27 
GeneralRe: Store Procedure parameter Pin
faizurrahman18-Dec-08 0:07
faizurrahman18-Dec-08 0:07 
GeneralRe: Store Procedure parameter Pin
Ashfield18-Dec-08 0:15
Ashfield18-Dec-08 0:15 
QuestionStupid INSERT question for PL-SQL Pin
Nostrom016-Dec-08 8:58
Nostrom016-Dec-08 8:58 
AnswerRe: Stupid INSERT question for PL-SQL Pin
Wendelius16-Dec-08 9:12
mentorWendelius16-Dec-08 9:12 
GeneralRe: Stupid INSERT question for PL-SQL Pin
Nostrom016-Dec-08 10:35
Nostrom016-Dec-08 10:35 
GeneralRe: Stupid INSERT question for PL-SQL Pin
Wendelius16-Dec-08 10:47
mentorWendelius16-Dec-08 10:47 
GeneralRe: Stupid INSERT question for PL-SQL Pin
Nostrom016-Dec-08 11:20
Nostrom016-Dec-08 11:20 
GeneralRe: Stupid INSERT question for PL-SQL Pin
Wendelius16-Dec-08 11:27
mentorWendelius16-Dec-08 11:27 
GeneralRe: Stupid INSERT question for PL-SQL Pin
Nostrom016-Dec-08 11:53
Nostrom016-Dec-08 11:53 
GeneralRe: Stupid INSERT question for PL-SQL Pin
Wendelius16-Dec-08 12:05
mentorWendelius16-Dec-08 12:05 
AnswerRe: Stupid INSERT question for PL-SQL Pin
Chris Meech16-Dec-08 10:56
Chris Meech16-Dec-08 10:56 
QuestionSelect After Update Pin
Sunset Towers16-Dec-08 3:54
Sunset Towers16-Dec-08 3:54 

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.