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

Autosave form #77

Open
dangerdak opened this issue Oct 12, 2017 · 1 comment
Open

Autosave form #77

dangerdak opened this issue Oct 12, 2017 · 1 comment

Comments

@dangerdak
Copy link
Collaborator

Autosave form so users don't accidentally lose work.

Could be every time a field is changed, or periodically...

relates #53

@dangerdak dangerdak added this to the MIlestone 2 milestone Oct 12, 2017
@dangerdak dangerdak modified the milestones: MIlestone 2, milestone 3 Oct 30, 2017
@polyccon
Copy link
Collaborator

polyccon commented Nov 27, 2017

Automatically saving web form data article
useful advice on best approach to autosave

This is a non-code answer to your question.

There is no good way to do this. You can make the updates based on X amount of words, or you can make it every character, or even every second. The problem is that is tons of connections.
It is resource and bandwidth heavy, requiring you to use an internet connection every time you want to save. Then you have the problem regarding what you want to send to the database?
How do you check to see what the database already has? Do you just resend the entire thing?
These are all questions that you must answer. But essentially it is the same as it is now... except you have >some sort of code (as i mentioned character change, word change, time change) and will then push either >the entire text / field. or just what it doesn't have into the database.

So there is no GOOD way to do it. If I had to do it, I would store the info locally. Then lets say once every 30 sec, update it and send only the changed characters to the database.

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

No branches or pull requests

2 participants