Concepts
-
Replication
Learn about Cloud Spanner replication, including replica types and their roles in reads and writes.
-
Instances
Learn about Cloud Spanner instances, instance configurations, compute capacity, and the tradeoffs between regional and multi-region instance configurations.
-
PostgreSQL interface
Learn about the PostgreSQL interface, which makes Cloud Spanner accessible from the open-source PostgreSQL ecosystem.
-
Schema and data model
Learn all about Cloud Spanner's schema and data model.
-
Schema design
Learn how to design Cloud Spanner schemas and load data into Cloud Spanner.
-
Schema updates
Learn how to update the schema of an existing database.
-
Views
Learn how to create and use views.
-
Secondary indexes
Learn how to increase query performance by using secondary indexes.
-
Data types
Learn about Cloud Spanner's supported data types and their properties.
-
Reads
Learn how to read Cloud Spanner data outside the context of read-only and read-write transactions.
-
Transactions
Learn about read-write and read-only transactions.
-
Partitioned DML
Learn about executing large-scale data updates without running into transaction limits.
-
DML best practices
Best practices for writing and executing DML statements.
-
Timestamp bounds
Read about timestamp bounds, which tell Cloud Spanner how to choose a timestamp at which to read data.
-
Commit timestamps
Learn how to automatically write the commit timestamp of a transaction into a column.
-
Foreign keys
Learn about foreign keys and when to use them.
-
TrueTime and external consistency
Read about TrueTime's benefits for Cloud Spanner and Cloud Spanner's external consistency property.
-
Access control with IAM
Read about the permissions and roles that you can set at the project, Cloud Spanner instance, and Cloud Spanner database levels.
-
PGAdapter
Learn about the PGAdapter sidecar proxy that supports the PostgreSQL interface for Cloud Spanner.
Performance tuning
-
SQL best practices
Learn best practices for optimizing SQL query performance in Cloud Spanner.
-
Query optimizer
Overview of Cloud Spanner's query optimizer.
-
Query execution plans
Understand Cloud Spanner query execution plans.
-
Efficient data loading
Learn how to efficiently load data into Cloud Spanner.
-
CPU utilization metrics
Understand the CPU utilization metrics available in the Cloud Console and Cloud Monitoring.
-
Latency metrics
Understand the latency metrics available in the Cloud Console and Cloud Monitoring.
-
Cloud Spanner end-to-end latency guide
Understand the high-level components involved in a Cloud Spanner API request, as well as how to extract, capture, and visualize latencies associated with these components to know the source of the latencies.
Introspection Tools
-
Overview
Learn about the introspection tools that are available to help you investigate issues with your database.
-
Oldest active queries
Which queries are currently active, and have been running longest?
-
Query statistics
Which queries are expensive, run frequently or scan a lot of data?
-
Read statistics
What reads or read shapes are causing high CPU usage?
-
Transaction statistics
What transactions are causing contention or other performance issues?
-
Lock statistics
What row key and table columns are the main sources of transaction lock conflicts?

