Explorar el Código

Ускорение процедуры поиска

Book Pauk hace 2 años
padre
commit
1d3a661973
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      server/core/DbSearcher.js

+ 4 - 4
server/core/DbSearcher.js

@@ -99,7 +99,7 @@ class DbSearcher {
 
 
                     const result = new Set();
                     const result = new Set();
                     for (const id of ids) {
                     for (const id of ids) {
-                        const row = @row(id);
+                        const row = @unsafeRow(id);
                         for (const authorId of row.authorId)
                         for (const authorId of row.authorId)
                             result.add(authorId);
                             result.add(authorId);
                     }
                     }
@@ -123,7 +123,7 @@ class DbSearcher {
 
 
                     const result = new Set();
                     const result = new Set();
                     for (const id of ids) {
                     for (const id of ids) {
-                        const row = @row(id);
+                        const row = @unsafeRow(id);
                         for (const authorId of row.authorId)
                         for (const authorId of row.authorId)
                             result.add(authorId);
                             result.add(authorId);
                     }
                     }
@@ -158,7 +158,7 @@ class DbSearcher {
                     
                     
                     const result = new Set();
                     const result = new Set();
                     for (const id of ids) {
                     for (const id of ids) {
-                        const row = @row(id);
+                        const row = @unsafeRow(id);
                         for (const authorId of row.authorId)
                         for (const authorId of row.authorId)
                             result.add(authorId);
                             result.add(authorId);
                     }
                     }
@@ -186,7 +186,7 @@ class DbSearcher {
                     
                     
                     const result = new Set();
                     const result = new Set();
                     for (const id of ids) {
                     for (const id of ids) {
-                        const row = @row(id);
+                        const row = @unsafeRow(id);
                         for (const authorId of row.authorId)
                         for (const authorId of row.authorId)
                             result.add(authorId);
                             result.add(authorId);
                     }
                     }