org-caldav icon indicating copy to clipboard operation
org-caldav copied to clipboard

Restricting sync to single file fails

Open tardigradus opened this issue 1 year ago • 3 comments

I have a lisp function for syncing my appointments from 'calendar.org' to a Nextcloud instance via Caldav. The variable org-caldav-inbox is set to calendar.org and org-caldav-files is set to nil.

However, when I run the function, all the files which contain IDs are considered, five files in total, including a large archive file. This makes the sync take rather a long time.

How do I restrict the sync to just a single file?

I am using GNU Emacs 27.1 with Org mode version 9.3 (release_9.3 @ /usr/share/emacs/27.1/lisp/org/)

tardigradus avatar Jun 22 '23 07:06 tardigradus

Yes, I've been wondering on this as well.

dschwilk avatar Jan 25 '24 21:01 dschwilk

I am not sure why you experience this problem. I am regularly syncing just a handful of files, the vast majority of my Org files with IDs aren't exported by org-caldav.

I would suggest to try with the latest version of Org to see if it improves things. There were some changes to org-id in recent years that improved performance.

Otherwise, a minimal example illustrating the problem would be helpful, preferably using emacs -q --load with a minimal init file.

jackkamm avatar Jan 26 '24 00:01 jackkamm

Thanks. I figured it out. I should have specified that it was not the sync that was the issue but that org-id was processing archived files. The issue was not org-caldav but org-id. I needed to set set org-id-search-archives to nil. Sorry for the noise. Thanks for maintaining org-caldav!

dschwilk avatar Jan 26 '24 15:01 dschwilk