Skip to content
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

Speed up interactions by adding incremental sync option #261

Open
definitely4lt opened this issue Oct 23, 2024 · 0 comments
Open

Speed up interactions by adding incremental sync option #261

definitely4lt opened this issue Oct 23, 2024 · 0 comments

Comments

@definitely4lt
Copy link

definitely4lt commented Oct 23, 2024

For me, it can be quite slow to add/close tasks. I think is happening because we are always running a full sync command after most of these operations.

I was wondering whether someone might have ideas on how to make use of the incremental sync that the Todoist API offers. See here.

After each sync command, we should get back a sync_token. If we use this value when calling the next sync, instead of always passing * as is done now (see here), we should be able to speed up adding/closing tasks tremendously.

I think the easiest way would be to store the sync_token somewhere globally, and re-use it when calling the sync option.
Perhaps we can let users decide whether to turn on this incremental sync behavior by setting a feature flag somewhere, defaulting to doing a full sync every time (as is the current behavior).

Looking forward to hearing your thoughts! I'm happy to help to the contribution of this feature, although go is quite new for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant