sql server 2008 r2 - Looking for a SQL bitwise alternative that is sargable -


i inheriting lot of code this...

select * dbo.items ( option & @optionsum = @optionsum) 

this has become problem, calculation not sargable , dataset large enough there performance implications.

any suggestions on alternative using bitwsie operation in clause give me same functionality sargable? integer value stored in option column integer calculated bitwise operation , unable change value.


Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -