AzureSQLデータベースがあります。 プランキャッシュが、一度だけ使用されたコンパイル済みプランでいっぱいであることがわかります。 select * from sys.database_scoped_configurations Transact-SQLコマンドを実行すると、次の表に示す結果が得られます。 あなたは記憶の圧力を和らげる必要があります。 何を構成する必要がありますか?
正解:C
Explanation OPTIMIZE_FOR_AD_HOC_WORKLOADS = { ON | OFF } Enables or disables a compiled plan stub to be stored in cache when a batch is compiled for the first time. The default is OFF. Once the database scoped configuration OPTIMIZE_FOR_AD_HOC_WORKLOADS is enabled for a database, a compiled plan stub will be stored in cache when a batch is compiled for the first time. Plan stubs have a smaller memory footprint compared to the size of the full compiled plan. Reference: https://docs.microsoft.com/en-us/sql/t-sql/statements/alter-database-scoped-configuration-transact-sql