Viewing 15 posts - 2,401 through 2,415 (of 2,645 total)
If you set the compatibility level on the database to 2008, do queries still take a long time to run?
October 4, 2017 at 10:29 am
August 18, 2017 at 6:16 am
I'm not sure, I didn't mean Regions( RegionID) as that's already the PK.
Just ignore that index for now.
August 16, 2017 at 4:14 pm
Try adding the following indexesCREATE INDEX IX_#ReportDealCore_1 ON #ReportDealCore(DealID)
CREATE INDEX IX_Activities_1 ON Activities(DealID,Type)
CREATE INDEX IX_DealProperties_1 ON DealProperties(DealID,IsMainProperty,DateRemoved)
CREATE INDEX IX_Regions_1 ON Regions(CityID)
CREATE INDEX IX_DealsToClients_1...
August 16, 2017 at 2:17 pm
August 16, 2017 at 10:23 am
adonetok - Wednesday, August 16, 2017 9:04 AMThank you for help.
Got an error
Invalid object name 'dbo.chrSplitList'
Is dbo.chrSplitList a function?
-- Splits a...
August 16, 2017 at 9:22 am
If got a stored procedure I use for searching for a string in a database:IF NOT EXISTS(SELECT 1
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_NAME = 'INFSearchAllTables'
...
August 16, 2017 at 8:36 am
Interestingly there comes a point where the original query using ROW_NUMBER() becomes the fastest. This is when there are not many QueuedAt values for ObjectType/ObjectId combinations. In my test above...
August 16, 2017 at 5:53 am
August 16, 2017 at 5:28 am
August 15, 2017 at 1:52 pm
With these type of query you can sometimes get a lot of success from breaking it up into several queries inserting the data into temporary tables, adding indexes to the...
August 15, 2017 at 11:52 am
August 15, 2017 at 11:36 am
August 14, 2017 at 8:42 am
I've had a lot of success rewriting these type of queries (where it's selecting ROWNUMBER = 1) as a cte with a select distinct followed by another nested query with...
August 14, 2017 at 6:22 am
If you use a temporary table you should get better performance:IF OBJECT_ID('tempdb..#t','U') IS NOT NULL
DROP TABLE #t
CREATE TABLE #t (nId INTEGER IDENTITY, nVal...
August 11, 2017 at 9:38 am
Viewing 15 posts - 2,401 through 2,415 (of 2,645 total)