Usina BRAdvPL Guide
Sign in
← All topics
PRACTICAL GUIDEUnder review

Fragmentation, FILLFACTOR and page splits in SQL Server

Evaluates density and workload before changing indexes.

Fragmentation, FILLFACTOR and page splits in SQL ServerAdvPL
01 · OVERVIEW

Overview

Fragmentation and page density are different metrics. A page split can lower density and affect reads; reducing FILLFACTOR reserves space during creation/rebuild but also increases page count and reading cost. Zero and 100 have the same documented meaning. Microsoft recommends maintenance decisions based on workload/resource impact rather than a single fixed threshold. This SELECT only inspects configured fill factor for rowstore indexes on fictional ED_TEST; it neither measures current fragmentation nor rebuilds indexes. Metadata visibility depends on permissions. (MICROSOFT, 2026, refs. 1–3)

03 · PRACTICAL EXAMPLE

Commented example

-- Owned test-table metadata only; not executed.
SELECT name, fill_factor
FROM sys.indexes
WHERE object_id = OBJECT_ID(N'dbo.ED_TEST')
  AND type IN (1, 2);
Expected result

Visible index names/settings or an empty set; neither measures performance nor recommends automatic changes. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Compare plans, reads and duration before/after; consider cost, maintenance windows and statistics. An empty set proves no index absence without object/permission checks.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. MICROSOFT. Optimize index maintenance to improve query performance and reduce resource consumption. Microsoft Learn. Accessed on 2026-10-26.
  2. MICROSOFT. Specify fill factor for an index. Microsoft Learn. Accessed on 2026-10-26.
  3. MICROSOFT. sys.indexes (Transact-SQL). Microsoft Learn. Accessed on 2026-10-26.
Status
Under review
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR
0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha