Explorar el Código

Ускорение выборки из author

Book Pauk hace 2 años
padre
commit
8281798596
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      server/core/WebWorker.js

+ 3 - 0
server/core/WebWorker.js

@@ -172,6 +172,9 @@ class WebWorker {
 
             //открываем все таблицы
             await db.openAll();
+            //переоткроем таблицу 'author' с бОльшим размером кеша блоков, для ускорения выборки
+            await db.close({table: 'author'});
+            await db.open({table: 'author', cacheSize: 100});
 
             this.dbSearcher = new DbSearcher(config, db);