Turn off WAL mode

This commit is contained in:
Brandon Rising 2023-08-15 15:59:42 -04:00
parent cc5755d5b1
commit faa4574970
2 changed files with 3 additions and 3 deletions

View File

@ -18,12 +18,12 @@ from invokeai.app.invocations.baseinvocation import (
from invokeai.app.services.graph import Graph from invokeai.app.services.graph import Graph
from invokeai.app.models.image import ImageField from invokeai.app.models.image import ImageField
from pydantic import BaseModel, Field, Extra, parse_raw_as from pydantic import BaseModel, Field, Extra, parse_raw_as, StrictStr, StrictInt, StrictFloat
invocations = BaseInvocation.get_invocations() invocations = BaseInvocation.get_invocations()
InvocationsUnion = Union[invocations] # type: ignore InvocationsUnion = Union[invocations] # type: ignore
BatchDataType = Union[StrictStr, StrictInt, StrictFloat, ImageField]``` BatchDataType = Union[StrictStr, StrictInt, StrictFloat, ImageField]
class Batch(BaseModel): class Batch(BaseModel):

View File

@ -29,7 +29,7 @@ class SqliteItemStorage(ItemStorageABC, Generic[T]):
self._conn = sqlite3.connect( self._conn = sqlite3.connect(
self._filename, check_same_thread=False self._filename, check_same_thread=False
) # TODO: figure out a better threading solution ) # TODO: figure out a better threading solution
self._conn.execute("pragma journal_mode=wal") # self._conn.execute("pragma journal_mode=wal")
self._cursor = self._conn.cursor() self._cursor = self._conn.cursor()
self._create_table() self._create_table()