-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor file handling and improve performance in FileDao
The code refactor includes moving the declaration of currentRoom to a narrower scope, for better resource management. Moreover, I improved the performance in file handling by retrieving parent folders for multiple files in a single database call, instead of making separate calls for each file in the DocumentService. This should significantly reduce the time needed to retrieve parent folder information, especially when dealing with a large number of files.
- Loading branch information
1 parent
c777ae0
commit 81dfdb6
Showing
2 changed files
with
63 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters