DB-EnginesInfluxDB: Focus on building software with an easy-to-use serverless, scalable time series platformEnglish
Deutsch
Knowledge Base of Relational and NoSQL Database Management Systemsprovided by solid IT

DBMS > Google Cloud Spanner vs. TiDB

System Properties Comparison Google Cloud Spanner vs. TiDB

Please select another system to include it in the comparison.

Our visitors often compare Google Cloud Spanner and TiDB with CockroachDB, MySQL and PostgreSQL.

Editorial information provided by DB-Engines
NameGoogle Cloud Spanner  Xexclude from comparisonTiDB  Xexclude from comparison
DescriptionA horizontally scalable, globally consistent, relational database service. It is the externalization of the core Google database that runs the biggest aspects of Google, like Ads and Google Play.TiDB is an open source distributed Hybrid Transactional/Analytical Processing (HTAP) database that supports MySQL and Spark SQL syntaxes.
Primary database modelRelational DBMSRelational DBMS
Secondary database modelsDocument store
DB-Engines Ranking infomeasures the popularity of database management systemsranking trend
Trend Chart
Score3.73
Rank#90  Overall
#47  Relational DBMS
Score3.29
Rank#94  Overall
#49  Relational DBMS
Websitecloud.google.com/­spannerpingcap.com
Technical documentationcloud.google.com/­spanner/­docsdocs.pingcap.com/­tidb/­stable
DeveloperGooglePingCAP, Inc.
Initial release20172016
Current release5.0.1, April 2021
License infoCommercial or Open SourcecommercialOpen Source infoApache 2.0
Cloud-based only infoOnly available as a cloud serviceyesno
DBaaS offerings (sponsored links) infoDatabase as a Service

Providers of DBaaS offerings, please contact us to be listed.
TiDB Cloud: Fully-managed TiDB Service. Bring everything great about TiDB to the cloud.
Implementation languageGo, Rust
Server operating systemshostedLinux
Data schemeyesyes
Typing infopredefined data types such as float or dateyesyes
XML support infoSome form of processing data in XML format, e.g. support for XML data structures, and/or support for XPath, XQuery or XSLT.nono
Secondary indexesyesyes
SQL infoSupport of SQLyes infoQuery statements complying to ANSI 2011yes
APIs and other access methodsgRPC (using protocol buffers) API
JDBC infoAt present, JDBC supports read-only queries. No support for DDL or DML statements.
RESTful HTTP API
JDBC
ODBC
Proprietary protocol
Supported programming languagesGo
Java
JavaScript (Node.js)
Python
Ada
C
C#
C++
D
Delphi
Eiffel
Erlang
Haskell
Java
JavaScript (Node.js)
Objective-C
OCaml
Perl
PHP
Python
Ruby
Scheme
Tcl
Server-side scripts infoStored proceduresnono
Triggersnono
Partitioning methods infoMethods for storing different data on different nodesShardinghorizontal partitioning (by key range)
Replication methods infoMethods for redundantly storing data on multiple nodesMulti-source replication with 3 replicas for regional instances.Using Raft consensus algorithm to ensure data replication with strong consistency among multiple replicas.
MapReduce infoOffers an API for user-defined Map/Reduce methodsyes infousing Google Cloud Dataflowyes infowith TiSpark Connector
Consistency concepts infoMethods to ensure consistency in a distributed systemImmediate ConsistencyImmediate Consistency
Foreign keys infoReferential integrityyes infoby using interleaved tables, this features focuses more on performance improvements than on referential integrityno infocurrently only supported in syntax
Transaction concepts infoSupport to ensure data integrity after non-atomic manipulations of dataACID infoStrict serializable isolationACID
Concurrency infoSupport for concurrent manipulation of datayesyes
Durability infoSupport for making data persistentyesyes
In-memory capabilities infoIs there an option to define some or all structures to be held in-memory only.nono
User concepts infoAccess controlAccess rights for users, groups and roles based on Google Cloud Identity and Access Management (IAM)Users with fine-grained authorization concept. No user groups or roles.
More information provided by the system vendor
Google Cloud SpannerTiDB
Specific characteristicsTiDB is an open-source NewSQL database built by PingCAP. TiDB supports Hybrid Transactional...
» more
Competitive advantagesIn the current database landscape, infrastructure engineers often have to use one...
» more
Typical application scenariosTiDB is designed to support both OLTP and OLAP scenarios. You can use TiDB , the...
» more
Key customersShopee (E-commerce) BookMyShow.com (E-commerce) Yiguo.com (E-commerce) JD Cloud &...
» more
Market metrics25K+ GitHub Stars for TiDB, and 8K+ GitHub Stars for TiKV 1.6K+ members in TiDB Community...
» more
Licensing and pricing modelsOpen Source Apache 2.0 with either commercial licensing or fully-hosted DB-as-a-service...
» more

We invite representatives of system vendors to contact us for updating and extending the system information,
and for displaying vendor-provided information such as key customers, competitive advantages and market metrics.

Related products and services

We invite representatives of vendors of related products to contact us for presenting information about their offerings here.

More resources
Google Cloud SpannerTiDB
Recent citations in the news

Google Cloud Spanner Gets Change Streams
6 April 2022, Datanami

Cloud Spanner Introduces Committed Use Discounts
19 March 2022, InfoQ.com

Database in the cloud: All about Google Cloud Spanner
29 October 2021, TechGenix

Google expands Cloud Spanner database with PostgreSQL
12 October 2021, TechTarget

Google Cloud Spanner Adds PostgreSQL Interface: Is PostgreSQL Now Standard for Cloud Databases?
29 October 2021, InfoQ.com

provided by Google News

PingCAP's TiDB Cloud Launches on Google Cloud Marketplace to Reach Developers Globally
7 June 2022, PR Newswire

PingCap brings TiDB distributed SQL HTAP database to cloud
11 May 2022, TechTarget

PingCAP recognized in 2022 Gartner® Peer Insights™ 'Voice of the Customer': Cloud Database Management Systems Report
16 June 2022, PR Newswire

PingCap TiDB 5.3 Supports Both High Volume Transaction Processing and Real-Time Analytics
4 January 2022, Database Trends and Applications

PlanetScale brings new insights to its database as a service
1 June 2022, TechTarget

provided by Google News

Job opportunities

Data Warehouse Engineer
Mercari, Palo Alto, CA

Application Engineer, Inventory and Order Management Supply Chain
Google, Sunnyvale, CA

Software Engineer, Backend (Omakase)
Mercari, San Francisco, CA

Managing Director, Product Activation, Google Cloud
Google, New York, NY

Senior Cloud Database Reliability Engineer
Credit Karma, Oakland, CA

Sales Account Executive- Remote
PingCAP, Remote

Maintenance Info and Data Specialist
CNH Industrial, Racine, WI

Technical Account Manager
PingCAP, Remote

Head of Strategic Partnerships
PingCAP, Remote

Software Engineer - Cash Cards
Explore Jobs Search, San Francisco, CA

jobs by Indeed



Share this page

Featured Products

Redis logo

The world’s most loved real‑time data platform.
Try free

The definitive guide for Cassandra

Imagine What You Could Do if Scalability Wasn‘t a Problem!
Download the Cassandra e-book for free!

Neo4j logo

See for yourself how a graph database can make your life easier.
Use Neo4j online for free.

Vertica logo

Vertica Accelerator. The fastest analytics and machine learning, delivered as SaaS, with automated setup, administration, and management. Free trial.

MariaDB logo

SkySQL, the ultimate
MariaDB cloud, is here.

Get started with SkySQL today!

Present your product here