|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
不断巩固,摸透大部分PHP常用函数,并可理解OOP,MYSQL优化,以及模板 在PHP项目开辟中,良多架构都是:Smarty + ADODB来做的,由于Smarty功效壮大,超越了任何模板处置类,出格是缓存手艺。ADODB功效壮大,远远超越了PEAR::DB处置类,所以大局部人都选择ADODB做数据库笼统类,然而adodb类库十分复杂,运转速度十分慢,如许也是局部开辟人员选择pear DB的缘由。
然而,如今为止,这个景象要改动了,由于出来了一个ADODB的小型版: ADODB Lite
据官方网站引见说:
撑持了一切PHP能撑持的盛行数据库.并且听说比本来的老版本快了良多.
只需求完全版的1/6内存,完整兼容ADODB,据官方说法,可以完整不要修改代码的情形下移植到ADODB Lite下。
看官方网站的说法:
ADOdb Lite was a result of a need for a very small, fast ADOdb library for a browser based game we have been working on for over two years called Alien Assault Traders.
We noticed that the ADOdb package was consuming over 640k of ram for each HTTP access. This was even greater than the amount used by the biggest PHP program file used in the game. In effect the ADODB library was consuming vastly more resources than the game itself. This greatly restricts the number of players that can be online at the same time in respect to the amount of memory required by each client.
Currently, ADOdb Lite uses 80-85k of system ram for each HTTP access. This is about an 87% smaller memory footprint. A side benefit is an increase in speed. The speed increase will vary depending upon the database. This is also a great replacement for extremely HIGH traffic web sites.
We decided to create an ADO database library that was compatible with ADOdb and used far less memory when executed. This library has a very restricted command set and eliminates most of the esoteric commands that will not be used by most websites.
ADOdb Lite is a drop in replacement for ADOdb as long as you are not using unsupported commands on your website.
The following databases are supported:
Databasetype Designator (Database Name)
fbsq (Frontbase)
maxdb (Max DB)
msql (Mini SQL)
mssql (Microsoft SQL)
mysql (MySql)
mysqli (MySql Improved)
mysqlt (MySql w/transactions)
postgres (PostGres)
postgres64 (PostGres 6.4)
postgres7 (PostGres 7)
sqlite (SqLite)
sybase (SyBase)
The only databases that have been fully tested are the MySql databases. Drivers have been provided for the other databases and they should work. I would appreciate it if users would report how well the other database drivers function.
几乎是。。。呵呵,我想是很多PHP开辟者的喜好,由于处理了速度成绩。
ADODB Lite 今朝最新版本是:0.0.6
官方网站:http://adodblite.sourceforge.net/
算是1个熟悉的过程,所以c语言的基础有就更好,没有也不怕。 |
|