Click here to Skip to main content
15,913,610 members
Home / Discussions / Database
   

Database

 
GeneralSync mobile with Oracle Pin
Richard Jones16-Aug-04 7:10
Richard Jones16-Aug-04 7:10 
GeneralConnect to oracleDB Pin
DuckFace16-Aug-04 0:43
DuckFace16-Aug-04 0:43 
GeneralRe: Connect to oracleDB Pin
Michael P Butler16-Aug-04 5:52
Michael P Butler16-Aug-04 5:52 
GeneralRe: Connect to oracleDB Pin
DuckFace17-Aug-04 1:46
DuckFace17-Aug-04 1:46 
QuestionIs ADO thread safe ? Pin
Hesham Amin14-Aug-04 19:39
Hesham Amin14-Aug-04 19:39 
AnswerRe: Is ADO thread safe ? Pin
Mike Dimmick18-Aug-04 3:03
Mike Dimmick18-Aug-04 3:03 
GeneralRe: Is ADO thread safe ? Pin
Hesham Amin18-Aug-04 7:14
Hesham Amin18-Aug-04 7:14 
GeneralSQL Query Performance question Pin
brdavid14-Aug-04 4:43
brdavid14-Aug-04 4:43 
I have the following query
<br />
SELECT *<br />
FROM (((((SK_SKILLSINAGES AS sia LEFT JOIN SK_SKILLS AS s ON (sia.SkillCode = s.SkillCode) OR (sia.SkillCode = s.ParentSkillCode AND sia.SubSkillCode = s.SkillCode)) INNER JOIN SK_CATEGORY AS c ON sia.CategoryCode = c.CategoryCode) INNER JOIN SK_CATEGORYGROUPS AS cg ON (sia.GroupCode = cg.GroupCode) AND (cg.GroupCode = c.GroupCode)) INNER JOIN AG_AGESINERAS AS ae ON sia.AgeCode = ae.AgeCode) INNER JOIN AG_ERA AS e ON ae.EraCode = e.EraCode) INNER JOIN PR_DEVELOPMENTPOINTS AS pd ON (sia.CategoryCode = pd.CategoryCode) AND (sia.GroupCode = pd.GroupCode)<br />
WHERE ( (sia.SubSkillCode Is Null AND s.ParentSkillCode Is Null) OR (sia.SubSkillCode Is Not Null AND s.ParentSkillCode Is Not Null) AND  sia.CategoryCode = c.CategoryCode AND sia.GroupCode = cg.GroupCode AND sia.AgeCode = ae.AgeCode) AND ae.Description = 'Middle Ages' AND e.Description = 'Rolemaster' AND pd.ProfessionCode = 'ANIMIST'<br />
ORDER BY sia.AgeCode, sia.GroupCode, sia.CategoryCode, sia.SkillCode, sia.SubSkillCode;<br />

I have created an index for each of the fields that are being joined and have created an multiple field index for the sort criteria in SK_SKILLSINAGES however this query still takes a long time to load; around ten seconds. If I remove the ORDER BY sort criteria the query is much much faster. Might I be forgetting something crucial that could help speed up this query. It all seems dependant on the sort.

Thanks!
GeneralRe: SQL Query Performance question Pin
Colin Angus Mackay15-Aug-04 10:26
Colin Angus Mackay15-Aug-04 10:26 
GeneralRe: SQL Query Performance question Pin
brdavid15-Aug-04 11:47
brdavid15-Aug-04 11:47 
GeneralRe: SQL Query Performance question Pin
Colin Angus Mackay15-Aug-04 12:10
Colin Angus Mackay15-Aug-04 12:10 
GeneralRe: SQL Query Performance question Pin
brdavid15-Aug-04 15:05
brdavid15-Aug-04 15:05 
GeneralRe: SQL Query Performance question Pin
Anonymous23-Aug-04 7:58
Anonymous23-Aug-04 7:58 
GeneralRe: SQL Query Performance question Pin
brdavid28-Aug-04 6:16
brdavid28-Aug-04 6:16 
QuestionC# SQL INSERT String??? Pin
gman4413-Aug-04 12:16
gman4413-Aug-04 12:16 
AnswerRe: C# SQL INSERT String??? Pin
Colin Angus Mackay13-Aug-04 12:47
Colin Angus Mackay13-Aug-04 12:47 
GeneralRe: C# SQL INSERT String??? Pin
gman4415-Aug-04 4:03
gman4415-Aug-04 4:03 
AnswerRe: C# SQL INSERT String??? Pin
S Sansanwal15-Aug-04 17:07
S Sansanwal15-Aug-04 17:07 
GeneralSELECT in UPDATE statement Pin
blopf13-Aug-04 9:28
blopf13-Aug-04 9:28 
GeneralRe: SELECT in UPDATE statement Pin
Colin Angus Mackay13-Aug-04 12:50
Colin Angus Mackay13-Aug-04 12:50 
GeneralRe: SELECT in UPDATE statement Pin
blopf15-Aug-04 4:19
blopf15-Aug-04 4:19 
GeneralRe: SELECT in UPDATE statement Pin
Mike Dimmick15-Aug-04 9:11
Mike Dimmick15-Aug-04 9:11 
GeneralRe: SELECT in UPDATE statement Pin
EdbertP15-Aug-04 22:33
EdbertP15-Aug-04 22:33 
GeneralSQL Server 2005 Notification Services Pin
James Coleman13-Aug-04 7:50
James Coleman13-Aug-04 7:50 
GeneralComlex Query vs Multiple Queries Pin
iamalik13-Aug-04 6:41
professionaliamalik13-Aug-04 6:41 

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.