mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
Increased sqlite cache size to 30mb
This commit is contained in:
parent
120a75ed8e
commit
4812cb4611
3 changed files with 30 additions and 1 deletions
28
NzbDrone.Core/Datastore/SqliteProvider.cs
Normal file
28
NzbDrone.Core/Datastore/SqliteProvider.cs
Normal file
|
@ -0,0 +1,28 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Migrator.Framework;
|
||||
using Migrator.Providers.SQLite;
|
||||
|
||||
namespace NzbDrone.Core.Datastore
|
||||
{
|
||||
class SqliteProvider
|
||||
{
|
||||
private readonly ITransformationProvider _dataBase;
|
||||
|
||||
public SqliteProvider(string connectionString)
|
||||
{
|
||||
_dataBase = new SQLiteTransformationProvider(new SQLiteDialect(), connectionString);
|
||||
}
|
||||
|
||||
|
||||
public int GetPageSize()
|
||||
{
|
||||
return Convert.ToInt32(_dataBase.ExecuteScalar("PRAGMA cache_size"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue