Optimize Your SQL Queries with Schema Names

SQL Server, by design, caches query plans for queries. For reuse of cache, the best practice would be to include the schema name in the query.

For example:

select * from dbo.accounts

This way, when this is cached, the cache can be reused by all users who execute this query.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: