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

Database

 
GeneralRe: Reading From Procedures? Pin
Sumit Domyan9-Sep-04 18:55
Sumit Domyan9-Sep-04 18:55 
GeneralDTS packages Pin
Sudee8-Sep-04 22:42
Sudee8-Sep-04 22:42 
GeneralRe: DTS packages Pin
andyharman12-Sep-04 1:50
professionalandyharman12-Sep-04 1:50 
GeneralStored Procedure Pin
Goodway8-Sep-04 4:35
Goodway8-Sep-04 4:35 
GeneralRe: Stored Procedure Pin
Colin Angus Mackay8-Sep-04 5:06
Colin Angus Mackay8-Sep-04 5:06 
GeneralSQL server logs Pin
Imtiaz Murtaza8-Sep-04 2:08
Imtiaz Murtaza8-Sep-04 2:08 
GeneralSql Query Pin
rkyawal8-Sep-04 0:41
rkyawal8-Sep-04 0:41 
GeneralRe: Sql Query Pin
Colin Angus Mackay8-Sep-04 5:13
Colin Angus Mackay8-Sep-04 5:13 
Writing a GIS System?

From my experience trig functions are expensive so you should cut down the amount of data that has to be calculated. To do this, recreate your existing query (without the trig functions) as a subquery, replacing the trig functions with a very basic bounding box - this will cut out a vast quantity of data quickly. You are now left with just a subset of the original data, your outer query can now perform the trig operations on a much smaller set of data.

As for the joins, I'm assuming that these id fields are all primary keys and indexed by default, you may want to index the foreign key side of them to see if it speeds up the query also.

However, from experience, I'd say the trig functions are where your bottle neck is.


"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell

Not getting the response you want from a question asked in an online forum: How to Ask Questions the Smart Way!


GeneralRe: Sql Query Pin
EdbertP8-Sep-04 20:44
EdbertP8-Sep-04 20:44 
QuestionCan this exception be taken care of? Pin
mysorian7-Sep-04 18:15
professionalmysorian7-Sep-04 18:15 
AnswerRe: Can this exception be taken care of? Pin
Colin Angus Mackay8-Sep-04 5:17
Colin Angus Mackay8-Sep-04 5:17 
GeneralRe: Can this exception be taken care of? Pin
mysorian8-Sep-04 6:49
professionalmysorian8-Sep-04 6:49 
QuestionCounting NULL columns across a row? Pin
Mike Ellison7-Sep-04 9:38
Mike Ellison7-Sep-04 9:38 
Generaltextbox datasource retrieve text problem Pin
Bart-Man7-Sep-04 8:29
Bart-Man7-Sep-04 8:29 
GeneralPossible Solution Pin
Bart-Man8-Sep-04 3:52
Bart-Man8-Sep-04 3:52 
GeneralDTS Dynamic Properties Pin
ProffK6-Sep-04 23:20
ProffK6-Sep-04 23:20 
Questionhow to bind the textbox value to sqlCommand? Pin
DotNet6-Sep-04 19:49
DotNet6-Sep-04 19:49 
AnswerRe: how to bind the textbox value to sqlCommand? Pin
Sudee6-Sep-04 20:23
Sudee6-Sep-04 20:23 
AnswerRe: how to bind the textbox value to sqlCommand? Pin
Colin Angus Mackay6-Sep-04 23:10
Colin Angus Mackay6-Sep-04 23:10 
QuestionHow to insert ' into database? Pin
ting6686-Sep-04 19:10
ting6686-Sep-04 19:10 
AnswerRe: How to insert ' into database? Pin
Sudee6-Sep-04 20:17
Sudee6-Sep-04 20:17 
GeneralRe: How to insert ' into database? Pin
ting6686-Sep-04 20:28
ting6686-Sep-04 20:28 
GeneralRe: How to insert ' into database? Pin
Sudee6-Sep-04 22:09
Sudee6-Sep-04 22:09 
GeneralRe: How to insert ' into database? Pin
ting6686-Sep-04 22:48
ting6686-Sep-04 22:48 
GeneralRe: How to insert ' into database? Pin
Colin Angus Mackay6-Sep-04 23:01
Colin Angus Mackay6-Sep-04 23:01 

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.