public long GetTotalSizeOnDisk()
{
if (Configuration.RunInMemory)
return 0;
var indexes = Directory.GetFiles(Configuration.IndexStoragePath, "*.*", SearchOption.AllDirectories);
var totalIndexSize = indexes.Sum(file => new FileInfo(file).Length);
return totalIndexSize + TransactionalStorage.GetDatabaseSizeInBytes();
}