web: make sqlite slightly faster

This commit is contained in:
Abdullah Atta
2024-02-10 10:47:16 +05:00
parent 37eeeb1d64
commit 779f000f3e
5 changed files with 66 additions and 33 deletions

View File

@@ -36,7 +36,7 @@ export const createDialect = (name: string): Dialect => {
return {
createDriver: () =>
new WaSqliteWorkerDriver({
async: isFeatureSupported("opfs") ? false : true,
async: !isFeatureSupported("opfs"),
dbName: name
}),
createAdapter: () => new SqliteAdapter(),