Viewing 12 posts - 16 through 27 (of 27 total)
I wonder if this is a simple as putting a constraint on zip. Will test tomorrow.
January 8, 2014 at 9:22 pm
1) Strangely, I had just created the clustered index (zip,pin) on the table so it should have had 100% knowledge (statistics) of that field (e.g. the range that it is...
January 8, 2014 at 2:10 pm
Actual plans.
Looks like this is just cost-based optimization, which is interesting but somewhat surprising.
January 8, 2014 at 8:31 am
I'll see about posting actual plans later today. The table these queries are going against has 177 columns, the majority of which could potentially be used in the WHERE clause....
January 8, 2014 at 7:35 am
Added sqlplan as requested (with some name changes).
The table is roughly 68 GB if that helps (this is with page compression).
Looking at both plans in sql sentry plan explorer, I...
January 7, 2014 at 2:52 pm
I'll have to see if the higher ups are okay with me posting that.
Definitely not blocking because this is a test database so no other queries are running against it...
January 7, 2014 at 1:32 pm
Valid points, I was just exploring an alternative. No offense intended!
April 26, 2013 at 7:36 am
use master
go
exec sp_msforeachdb 'USE ?;if not exists (select 1 from sys.databases where owner_sid = 0x01 and name = db_name()) exec sp_changedbowner ''sa'''
April 26, 2013 at 7:13 am
Star Trek (2/1/2012)
Here is the plan and stats for update query.
Is the column SUBORDER_ID defined the same way in both tables?
February 1, 2012 at 2:38 pm
Both filters in the WHERE clause refer to the smaller table, so they won't impact performance so much. I would recommend creating the following index on the development server and...
February 1, 2012 at 12:26 pm
From what information you have given, I believe you should look at indexing for this.
At a minimum, you would probably want indexes with the join columns as the left-most column...
February 1, 2012 at 10:31 am
SKYBVI (10/17/2011)
It should be 1 and 2 only
beacuse only the constraint is violated,
the sql statement is terminated.
it doesn't look for other statements...
just goes out of...
October 17, 2011 at 11:10 am
Viewing 12 posts - 16 through 27 (of 27 total)