官术网_书友最值得收藏!

Why use a database

That's actually a fair question. After all, there are other storage mechanisms such as XML files, which could be used. But none of the other storage possibilities allow us the flexibility, and especially the programmability, of a database. A modern database is capable of holding many millions of records, while being able to search for and retrieve records fitting specific conditions. Exactly what we need to store for our CMS—the content or data.

Databases provide additional advantages over file-based storage such as our simple CMS or even an XML file. While a file on the system can get fragmented through constant changing, causing slower access times, data in a database can be changed at will without changing the access time. Compared to XML files, which get unwieldy after the size of the file exceeds the available memory resources, databases have near unlimited storage capacity. This means our CMS can scale from a simple family web site to a corporate publishing portal.

主站蜘蛛池模板: 弥勒县| 昌吉市| 滕州市| 社旗县| 扎兰屯市| 凌源市| 于都县| 镇坪县| 靖安县| 清河县| 宝鸡市| 仁布县| 潼关县| 临邑县| 盘山县| 太仆寺旗| 呼图壁县| 兰州市| 临海市| 泰和县| 德令哈市| 东丰县| 建阳市| 邯郸县| 富顺县| 利辛县| 治县。| 美姑县| 本溪| 公安县| 韩城市| 九江市| 南郑县| 桂阳县| 化州市| 星子县| 稷山县| 望城县| 阿克陶县| 云安县| 牡丹江市|