March 23, 2020 at 12:00 am
Comments posted to this topic are about the item Collections: Crossing intervals computed gaps
March 23, 2020 at 12:57 pm
How is the performance for a large data set?
--Jeff Moden
Change is inevitable... Change for the better is not.
March 23, 2020 at 10:30 pm
First, thank you for your interest in my article. I have done performance testing just for this article
https://www.sqlservercentral.com/articles/collections
comparing proposed solution vs table vars using single thread tests and also concurrent tests (3 concurrent connections) and comparing CPU, logical reads, elapsed time and the results where positives favoring the proposed solution (maybe because of less stress on tempdb), biggest difference being record for logical reads. For this solution, I'm expecting to get (at least) not the last results just because spatial objects are SQLCLR data types.
March 23, 2020 at 11:05 pm
Just to be sure, I appreciate anyone willing to step up and write articles to share their knowledge with other people especially when they come up with such a different method.
Getting to the point, though... I expect no performance gains just because something is an SQLCLR type behind the scenes. In fact, because of things like the FORMAT function, I've grown to being extremely skeptical when it comes to expectations of many built-in SQLCLR backed functions.
With that being said, I was looking for some form of performance testing (or the results of such testing) in both this article and the one you cited above. I'm just not seeing anything that might resemble a test harness. To be sure, I normally test things with a million rows. In this case, I would probably test with a million intervals that contain at least 50,000 gaps of 1 to 1000. Then I'd do the same thing with some of the more commonly known methods.
Who knows? You might be right. Maybe the SQLCLR code behind the scenes was written much better than things like the FORMAT, et al, function.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply