Click here to Skip to main content
15,909,898 members
Home / Discussions / Database
   

Database

 
AnswerRe: @@identity Pin
andyharman13-Jun-07 7:31
professionalandyharman13-Jun-07 7:31 
QuestionMaximum length of a field in SQl SERVER Pin
S.Rajeshwar13-Jun-07 6:13
S.Rajeshwar13-Jun-07 6:13 
AnswerRe: Maximum length of a field in SQl SERVER Pin
Colin Angus Mackay13-Jun-07 6:24
Colin Angus Mackay13-Jun-07 6:24 
AnswerRe: Maximum length of a field in SQl SERVER Pin
Mike Dimmick13-Jun-07 12:15
Mike Dimmick13-Jun-07 12:15 
GeneralRe: Maximum length of a field in SQl SERVER Pin
Colin Angus Mackay13-Jun-07 13:11
Colin Angus Mackay13-Jun-07 13:11 
QuestionRe: Maximum length of a field in SQl SERVER Pin
S.Rajeshwar13-Jun-07 19:58
S.Rajeshwar13-Jun-07 19:58 
Questionset-variable = max_allowed_packet=16777216 in mysql Pin
WhiteGirl2313-Jun-07 3:46
WhiteGirl2313-Jun-07 3:46 
QuestionXquery Pin
Neema Vikas13-Jun-07 1:21
Neema Vikas13-Jun-07 1:21 
Hi
I'm executing the following Xquery on SQLserver 2005.

select
policy_xml.query('/Policy/PolicyApplication/Inuserer/InsurerID'),
policy_xml.query('/Policy/PolicyApplication/Insurer/AccountIdentifier'),
policy_xml.query('/Policy/PolicyApplication/Insurer/Type'),
policy_xml.query('/Policy/PolicyApplication/Insurer/HolderName')
from policyTable

where
policy_xml.exist('/Policy/PolicyApplication/Insurer/PolicyOwner/EntityID[.="E_1"]') = 1


Its taking 50 Secs to search from 10000 records{without indexes}
The table has 3 columns sno,policy_id,policy_xml.

I have primary index on policy_id field and 1 secondary index(path index) on the table.

When I enable the index the query takes 380 secs.



The size of loan_xml column is about 110 Kb for each row. We need to keep the indexes for some more complex update Xqueries. Is there a way out to improve the performance of the XQuery we are using? Please let us also know the reasons of decrease in performance using indexes on the table. Do indexs have any issues related to XQuery performance?



Vikas Neema
QuestionInfragistics hierarchical grid Pin
Revathij13-Jun-07 1:20
Revathij13-Jun-07 1:20 
AnswerRe: Infragistics hierarchical grid Pin
Pete O'Hanlon13-Jun-07 2:17
mvePete O'Hanlon13-Jun-07 2:17 
GeneralRe: Infragistics hierarchical grid Pin
Colin Angus Mackay13-Jun-07 3:11
Colin Angus Mackay13-Jun-07 3:11 
GeneralRe: Infragistics hierarchical grid Pin
Pete O'Hanlon13-Jun-07 3:13
mvePete O'Hanlon13-Jun-07 3:13 
QuestionWeek Calculation Pin
Tauseef A13-Jun-07 0:48
Tauseef A13-Jun-07 0:48 
AnswerRe: Week Calculation Pin
Revathij13-Jun-07 1:52
Revathij13-Jun-07 1:52 
QuestionReturning Column Names Only Pin
Brendan Vogt12-Jun-07 23:34
Brendan Vogt12-Jun-07 23:34 
AnswerRe: Returning Column Names Only Pin
Harini N K13-Jun-07 1:58
Harini N K13-Jun-07 1:58 
AnswerRe: Returning Column Names Only Pin
Pete O'Hanlon13-Jun-07 2:16
mvePete O'Hanlon13-Jun-07 2:16 
QuestionData Recovery - After Drop a table and creating the same table Pin
adnanrafiq12-Jun-07 22:57
adnanrafiq12-Jun-07 22:57 
AnswerRe: Data Recovery - After Drop a table and creating the same table Pin
Krish - KP13-Jun-07 0:49
Krish - KP13-Jun-07 0:49 
GeneralRe: Data Recovery - After Drop a table and creating the same table Pin
adnanrafiq13-Jun-07 2:20
adnanrafiq13-Jun-07 2:20 
GeneralRe: Data Recovery - After Drop a table and creating the same table Pin
Pete O'Hanlon13-Jun-07 3:40
mvePete O'Hanlon13-Jun-07 3:40 
GeneralRe: Data Recovery - After Drop a table and creating the same table Pin
adnanrafiq13-Jun-07 9:19
adnanrafiq13-Jun-07 9:19 
GeneralRe: Data Recovery - After Drop a table and creating the same table Pin
Krish - KP13-Jun-07 17:39
Krish - KP13-Jun-07 17:39 
GeneralRe: Data Recovery - After Drop a table and creating the same table Pin
Krish - KP13-Jun-07 17:31
Krish - KP13-Jun-07 17:31 
GeneralRe: Data Recovery - After Drop a table and creating the same table Pin
adnanrafiq13-Jun-07 22:04
adnanrafiq13-Jun-07 22:04 

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.