mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 14:55:50 +01:00
don't log known slow queries
This commit is contained in:
@@ -48,6 +48,14 @@ function isEntityEventsDisabled() {
|
||||
return !!namespace.get('disableEntityEvents');
|
||||
}
|
||||
|
||||
function disableSlowQueryLogging(disable) {
|
||||
namespace.set('disableSlowQueryLogging', disable);
|
||||
}
|
||||
|
||||
function isSlowQueryLoggingDisabled() {
|
||||
return !!namespace.get('disableSlowQueryLogging');
|
||||
}
|
||||
|
||||
function getAndClearEntityChangeIds() {
|
||||
const entityChangeIds = namespace.get('entityChangeIds') || [];
|
||||
|
||||
@@ -93,4 +101,6 @@ module.exports = {
|
||||
getAndClearEntityChangeIds,
|
||||
putEntityChange,
|
||||
ignoreEntityChangeIds,
|
||||
disableSlowQueryLogging,
|
||||
isSlowQueryLoggingDisabled
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user