Viewing 15 posts - 1 through 15 (of 54 total)
This is the current query plan before changes
I have tried changing to below doesn't seem to have improved things
SELECT ..
WHERE ... AND hs.TimeStamp < fs.ValidTo
UNION ALL
SELECT ..
WHERE ... fs.ValidTo is...
May 23, 2025 at 1:29 pm
SELECT .....
FROM dbo.historicsummary hs
LEFT JOIN dbo.Status fs ON hs.ID = fs.ID
AND hs.TimeStamp >= fs.ValidFrom
AND hs.TimeStamp < ISNULL(fs.ValidTo, DATEADD(d, 1, SYSDATETIME()))
This is the left join I am trying to change
When I...
May 19, 2025 at 1:15 pm
Query 1 -- where departmentValidTo is not null
Union all
Query 2 -- where it is null and replace the DATEADD expression with a literal , '20250501' for example.
How do I make...
May 19, 2025 at 8:02 am
index doens't seem to improve performance much.
What does, which is a bit strange is that in my left join it is based on 3 different criteria, when I change the...
May 14, 2025 at 4:41 pm
Yes was taking less time but today it back up around the same time. For me it seems like a storage issue, I don't think there is anything additional that...
May 8, 2025 at 12:48 pm
Its on AWS.
8 CPU and 64 RAM
I need to include the varbinary column in the query.
It is a new problem, today the query is taking 59 seconds 🙁
May 7, 2025 at 2:35 pm
I don't see ASYNC_NETWORK_IO waits when running the query including the column that is varbinary. There was just PAGEIOLATCH_SH wait
Just some stats
--4.33min with varbinary column
--28 sec without varbinary column
May 6, 2025 at 8:08 am
Sorry forgot to mentioned the table has columnstore index with partitions enabled.
May 4, 2025 at 5:04 pm
There is 88 rows returned, so not too much data
It has clustered index on ID column.
Then there is a few indexes, including one for DepartmentValidFrom, DepartmentValidTo & DepartmentID
It does suggest...
May 2, 2025 at 3:50 pm
Yes I was thinking it would make it an inner join initially
Lets assume this is the query
-- Assumed table structure:
-- Employees(EmployeeID INT, Name NVARCHAR(100), DepartmentID INT, EmployeeTimeStamp DATETIME2(3))
-- Departments(DepartmentID INT,...
April 30, 2025 at 3:11 pm
Unfortunately we don't have the option to setup a new instance
August 13, 2024 at 9:00 am
Could the way data is inserted into the table increase the unused space?
November 17, 2023 at 1:47 pm
Ok but what if my fk aren't setup with option
September 12, 2023 at 6:38 pm
I setup logging as mention below https://www.mssqltips.com/sqlservertip/4070/integrated-logging-with-the-integration-services-package-log-providers/
Unfortunately I didn't get an error in the table to suggest what the problem was.
The package runs on the older servers and the difference...
January 26, 2023 at 9:34 am
Getting this error now
Errorcode:6; ErrorDescription: the script returned a failure result ErrorCode:1; ErrorDescription: Exception has been thrown by the target of an invocation
This happens after generating a file that the...
January 25, 2023 at 11:30 am
Viewing 15 posts - 1 through 15 (of 54 total)