Home > php教程 > php手册 > MySQL数据库SQL语句的C++ ODBC接口类测试结果 (转载)

MySQL数据库SQL语句的C++ ODBC接口类测试结果 (转载)

WBOY
Release: 2016-06-21 09:09:04
Original
1882 people have browsed it

c++|mysql|odbc|数据|数据库|语句

发信人: engineer (剑胆琴心~还是得走,sigh...), 信区: Linux
标  题: MySQL数据库SQL语句的C++ ODBC接口类测试结果 (转载)
发信站: BBS 水木清华站 (Mon Aug  9 18:03:47 1999)
  
【 以下文字转载自 Database 讨论区 】
【 原文由 engineer 所发表 】
        MySql数据库SQL语句的C++ ODBC接口类测试结果
  
                  engineer    1999.8.7
  
数据库表结构:
  
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.现有字符方式和图形方式的数据管理工具,功能较齐全. 



Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template