How to Minimize Frequent Sync Tasks During Tiddler Editing

Hi everyone,

I just start using the newest tiddlywiki version instead of the one with the Bob plugin and I’ve noticed an issue with the syncer in my TiddlyWiki setup. Whenever I create or edit a tiddler, a sync task gets added for every keystroke. I’ve tried using Bob plugin before where a task is created only when the user explicitly clicks the save icon. However, without Bob, it seems to trigger these tasks continuously while typing.

Has anyone encountered this issue before? What would be the best way to debounce the syncer’s task creation or limit it to specific triggers ?

Thanks in advance for your help!

Hi @QuinNg and welcome to the forum.

In the Node.js configuration, TiddlyWiki in the browser tries to get outstanding changes to the server as quickly as possible. This is to minimise the risk of data loss which can occur if the browser crashes or exits before user entered data has been sent to the server.

The synchronisation process isn’t aware of the distinction between editing a draft and completing editing; it just sees a stream of changes to the tiddler store.

There is a configuration tiddler $:/config/SyncThrottleInterval which can be set to a numeric value giving the number of milliseconds that must elapse after a tiddler is changed before it is sent to the server. The default value is 1 second. You could increase this value to reduce the number of changes sent to the server while editing tiddlers, but you would be increasing the chances of data loss.

1 Like