MYSQL数据库SQL语句的C++ ODBC接口类测试结果
类别: 数据库教程
数据库表结构:
Database: xxx Table: yyy Rows: 10019
+-------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+-------------+------+-----+---------+-------+
| NAME | varchar(32) | | PRI | | |
| CNAME | varchar(32) | | | | |
| TYPE | char(1) | | | E | |
+-------+-------------+------+-----+---------+-------+
查询方式:
在表中的位置平均分布.
查询结果:
A.( 本地server,PII350/128M/8G)
a. 查询字符串.
total [1000 times] inquire time is 1.105382(s)
average time is 0.001105(s)
total [3000 times] sql time is 3.416125(s)
average time is 0.001139(s)
total [10000 times] sql time is 11.567662(s)
average time is 0.001157(s)
b. 插入记录( varchar(32),varchar(32),smallint)
total [7000 times] sql time is 7.545522(s)
average time is 0.000755(s)
B.( 100M局域网内server,PII350/128M/8G与PII400/128M/10G)
a. 插入记录( varchar(32),varchar(32),smallint)
total [10000 times] sql time is 8.480562(s)
average time is 0.000848(s)
b. 查询字符串.
total [10000 times] sql time is 9.493681(s)
average time is 0.000949(s)
测试结论:
1.MySQL作为免费的SQL数据库,查询效果如此,已能完全满足
一般系统的需要,可以采用.
2.MySQL 支持各种BLOB数据类型(大型字符串),可存储达600K,
16M,甚至4G大小的块数据,可考虑保存大型文件.但需保证
不同SQL库间的数据类型一致性.
3.现有字符方式和图形方式的数据管理工具,功能较齐全.
Database: xxx Table: yyy Rows: 10019
+-------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+-------------+------+-----+---------+-------+
| NAME | varchar(32) | | PRI | | |
| CNAME | varchar(32) | | | | |
| TYPE | char(1) | | | E | |
+-------+-------------+------+-----+---------+-------+
查询方式:
在表中的位置平均分布.
查询结果:
A.( 本地server,PII350/128M/8G)
a. 查询字符串.
total [1000 times] inquire time is 1.105382(s)
average time is 0.001105(s)
total [3000 times] sql time is 3.416125(s)
average time is 0.001139(s)
total [10000 times] sql time is 11.567662(s)
average time is 0.001157(s)
b. 插入记录( varchar(32),varchar(32),smallint)
total [7000 times] sql time is 7.545522(s)
average time is 0.000755(s)
B.( 100M局域网内server,PII350/128M/8G与PII400/128M/10G)
a. 插入记录( varchar(32),varchar(32),smallint)
total [10000 times] sql time is 8.480562(s)
average time is 0.000848(s)
b. 查询字符串.
total [10000 times] sql time is 9.493681(s)
average time is 0.000949(s)
测试结论:
1.MySQL作为免费的SQL数据库,查询效果如此,已能完全满足
一般系统的需要,可以采用.
2.MySQL 支持各种BLOB数据类型(大型字符串),可存储达600K,
16M,甚至4G大小的块数据,可考虑保存大型文件.但需保证
不同SQL库间的数据类型一致性.
3.现有字符方式和图形方式的数据管理工具,功能较齐全.
-= 资 源 教 程 =-
文 章 搜 索