默认情况下禁用redshift上的缓存

时间:2017-12-06 12:07:56

标签: caching amazon-redshift query-cache

自11月21日以来,Amazon Redshift引入了结果集的默认缓存。有没有办法在Redshift数据库上默认禁用缓存?目前似乎没有很多文档。

1 个答案:

答案 0 :(得分:0)

您可以在服务器配置中将其关闭。

the Redshift documentation中所述,参数名称为<CustomAction Id="PostInstallAction" Return="check" Execute="immediate" BinaryKey="MyAppInstaller.CustomActions.CA.dll" DllEntry="PostInstallAction" /> <InstallExecuteSequence> <Custom Action="PreInstallAction" Before="InstallValidate" /> <Custom Action="PostInstallAction" After="InstallFinalize" /> </InstallExecuteSequence> // follow function abbreviated (no logging and try/catch).In file customactions.cs public static ActionResult PostInstallAction(Session session) { if (!Process.GetProcessesByName(MyAppLauncherFileName).Any()) Process.Start(ConfigurationManager.AppSettings[MyAppLauncherExePath]); return ActionResult.Success; }