•
The minimum number of segments that any value is in.
•
The maximum number of segments that any value is in.
•
The average number of segments that all values are in.
•
The average percentage of segments that all values are in.
The distribution statistics can be used to determine the effectiveness of the index. The index
will perform better if the distribution of
the index values is clustered in a minimum number of segments. In general, the lower the
average percentage of segments that all values are in, the better the index will perform.
Reorganize the Index
Use the
-reorg
option to reorganize the index to consolidate segment lists and retrieve
unused disk space:
> ixutil -reorg x -dsn test -libpath /spds
SAS Scalable Performance Data Server
4.5(TS M0) Build(Feb 26 2009, 11:50:08)
Index File Utility
Copyright (c) 1996-2009 by SAS Institute Inc, Cary NC 27513 USA
Reorg for Index x:
Reorg successfully completed
Ixutil completed successfully
Running the index utility program again to get the statistics shows that the segment lists
for all of the values have been aggregated (the avg_chunks_per_list is 1.0) and the unused
disk space has been freed (the idx_garbage_bytes is 0), resulting in a proportional decrease
in the size of the index file.
Aggregating the segment lists and compacting the index file minimizes the reads on the
index for a query. It will also increase the locality of segment data for an index key. The
combination of these will give the best query performance for the index.
Review Disk Usage Statistics
Use the
-stats
option once more to review the index and segment list data, in order to
view the improved performance statistics.
> ixutil -stats x -dsn test -libpath /spds
SAS Scalable Performance Data Server
4.5(TS M0) Build(Feb 26 2009, 11:50:08)
Index File Utility
Copyright (c) 1996-2009 by SAS Institute Inc, Cary NC 27513 USA
Statistics for Index X:
-----------------------------------------
+--segment_size = 8192
+--n_segments_in_tbl = 5
+--n_values_in_index = 2
+--n_vdeleted_values = 0
+--percent_vdeleted = 0.00
+--n_seglist_values = 2
224
Chapter 17 • SPD Server Index Utility Ixutil
Summary of Contents for Scalable Performance Data Server 4.5
Page 1: ...SAS Scalable Performance Data Server 4 5 Administrator s Guide...
Page 7: ...Part 1 Product Notes Chapter 1 SPD Server 4 5 Product Notes 3 1...
Page 8: ...2...
Page 12: ...6...
Page 63: ...Part 3 Migration Chapter 5 SPD Server 3 x to SPD Server 4 5 Conversion Utility 59 57...
Page 64: ...58...
Page 70: ...64 Chapter 5 SPD Server 3 x to SPD Server 4 5 Conversion Utility...
Page 72: ...66...
Page 76: ...70 Chapter 6 Using the SPD Server Name Server to Manage Resources...
Page 94: ...88 Chapter 7 Administering and Configuring SPD Server Using the SAS Management Console...
Page 98: ...92 Chapter 8 SPD Server SQL Query Rewrite Facility...
Page 116: ...110 Chapter 10 Configuring Disk Storage for SPD Server...
Page 128: ...122 Chapter 11 Setting Up SPD Server Parameter Files...
Page 154: ...148...
Page 198: ...192 Chapter 14 ACL Security Overview...
Page 212: ...206 Chapter 15 Managing SPD Server Passwords Users and Table ACLs...
Page 214: ...208...
Page 224: ...218 Chapter 16 SPD Server Operator Interface Procedure PROC SPDO...
Page 236: ...230 Chapter 18 SPD Server Table List Utility Spdsls...
Page 256: ...250 Chapter 19 SPD Server Backup and Restore Utilities...
Page 264: ...258 Chapter 20 SPD Server Directory Cleanup Utility...
Page 270: ......