-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Is it possible to use a custom type of DB? #6152
Comments
Using SQLite3 for anything database related is currently hardcoded. If it's just archives, it might be relatively easy to add an option to support backends other than SQLite. |
@Twi-Hard I've tested it on my local machine and it seems to work, but I had absolutely no experience using PostgreSQL before, so expect a few bugs and inefficient database usage. You need to tell me what needs improvements / changes, because I don't know any better myself. edit: I should mention |
Thank you so much :) |
Now that I thought about it some more, selecting a table name (optionally) would be optimal. The default could potentially be the category name. The issue I thought of is I have several archive files usually. Sometimes it's just an archive for media and an archive for jsons but sometimes I have ones for different subcategories or ones for postprocessors (like exec postprocessors for example). |
Technically. And now that you mention it: I completely forgot about post processor archives ... |
The thing with archive-prefix is wouldn't that still add everything to the same table? I assumed that could cause performance issues over time if it all piles up in one table. Regardless, I think the |
To give context of how big that table would be if it wasn't multiple tables, I have 4.9GB of archive files lol |
Post processor archives can now use PostgreSQL databases: fd4de02 I've also added an |
Been busy converting all my separate sqlite databases into a single psql database with |
I was wondering if anybody knows a method of using postgres for the archive files either directly or indirectly? I use gallery-dl on several different computers, and I've had to pick which computer handles which site because I have to keep the sqlite database local to that computer. I've tried putting in on a nfs share but that just makes it lock up. I use postgres for everything else already and it works over the network so all of the computers could contribute to the same database. The way I have things set up, I really depend on those archive files and usually can't use gallery-dl without them without running into trouble. Does anybody have any ideas? Thanks :)
The text was updated successfully, but these errors were encountered: