自11月21日以来,Amazon Redshift引入了结果集的默认缓存。有没有办法在Redshift数据库上默认禁用缓存?目前似乎没有很多文档。
答案 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;
}
。