mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-24 16:14:01 +08:00
fix(db): Don't log query plans for SCAN Thread-Counts, which are fine
This commit is contained in:
parent
14dff14ac7
commit
7c2bd06fbb
1 changed files with 3 additions and 1 deletions
|
@ -265,7 +265,9 @@ class DatabaseStore extends NylasStore
|
||||||
if DEBUG_QUERY_PLANS
|
if DEBUG_QUERY_PLANS
|
||||||
@_db.all "EXPLAIN QUERY PLAN #{query}", values, (err, results=[]) =>
|
@_db.all "EXPLAIN QUERY PLAN #{query}", values, (err, results=[]) =>
|
||||||
str = results.map((row) -> row.detail).join('\n') + " for " + query
|
str = results.map((row) -> row.detail).join('\n') + " for " + query
|
||||||
@_prettyConsoleLog(str) if str.indexOf("SCAN") isnt -1
|
return if str.indexOf("SCAN") is -1
|
||||||
|
return if str.indexOf('Thread-Counts') > 0
|
||||||
|
@_prettyConsoleLog(str)
|
||||||
|
|
||||||
# Important: once the user begins a transaction, queries need to run
|
# Important: once the user begins a transaction, queries need to run
|
||||||
# in serial. This ensures that the subsequent "COMMIT" call
|
# in serial. This ensures that the subsequent "COMMIT" call
|
||||||
|
|
Loading…
Reference in a new issue