Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 2.23 KB

File metadata and controls

39 lines (30 loc) · 2.23 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic helpviewer_keywords monikerRange
XSL Caching (SQLXML)
Learn how to cache XSL style sheets and set the XSL cache size to improve query performance in SQLXML 4.0.
MikeRayMSFT
mikeray
03/04/2017
sql
xml
reference
registry keys [SQLXML]
cache [SQLXML]
XSL caching [SQLXML]
=azuresqldb-current||>=sql-server-2016||>=sql-server-linux-2017||=azuresqldb-mi-current

XSL Caching (SQLXML 4.0)

[!INCLUDE SQL Server Azure SQL Database] Caching XSL style sheets improves performance. Upon its first execution, an XSL style sheet remains in memory if XSL caching is set to ON; this improves performance for subsequent processing. The default setting is ON.

You can set the XSL cache size by adding the following key in the registry:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\Client\SQLXML4\XSLCacheSize  

Caution

[!INCLUDEssNoteRegistry]

The XSL cache size should be set on the basis of the available memory and the number of XSL style sheets you are using. The default of XSLCacheSize size is 31. You can increase the cache size if XSL access seems slow, or decrease the cache size if memory is low.

For better performance, it is recommended that you set XSLCacheSize higher than the number of XSL style sheets you usually use. If XSLCacheSize is less than the number of XSL style sheets you have, the performance degrades as the number of XSL style sheets increases. The XSLCacheSize can be set to a maximum of 128.

Every time the cached XSL style sheet is used, the modification time of the XSL file is checked to determine whether it needs to be refreshed. This is because the disk copy is newer than the cache copy.

See Also

Template Caching (SQLXML 4.0)
Schema Caching (SQLXML 4.0)