Migration/db indexeddb to sqlite#97
Merged
Merged
Conversation
…migrations Create Tag table schemas to test Kysely.
- Implement backend fetch methods. - Implement support for conjunction per criteria in search files. - Implement optional startup of the backend as a web worker. - Add a small delay before a heavy fetch in average to ensure loading animations start before the backend blocks the render thread, improving UX.
implement create and save methods and all the other interface methods.
…eries. Implements #69 - Reworked advanced search editor to edit conjunctions and nesting in groups. - Reworked saved searches panel to show and use sub-queries and sub-criteria.
…gration bugs for the backend in worker mode, and set them to always work in worker mode.
…sing for heavy database tasks. Fixes #86 This commit implements some refactors and new features aiming to enable the app to scale much better with larger gallery libraries. This should significantly reduce memory usage, improve loading times, and prevent app freezes or crashes when handling a huge amount of files. Now the app should be able to scale almost unlimitedly, the only limits being disk space and time when computing transversal operations across all records. - Implemented bidirectional cursor pagination in all the views except for missing files, now the app loads the files it needs when reaching the edges of the scroll instead of loading all the files in the view. - Implement a batch processor in an accumulator pattern to process huge sets of files, and refactor all the features that did a fetch-all to use it instead. - Implement specialized backend queries to compare added files, missing files and missing files reconciliation when manually syncing locations. - Refactored scroll positioning methods to work with the new fetching method.
…-indexeddb-to-sqlite
…oaded in the main view fileList. - Created optimized backend methods for bulk tagging and tag removal for files filtered by criteria. - Replaced all operations on file selection with contextual methods that dispatch the operation to the current selection or to all filtered files in batches.
…axvars limit was exceeded, now upsert methods insert in batches. - Added a cached fileCount to each tag, and removed ovservable based calculations. - Implemented batch based methods to update file counts to all or any sub set of tags. - Remove the Load tag file counts at startup option.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements a backend and database migration from Dexie to SQLite3 using Better-sqlite3 and Kysely, achieving better performance and scalability in general. This also adds several enhanced features now possible thanks to this migration.
New Features:
Optimizations: