-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQLite DB with SQLAlchemy II #332
Conversation
This looks like a great barebones(ish) replacement to the JSON system so far, I think this is the best bet to get a SQL in the door without worrying about new schemas. Taking a look at your comments, I'm keeping track of the features that still need to be implemented. So far I can tell there's at least:
From my own precursory testing, when opening an existing library with 200 items (191 visible with extension list filter), it comes back with supposedly 20 invisible results and tells me that most if not all the items are "not in library yet", such as with the following log snippet:
Refreshing the library for new files also does not change anything here. Could be a case of the Windows paths acting funky somewhere, although that's just a surface-level guess. I would also recommend basing this against the Alpha-v9.4 branch whenever it feels right, that way the changes there don't come as a sudden surprise. I don't think there's much going on there that will get in the way of this, but new changes are new changes nonetheless. I don't expect this to be ready by 9.4, but if it were then I would give this precedent over any new feature PRs. I feel that this would likely be included in 9.5 along with the new search syntax additions (now that will need some work resolving). Please let me know what I can do to help speed this along or help smooth the transition in any way as well. Thank you so much for working on this! |
b112089
to
205d3d8
Compare
e382f89
to
8935b7a
Compare
206e4df
to
fd738d9
Compare
b2ed7e3
to
2b6067d
Compare
0a23888
to
deeaef7
Compare
262b532
to
704237f
Compare
I'll check out these changes soon and get back to you 👍 In the meantime, I noticed that the |
Yes, that's on purpose. It happened that there was some error when running the app a few times, but |
4e66377
to
679b9f8
Compare
679b9f8
to
60bf0f2
Compare
2d762cb
to
3e4153c
Compare
Thank you again SO MUCH for all of your hard work on this!! 🎉 |
This takes some parts which has been done in #190 and keep working on it further
The transfer from JSON backend to SQL backend isnt as simple as replacing
json.load()
withdb.select()
so there is a lot of more refactoring to do before this will be production ready. The current JSON implementation suffers with memleaks (see #208) and is slightly over-engineered at some places, so that's yet another reason for a refactoring.The reason why even open the PR at this time is to keep track of what's done, and to avoid potential duplication of work in case someone else would feel like working on the DB implementation. In such case, feel free to open PR against this branch.
Unfortunately I dont keep updating this branch with anything what's landing in the
main
branch, so by that time this will be any close to being done, themain
branch might divert very far.Migration process