orgzly / orgzly-android

Outliner for taking notes and managing to-do lists
https://www.orgzly.com
GNU General Public License v3.0
2.7k stars 304 forks source link

Sync one repo at a time #1016

Open amberin opened 1 year ago

amberin commented 1 year ago

I have started to use multiple Git repos (on my own PR branch #963). It works well, but syncing is painfully slow.

I haven't looked at the logic for the other repo types, but I believe Git syncing could be made a lot faster if we would group notebooks by repo before syncing them. This would speed up Git syncing even when using only a single repo.

Today, we loop over all notebooks, and sync them separately. (I have already moved git pushing out of this loop to save some time.)

But syncing repos separately would allow a much faster workflow for Git. There would be no need to loop over each notebook, and when there are changes, they could all go into a single commit.

For other repo types, looping over notebooks would still be possible, if necessary.

Can anyone see problems with this approach?