简体   繁体   中英

Autosave on PHP+mysql every few minutes

I have a site (php) with a text editor that I want to be saved automatically every few minutes (on mysql) and I wanted to consult with you about this.

(You may know this behavior from the Google Docs platform.)

Won't it kill my DB if I'll call it again and again? Is their a known approach for this type of feature? Does it matter if I save every minute or every type that the user is doing?

Any tips that can help me start with this feature?

It depends on your server and the amount of data saved to mysql, tell us more why do you want to save text editor data to database, i m pretty sure there sa better way to do this.

If you want to save data for users, you should use local storage, you can do it using JQuery plugins:

Ex: http://www.jstorage.info/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM