-
Notifications
You must be signed in to change notification settings - Fork 77
Compact/optimize events.db #177
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
Comments
Hi @pe1uca
Did I read correctly, you like to tag photos with HomeGallery and would like to use these tags in another project? If so, have you checked the
At least for HomeGallery that should be not an issue. If these xmp files are written by another project the tags can be imported to HomeGallery, too. If the xmp sidecar is not a solution for your, what would be your benefit to compact the |
As mentioned, I'd like to leverage as much as possible the processing already done by HomeGallery. Reading the DB files of HomeGallery seems very productive as I also won't have to reimplement a way to watch changes to each index plus configure each of them in the other project.
I'm thinking it could speed up reading the file and applying the modifications to the tags. |
Exporting your tags (as your work) to a standard xmp sidecar file would unlock the "vendor lock" of HomeGallery. IMHO this strategy is better than understanding (and optimizing) implementation details of a "foreign" 3rd party software. I am more than happy if you could provide a compact command for events as PR. No doubt. But I am not convinced yet of the need for such command. On think would be great to export the tags as xmp sidecar file and than remove/purge these tags from events, so you can get rid of them - except you would like to get some meta info from the event, e.g. kind of history when which photo was edited...
Do you have facts regarding files that the reading and appending is a major issue in your processing? Could you post times? IMHO yes, by theory this particular issue could be improved. Considering the whole context of the gallery I guess this might not be a major issue in time and performance. Feel free to add features to the gallery which you miss as PR. If requested I could give support getting into the coding part. And please do not hesitate to ask further questions. |
Mostly a question but also a request if possible.
What would be the side effects of compacting the events' db?
By this I mean running a script to recreate the db with multiple lines for the same file into a single line.
From this
To this
It would be great to have a command like this
gallery.js events compact
for this process.My use case is to use the data from home-gallery into another project.
I know I would extract the data into xmp files, but that also means reprocessing all the directories, so I'd like to leverage as much as possible the processing home-gallery has already done.
The text was updated successfully, but these errors were encountered: