Brent Ozar 3/11/2026

Row-Level Security Can Slow Down Queries. Index For It.

Read Original

This technical article analyzes a performance caveat of Row-Level Security (RLS) in Azure SQL, specifically how it can force queries to run single-threaded, impacting speed as data grows. It provides a detailed demo using the Stack Overflow database, comparing secured and unsecured tables, and emphasizes the importance of proper indexing to mitigate the performance hit.

Row-Level Security Can Slow Down Queries. Index For It.

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet