Try our new research platform with insights from 80,000+ expert users

CockroachDB vs IBM Db2 Database comparison

 

Comparison Buyer's Guide

Executive SummaryUpdated on Mar 4, 2025

Review summaries and opinions

We asked business professionals to review the solutions they use. Here are some excerpts of what they said:
 

Categories and Ranking

CockroachDB
Ranking in Relational Databases Tools
12th
Average Rating
8.0
Reviews Sentiment
7.3
Number of Reviews
12
Ranking in other categories
No ranking in other categories
IBM Db2 Database
Ranking in Relational Databases Tools
6th
Average Rating
8.2
Reviews Sentiment
6.8
Number of Reviews
73
Ranking in other categories
No ranking in other categories
 

Mindshare comparison

As of April 2025, in the Relational Databases Tools category, the mindshare of CockroachDB is 3.7%, up from 2.5% compared to the previous year. The mindshare of IBM Db2 Database is 7.1%, up from 6.6% compared to the previous year. It is calculated based on PeerSpot user engagement data.
Relational Databases Tools
 

Featured Reviews

Antonio Tringali - PeerSpot reviewer
Open source with extensive documentation and a University for training
I am a freelancer. A client of mine wanted a solution that would allow them to scale yet not abandon the familiar PostgreSQL front-end (and rewrite a part of their source code). Scalability aside, CockroachDB is a fine way forward from PostgreSQL and is not changing the client source code part of the system. If you are lucky and you do not use newer features from recent versions of PostgreSQL or PostgreSQL extensions, it's fine. There are nice-to-have features for big organizations like regional tables. At the moment, my client simply does not use these. However, the serverless offer from CockroachDB is reacting well as data grows.
SimonHiggins - PeerSpot reviewer
Very scalable with high availability and excellent technical support
The good thing is that there are improvements coming with later function levels for the z/OS Db2. I'd like it if, with the operating system that we've got, z/OS, on the mainframe, it would allow us to refresh the hardware to run Linux dockers on the mainframe. This means this might give us opportunities for different ways of coming into the Db2 environment in the future. We just want a bit more integration with Linux. That said, we are already seeing Linux more readily available on the mainframe environment. Not only have we got the premium operating systems on OS. We can run LPARs on the same mainframe footprint that is also supporting Linux. This is what has improved and made the mainframe environment more competitive. We're also looking at AI for Db2 as well, and machine learning for the future. We know that AI has come out, that we're going to get that, and we're going to evaluate that product next year for Db2. That said, I haven't got any real complaints about Db2 on the mainframe. For the most part, a lot of the problems we have nowadays are to do with communication between the various teams that you would class as stakeholders.

Quotes from Members

We asked business professionals to review the solutions they use. Here are some excerpts of what they said:
 

Pros

"The tool's most valuable feature is node syncing, which takes only 0.54 milliseconds."
"CockroachDB is highly reliable."
"What I like best is its ability to solve data residency issues. The main advantage is auto geo partitioning, built into the product. This means we don't have to spin up separate servers in each region, which would be much more costly."
"The product has valuable security features."
"The best feature of CockroachDB is the ability to keep the nodes in different locations."
"The most valuable feature is that CockroachDB is a distributed database, which can deploy nodes running in different regions."
"The initial setup and deployment are simple."
"The subset of SQL that my client is using is completely supported."
"The structure is straightforward, consisting of the test file and the logical and physical files. You have one physical file and many logical files related to it."
"The solution has very good data compression of up to 50%. For example, if you have 50 terabytes of data, it can be reduced to 25 terabytes."
"It's the best solution in terms of security, performance, and availability because the system is available 24/7."
"I have found the most valuable feature to be its availability."
"I can easily export that to further work on it in Snowflake."
"The most valuable feature of IBM Db2 Database is its ability to perform automatic self-management, reducing the need for manual tasks such as managing logs and folders."
"it is very stable and runs smoothly once it is deployed and it is almost maintenance-free."
"It's easy to search and extract data from the warehouse using queries."
 

Cons

"I think the engine itself could be improved. If you miss a partition key, it should be able to be modeled. This is where AI could be really helpful. For example, if a user is from Australia, the system should know to look for their data there first instead of searching in the US or another continent."
"The product must improve its disaster recovery features."
"The initial setup and pricing could be improved."
"Cockroach does not support all types of protocols. I need to improve it myself to support a CouchDB on my network."
"We are looking for more features to support distributed high availability and geo-partitioning."
"The closer they can make CockroachDB to being completely compatible with Postgres, the better. It's almost compatible, but not completely. If it was, it would be nice to just be able to use Postgres libraries without any fiddling."
"I would like CockroachDB to have more compatibility with PostgreSQL, especially with the connection string and technical integrations."
"I find the serverless offer a bit confusing."
"It would be helpful to have more querying tools and more development tools for us to work easily with Microsoft."
"The price should be lower."
"In terms of improvements, IBM Db2 can improve its interface and its functionality. Also, the embedded functions should be much richer than the current ones - the functions which are embedded in the engine itself."
"They should simplify the management of Db2 as a relational database system. There should be the simplification of management. This is probably one of the most important asks for being successful in the future."
"IBM Db2 Database is not ACID compliant, which would improve it. Db2 lacks Isolation, so when two people are trying to update the same field at the same time it can become stuck. Other newer databases do not have this issue, such as Microsoft SQL, Oracle DB, PostgreSQL, and SAP HANA."
"Its process of building up queries could be more accessible."
"We need some time to improve the performance. We have to perform a weekly REORG, or else RUNSTATS for the databases."
"It would be ideal if the solution offered backup functionality. Many similar tools already do, which means Db2 is somewhat behind the curve in terms of what a customer might expect from it."
 

Pricing and Cost Advice

"The platform is affordable even for the enterprise version. It provides value for investment in terms of performance."
"The product's price depends on the user's company and the contract model they enter into with CockroachDB. Depending on the contract model one enters into with CockroachDB, the product may or may not be expensive."
"The solution's pricing is not cheap. However, the good thing is that customers are willing to pay for it if they want it."
"I've used CockroachDB at a small scale on the free accounts because we are only testing."
"The pricing is good but can be made cheaper. I would rate the pricing a five out of ten."
"The total cost of the solution depends upon the PVU licensing"
"The solution costs less than other products."
"It is expensive. The price depends on the size of the machine on which you are installing the Db2 and the features you are using. It also depends on the country. IBM has different policies and different options for payment for this product."
"They are competitive and honest (compared to how peer firms approach licensing conversations). ​"
"Among Microsoft SQL Server, Oracle, and Db2, Microsoft SQL Server is the cheapest one, and Oracle is the most expensive one. Db2 is in the middle. As compared to SQL Server, its price could go down. It will be good for customers."
"We don't see what the specific price of the DB2 license is because we pay for the backup license as a package."
"It is expensive."
"Compared to Oracle, it is so much cheaper."
report
Use our free recommendation engine to learn which Relational Databases Tools solutions are best for your needs.
844,944 professionals have used our research since 2012.
 

Top Industries

By visitors reading reviews
Financial Services Firm
37%
Computer Software Company
14%
Manufacturing Company
5%
Retailer
5%
Educational Organization
62%
Financial Services Firm
8%
Computer Software Company
4%
Government
4%
 

Company Size

By reviewers
Large Enterprise
Midsize Enterprise
Small Business
 

Questions from the Community

What do you like most about CockroachDB?
The subset of SQL that my client is using is completely supported.
What needs improvement with CockroachDB?
I would like CockroachDB to have more compatibility with PostgreSQL, especially with the connection string and technical integrations.
What is your primary use case for CockroachDB?
I am studying how to deploy CockroachDB and YugaByteDB, and learning some basic information about them. I am testing these databases as part of my school application to find a suitable database for...
What do you like most about IBM Db2 Database?
Db2 database scalability and performance capabilities match our database needs. It covers pretty much everything a database administrator or engineer might need.
What is your experience regarding pricing and costs for IBM Db2 Database?
IBM Db2 is an expensive solution. While I am not heavily involved with pricing, additional companies provide capabilities or products like those from BMC, which many installations might also purchase.
What needs improvement with IBM Db2 Database?
The user interface is old and needs to be improved. It doesn't match the responsive and suggestion-rich UI of cloud solutions. New functions don't come to mind.
 

Comparisons

 

Also Known As

No data available
DB2
 

Overview

 

Sample Customers

Baidu, Kindred, Tierion, Heroic Labs, Gorgias
Knorr-Bremse, Mizuho Bank Ltd., Australian Government Department of Defence, SCHWENK Zement, Friedhelm Loh Group, YAZAKI Europe Limited, Ekornes ASA, Baldor Electric, VSN Systemen BV, Lion Brewery (Ceylon) PLC, PLANSEE Group, TE Connectivity, Hansgrohe SE, Openmatics, University of Toronto
Find out what your peers are saying about CockroachDB vs. IBM Db2 Database and other solutions. Updated: March 2025.
844,944 professionals have used our research since 2012.