Viewing 15 posts - 4,381 through 4,395 (of 59,098 total)
But still cant figure out why its very slow at times.
It's probably because the triggers that feed it are written incorrectly as some form of dynamic SQL that materialize...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2021 at 7:10 pm
Here's one simple way. It'll really help things if you have an index on the TimeInterval column.
DECLARE @InputParameter [decimal](15, 6) = 691195
;
SELECT TOP 1 *
...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2021 at 6:48 pm
You should play the lottery tonight. 😀 You just proved that you're one of the luckiest people on the whole planet. 😀
With that (and I know you get it but...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2021 at 6:32 pm
Understood but that's not my question. To be more clear, you stated that...
I'd rather write components in a project written in C# that yield the results that...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2021 at 5:55 pm
regarding reorganize - there is an exception to this - if you have columnstore indexes that are frequently subject to deletions or that are subject on inserts in small...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2021 at 5:52 pm
That's the gist of it. If you have indexes where logical fragmentation actually does matter for large range scans, you might want to include those but, again, that's going to...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2021 at 4:53 pm
As a bit of a sidebar, wouldn't adding more files add to the problem you spoke of previously?
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2021 at 4:42 pm
You're presuming an awful lot. Why would you want "at least 2 files per filegroup" for a single table?
To spread the I/O out, the typical reason for...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2021 at 4:41 pm
now I am not discarding wrong data , but sending it back in output.
Ah... that's the ticket. Thanks for taking the time to explain. I was really concerned about...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2021 at 3:52 pm
Thanks to all
Adelia,
Don't go yet. I asked you some questions about datatypes that you've not answered yet. If you let me know that the datatypes of the...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2021 at 3:39 pm
@databases nvarchar(max)='USER_DATABASES'
@FragmentationLow nvarchar(max) = NULL, /* don't defrag low fragmented */
@FragmentationMedium nvarchar(max) = 'INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE', /* left out index_reorganize because of https://www.sqlservercentral.com/forums/topic/rebuilding-and-reorganizing-indexes/page/2/?bbp-ajax=true */
@FragmentationHigh nvarchar(max) = 'INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE',
@FragmentationLevel1 int = 30, /* threshold medium...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2021 at 3:16 pm
Ah... sorry. Looking back at the original post, I see that REORGANIZE was left out. That's ok... it's still worth mentioning for other people that may read this thread.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2021 at 1:48 pm
Yes. Do not use REORGANIZE. It doesn't work the way you think it does. It's so bad on indexes that fragment that it's actually the cause of the myth of...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2021 at 1:46 pm
I don't know about those stored procedures and can't help there.
Of a much larger concern, suppose you want to restore just one database? Go check the documentation on that. IIRC...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 4, 2021 at 4:35 pm
You're presuming an awful lot. Why would you want "at least 2 files per filegroup" for a single table?
Also, I can see some instances where you might have specific reason...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 4, 2021 at 4:26 pm
Viewing 15 posts - 4,381 through 4,395 (of 59,098 total)