对DB2、MySQL、PostgreSQL数据库的一些个人看法
最后研究了一下PostgreSQL,跟MySQL的比较,小量数据查询MySQL有明显的优势,大量数据速度差不多,稳定性方面PostgreSQL更胜一筹
研究了一下几个免费的数据库软件,目的当然是想减少license的费用了,以下是一些个人拙见,仅供参考。
第一个研究的是大名鼎鼎的DB2,这是在我心中一直很神秘一直没有接触过的一款数据库软件,传说中在银行业市场占有率非常高。于是兴致勃勃的下了一款下来DB2 Express-C,看了一下ibm的白皮书,最新款10.0最大的特点就是1颗cpu2g内存完全免费,而且内核跟企业版一模一样。看上去很诱人的样子,于是花了三天时间安装,体验,基本我想要看到的都还不错,IDE友好度,查询速度,和日常管理工具都还不错,,差点就让我下了perfect的结论。可惜的是,对于企业应用上,有一个致命伤,就是跟其他数据库交互方面非常不友好,貌似有好几个工具可以用,但是都特么的要钱买license,哎,买imb的license跟买ms的有啥区别呢?三天之后果断放弃。
第二个研究的是MySQL,这款db可能是开源界内最闪耀的明星了,几年前就小试牛刀了一次,不过木有深入一点研究,这次补上。MySQL的安装方面的资料网上一箩筐,随便找了篇经验介绍,我又上路了。初步测试下来,都还不错,正巧,一个朋友跟我聊到了PostgreSQL,谈到现在这两款开源db的区别,朋友告诉我在稳定性方面MySQL比PostgreSQL差一点,经过我大量提交transaction测试,MySQL完败,汗颜!(具体的测试报告就不方便放上来了)
最后研究了一下PostgreSQL,跟MySQL的比较,小量数据查询MySQL有明显的优势,大量数据速度差不多,稳定性方面PostgreSQL更胜一筹,最吸引我眼球的一个特点就是PostgreSQL的日常语法跟Oracle有90%相同,跟MSSQL也有80%相同,可以说能够以最小的代价移植oracle和mssql的应用。
结论:
1)如果要开发的新应用需要跟其他应用(Oracle or MSSQL)交互,不要选择DB2 Express-C。
2)如果transaction数量比较大,不要选择MySQL。
3)如果在稳定性方面要求比较高,不要选择MySQL。
4)如果是Oracle的应用移植,强烈建议选择PostgreSQL。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



MySQL and PostgreSQL: Best Practices in Web Development Introduction: In the modern world of web development, databases are an essential component. When choosing a database, common choices are MySQL and PostgreSQL. This article will cover best practices for using MySQL and PostgreSQL in web development and provide some code examples. 1. Applicable scenarios MySQL is suitable for most web applications, especially those that require high performance, scalability and ease of use.

MySQL and PostgreSQL: Performance Comparison and Optimization Tips When developing web applications, the database is an indispensable component. When choosing a database management system, MySQL and PostgreSQL are two common choices. They are both open source relational database management systems (RDBMS), but there are some differences in performance and optimization. This article will compare the performance of MySQL and PostgreSQL and provide some optimization tips. Performance comparison comparing two database management

MySQL and PostgreSQL: Data Security and Backup Strategies Introduction: In modern society, data has become an indispensable part of business and personal life. For database management systems, data security and backup strategies are crucial, both to protect data from loss or damage and to ensure the reliability and integrity of recovered data. This article will focus on the data security and backup strategies of two mainstream relational database systems, MySQL and PostgreSQL. 1. Data security: (1) User rights

Go language is a fast and efficient programming language suitable for building web services and back-end applications. PostgreSQL is an open source relational database management system that promises to provide higher reliability, scalability and data security. In this article, we’ll take a deep dive into using PostgreSQL with Go and provide some practical code examples and tips. Installing and setting up PostgreSQL First, we need to install and set up PostgreSQL. Can be found on the official website

Learn the database functions in the Go language and implement the addition, deletion, modification, and query operations of PostgreSQL data. In modern software development, the database is an indispensable part. As a powerful programming language, Go language provides a wealth of database operation functions and toolkits, which can easily implement addition, deletion, modification and query operations of the database. This article will introduce how to learn database functions in Go language and use PostgreSQL database for actual operations. Step 1: Install the database driver in Go language for each database

With the development of database technology, database management systems also present a variety of choices. Developers can choose the most suitable database according to their needs and preferences. As an advanced open source relational database system, PostgreSQL is attracting more and more attention and use by developers. So, how to use PostgreSQL database in PHP programming? 1. Install and configure the PostgreSQL database. Before using PostgreSQL, you need to install and configure it. first

With the development of the Internet, the amount of data continues to grow, and the need for data management becomes increasingly urgent. Relational database is an important way of data management, among which PostgreSQL is popular for its flexibility, scalability and security. This article introduces how to use the PHP language to implement an open source PostgreSQL relational database. I hope it will be helpful to developers with corresponding needs. Overview PostgreSQL is a powerful relational database system that follows the SQL standard and has many

MySQL and PostgreSQL: How to optimize database query performance? Overview: Database query performance is an important consideration when developing applications. Good query performance improves application responsiveness and user experience. This article will introduce some methods to optimize database query performance, focusing on two commonly used databases, MySQL and PostgreSQL. Optimization of database indexes: Database indexes are an important factor in improving query performance. Indexes can speed up data search and reduce query scanning time.
