Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WHERE IN approach
Message
From
28/02/2017 15:20:31
 
 
To
28/02/2017 15:19:20
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2014
OS:
Windows 8.1
Network:
Windows Server 2012
Miscellaneous
Thread ID:
01648591
Message ID:
01648641
Views:
24
>the true headache begin when you have this situation:
>where condition1 OR condition2
>both condition1 condition2 that are optimized
>but the engine generates a plan that run across the all table.
>I solve with a UNION, which has zero readability,
>but it can be thousands of times faster

I would be interested to see an example of such command, making usage of the UNION for such approach.

Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform