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

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.

主站蜘蛛池模板: 井冈山市| 通道| 古交市| 沁水县| 尤溪县| 松阳县| 阳高县| 偃师市| 凤山县| 新昌县| 洛宁县| 平陆县| 山东| 安国市| 台湾省| 西乌珠穆沁旗| 临海市| 元氏县| 武汉市| 沙河市| 马关县| 临邑县| 大理市| 新民市| 淳安县| 浪卡子县| 威宁| 湟源县| 福建省| 上饶市| 鄂托克旗| 登封市| 四川省| 慈溪市| 方正县| 玛多县| 和静县| 景泰县| 清水河县| 阿克苏市| 荣成市|