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

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.

主站蜘蛛池模板: 莱芜市| 浑源县| 皮山县| 綦江县| 诸暨市| 德保县| 巴青县| 额敏县| 大宁县| 孙吴县| 福贡县| 平顺县| 克什克腾旗| 凌云县| 葫芦岛市| 麻城市| 乾安县| 文安县| 台安县| 甘谷县| 洛宁县| 奉贤区| 兴宁市| 衡阳县| 禄丰县| 泸水县| 泰安市| 平邑县| 大宁县| 开远市| 灵宝市| 广德县| 东丰县| 兴城市| 神池县| 湟源县| 安图县| 双柏县| 珲春市| 云南省| 大冶市|