Viewing 15 posts - 376 through 390 (of 581 total)
The indexes will reduce the probability of a deadlock happening (by a huge factor), because they will speed up transactions so there is less chance of a temporal overlap, but also possibly...
June 1, 2006 at 1:13 pm
Also notice that the plan for the (paralellised) slow update doesn't use the clustered index from the target table in performing the join. I've never heard of this, but could...
June 1, 2006 at 12:58 pm
Sorry, forgot to ask for the plan for the non-parallelised (maxdop 0) version of the problem update, too.
June 1, 2006 at 12:37 pm
OK so the staging table sorts it out - correct? That means it's not the performance of the joins alone, and it's not the UPDATE itself or its side-effects. It seems...
June 1, 2006 at 12:23 pm
Yes that is basically it - there may be something about the complexity of the query or the repeated instances of the table that is contributing to perfomance problems. So...
June 1, 2006 at 12:11 pm
DBCC INPUTBUFFER( <spid> ) tells you the last command issued.
June 1, 2006 at 12:03 pm
Yes - try creating a table to hold teh output of the SELECT, then do the UPDATE from that table (the staging table). And yes, the other thing to try...
June 1, 2006 at 11:59 am
Have you tried without the clustered index on the target table? Tried selecting the records into a staging table before inserting? I think the status is set based on the...
June 1, 2006 at 11:53 am
Run the SELECT part only. Does that have the same performance problem? If not then perhaps the problem could be your clustered index rebuild. Or have you tried removing all...
June 1, 2006 at 11:14 am
This one will fetch a single field value at a time and sort out the row numbering in the process. So as long as none of your data...
June 1, 2006 at 10:54 am
June 1, 2006 at 9:20 am
Your second query
is (in relevant respects) of the form:
June 1, 2006 at 8:06 am
June 1, 2006 at 6:34 am
Bit less straightforward with PATINDEX() - no startpos parameter. Here's a pretty rough bit of example code, which might form the basis of a solution. Don't know what performance would be...
June 1, 2006 at 6:04 am
Or:
I prefer to use TSQL whenever possible, and always save the script.
June 1, 2006 at 5:48 am
Viewing 15 posts - 376 through 390 (of 581 total)