对于存储信息,有许多可行的解决方案,从使用基本的文本文件,直到使用完全成熟的关系数据库解决方案,比如 IBM DB2 数据库服务器。
There are many possible solutions for storing information, from using basic text files up to a full blown relational solution like the IBM DB2 database server.
对于与本文中类似的基于Web的应用程序来说,使用文本文件存储数据的做法并不实用,因为极有可能会出现并发访问的情况。
Text files are impractical for storing data in a Web-based application like this because of the high-level concurrency potential.
文本文件的压缩率平均为70%左右;而对于更复杂更难于压缩的文件(例如图像),其压缩率大约10%。
Compression for text files tends to average around 70 percent and for more complex and difficult-to-compress files, such as images, it tends to be around 10 percent.
应用推荐