Databases and ajax

Source: Internet
Author: User
The database and ajax younger brother recently tried to write an online chat room and encountered a chat record storage problem. Could you tell me if I have a database? my classmates asked me to store files and read them in ajax mode. He said that the existence of a database has a great impact on the performance, so I 'd like to ask, whether the file exists directly or in the database, or do you have any awesome methods to teach me? thank you very much ------ solution -------------------- put it in xml-database and ajax
The younger brother recently tried to write an online chat room and encountered a chat record storage problem. Could you tell me if I have a database? my classmates asked me to store files and read them in ajax mode. He said that the existence of a database has a great impact on the performance, so I 'd like to ask, whether it exists directly in the file or in the database, or do you have any tips to teach me? thank you very much.

------ Solution --------------------
Nice to put in xml
------ Solution --------------------
Open the directory where the database stores data and you will see files one by one. We can see that the database also stores data in files.
Since all files are read and written, how much impact on performance?


------ Solution --------------------
I personally think that saving files is less performance than the database (the chat room may not be able to see it, and it feels like a large amount of data)
It's just that the content in the chat room is a temporary session, so I feel that there is no need to store the database!
You can use xml!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.