Skip to content

Automatic file save strategies #244

Open
@Zsailer

Description

@Zsailer

In #241, there is some discussion happening about what strategy we should use for automatically saving the document. I think it's worth opening an issue here to discuss further.

There are two strategies currently mentioned:

  1. Trigger a save after each user action/activity + a document_save_delay (configurable by the user).
  2. Save on a regular interval (configurable by the user).

(1) is used today and follows the same pattern as e.g. Google docs and may match better user's expectations of RTC apps. But it comes with some downsides. First, during a period of heavy activity, the document may not be saved to disk for awhile, since each previous save task was cancelled by a previous task. Second, if changes come in at a frequency just longer than the document_save_delay, the document may be saved more often than desired.

(2) is simpler to implement. The downside is that it is rather inflexible and won't tune itself to number of edits coming in from the multiple users at once.

Thoughts?

Metadata

Metadata

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions