1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 00:22:50 -05:00

disable autostats for cipher table

This commit is contained in:
Kyle Spearrin
2019-02-03 22:39:53 -05:00
parent 7675478daa
commit 22c049c9c5
3 changed files with 13 additions and 0 deletions

View File

@ -27,6 +27,17 @@ namespace Bit.Core.Repositories.SqlServer
}
}
public async Task DisableCipherAutoStatsAsync()
{
using(var connection = new SqlConnection(ConnectionString))
{
await connection.ExecuteAsync(
"sp_autostats",
new { tblname = "[dbo].[Cipher]", flagc = "OFF" },
commandType: CommandType.StoredProcedure);
}
}
public async Task RebuildIndexesAsync()
{
using(var connection = new SqlConnection(ConnectionString))