mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-02-12 16:50:05 -06:00
optimization of recursive CTE attribute query
This commit is contained in:
@@ -161,7 +161,7 @@ async function wrap(func, query) {
|
||||
const result = await func(dbConnection);
|
||||
|
||||
const milliseconds = Date.now() - startTimestamp;
|
||||
if (milliseconds >= 200) {
|
||||
if (milliseconds >= 300) {
|
||||
if (query.includes("WITH RECURSIVE")) {
|
||||
log.info(`Slow recursive query took ${milliseconds}ms.`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user