MySQL資料庫SQL語句的C++ ODBC介面類測試結果 (轉載)

來源:互聯網
上載者:User
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.現有字元方式和圖形方式的資料管理工具,功能較齊全. 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.