From bd5e53b83dbacad2a35cdbd693e14c750c6aab2b Mon Sep 17 00:00:00 2001 From: ashilkn Date: Thu, 3 Oct 2024 16:54:18 +0530 Subject: [PATCH] [mob][photos] log number of row in filesDB for debugging perf issues --- mobile/lib/db/files_db.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mobile/lib/db/files_db.dart b/mobile/lib/db/files_db.dart index b0482fef12..ebcc40bc8e 100644 --- a/mobile/lib/db/files_db.dart +++ b/mobile/lib/db/files_db.dart @@ -1721,6 +1721,8 @@ class FilesDB { final result = await db.getAll( 'SELECT * FROM $filesTable ORDER BY $columnCreationTime DESC', ); + _logger.info("${result.length} rows in filesDB"); + final List files = await Computer.shared() .compute(convertToFilesForIsolate, param: {"result": result});