mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	log the time spent during optimization process
This commit is contained in:
		| @@ -153,10 +153,11 @@ function setDbAsInitialized() { | ||||
|  | ||||
| function optimize() { | ||||
|     log.info("Optimizing database"); | ||||
|     const start = Date.now(); | ||||
|  | ||||
|     sql.execute("PRAGMA optimize"); | ||||
|  | ||||
|     log.info("Optimization finished."); | ||||
|     log.info(`Optimization finished in ${Date.now() - start}ms.`); | ||||
| } | ||||
|  | ||||
| dbReady.then(() => { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user