在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/
PS:据它官方网站说,ADODB + Smarty和ADODB Lite + Smarty-Light是最佳组合,呵呵。
by heiyeluren
2005-07-12
分享到:
相关推荐
PHP数据库抽象层:是指封装了数据库底层的操作的,介于PHP逻辑程序代码和数据库之间的中间件。这就意味当从一个数据库系统向另一个数据库系统迁移时,几乎不用更改太多的程序代码,屏蔽不同数据库之间的差异 PDO:...
PHP adodb5 数据库操作类 PHP adodb5 数据库操作类 PHP adodb5 数据库操作类
PHP100视频教程81:ADODB.PHP.数据库万能引擎类(下).zip
PHP100视频教程80:ADODB.PHP.数据库万能引擎类(上).rar
ADODB的是一个PHP数据库抽象库,目前还有一个Python版本。它支持的数据库非常多有:MySQL,PostgreSQL,Interbase/Firebird,Informix,Sybase SQL Anywhere,Oracle,MS SQL7/2000,SAP DB,Sybase,DB2,FrontBase...
php环境下用于操作mysql,oracle,DB,Sybase,mSql等的通用操作数据库的类
资源介绍:ADODB数据库类操作实例易语言源码资源作者:三叶自学网资源界面:资源下载:
例程程序结合易语言ADO对象实现ADODB数据库操作。本次新增连接Excel_2007,备兼容性好,支持xlsx格式,也向下兼容。@易语言数据库。
PHP数据库操作类ADODB 详解
1、ADODB 在PHP中规范各类数据库的链接和使用 2、ADODB 帮助我们在PHP提供开发效率和快速转换各类数据库 3、ADODB 使用相对简单,容易上手 4、ADODB 写作要求有时要求比较严谨,注意大小写。 5、ADODB 内置函数比较...
一个 php使用adodb类库操作数据库-类的封装,分数据库连接类和数据库管理类,为成员变量赋值,实现与不同数据库的连接并返回连接对象,定义方法,参数为SQl语句和连接数据库返回的对象。 立即下载
adodb 是一个使用 ADODB 查询数据库的类 adodb的主要方法是adodb.query [res, isSuccess] = adodb.query(sql, ado_connection_string),查询ado_connection_string 指定的数据库。 ado_connection_string 可以是连接...
源码通过创建ADODB.Connection对象实现了ADODB数据库操作。@易语言源码。
里面有IP查询的易语言黑月版源代码。 黑月ADODB数据库操作类模块(例子源码)
易语言黑月ADODB数据库操作类1.33版模块源码,黑月ADODB数据库操作类1.33版模块,创建新Access数据库文件,添加Access数据库表,是否创建,最后错误,取对象,IsOk1,GetState,取指针位置,置指针位置,连接Excel,连接Excel_...
黑月ADODB类 数据库操作模块使用超详细例程
ADODB数据库类操作实例.rar
Access数据库与ADODB编程入门。