Need advice about which tool to choose?Ask the StackShare community!

Google BigQuery

1.7K
1.5K
+ 1
152
PostGIS

381
377
+ 1
30
Add tool

Google BigQuery vs PostGIS: What are the differences?

Introduction

Google BigQuery and PostGIS are two popular database systems used for analyzing and managing spatial data. While both systems offer capabilities for working with geospatial data, there are several key differences between the two.

  1. Data Storage: Google BigQuery is a cloud-based service that stores data in a distributed manner, making it highly scalable and suitable for handling large datasets. In contrast, PostGIS is an extension of the PostgreSQL database, storing data in a traditional relational manner.

  2. Spatial Indexing: PostGIS has built-in support for spatial indexing using various indexing methods like R-tree, GiST, and B-tree. This allows for efficient spatial queries and operations on large datasets. On the other hand, Google BigQuery does not provide native support for spatial indexing, making spatial queries potentially slower and less efficient.

  3. SQL Functions: PostGIS offers a rich set of SQL functions specifically designed for spatial data processing. These functions include distance calculations, overlays, spatial joins, and more. While Google BigQuery also supports SQL, its spatial function library is more limited compared to PostGIS.

  4. Data Import and Export: Google BigQuery supports easy integration with other Google Cloud services, allowing for seamless data import and export from various sources like Cloud Storage, Cloud Pub/Sub, and more. PostGIS, being a PostgreSQL extension, offers a wide range of import and export options but might require additional configuration and setup.

  5. Data Visualization: Google BigQuery provides built-in data visualization capabilities, allowing users to create charts, graphs, and dashboards directly within the platform. PostGIS, being a database management system, does not have built-in visualization tools, and users need to use external tools or applications for data visualization.

  6. Cost Structure: Google BigQuery follows a pay-per-use pricing model, where users are charged based on the amount of data processed and the number of queries run. In contrast, PostGIS is typically deployed on self-managed servers, with costs associated with hardware, maintenance, and administration.

In Summary, Google BigQuery is a cloud-based, scalable database service with limited spatial functions and built-in data visualization capabilities. PostGIS is an extension of PostgreSQL, offering rich spatial functionality with native spatial indexing, numerous SQL functions, and flexible data import/export options.

Decisions about Google BigQuery and PostGIS
Julien Lafont

Cloud Data-warehouse is the centerpiece of modern Data platform. The choice of the most suitable solution is therefore fundamental.

Our benchmark was conducted over BigQuery and Snowflake. These solutions seem to match our goals but they have very different approaches.

BigQuery is notably the only 100% serverless cloud data-warehouse, which requires absolutely NO maintenance: no re-clustering, no compression, no index optimization, no storage management, no performance management. Snowflake requires to set up (paid) reclustering processes, to manage the performance allocated to each profile, etc. We can also mention Redshift, which we have eliminated because this technology requires even more ops operation.

BigQuery can therefore be set up with almost zero cost of human resources. Its on-demand pricing is particularly adapted to small workloads. 0 cost when the solution is not used, only pay for the query you're running. But quickly the use of slots (with monthly or per-minute commitment) will drastically reduce the cost of use. We've reduced by 10 the cost of our nightly batches by using flex slots.

Finally, a major advantage of BigQuery is its almost perfect integration with Google Cloud Platform services: Cloud functions, Dataflow, Data Studio, etc.

BigQuery is still evolving very quickly. The next milestone, BigQuery Omni, will allow to run queries over data stored in an external Cloud platform (Amazon S3 for example). It will be a major breakthrough in the history of cloud data-warehouses. Omni will compensate a weakness of BigQuery: transferring data in near real time from S3 to BQ is not easy today. It was even simpler to implement via Snowflake's Snowpipe solution.

We also plan to use the Machine Learning features built into BigQuery to accelerate our deployment of Data-Science-based projects. An opportunity only offered by the BigQuery solution

See more
Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Google BigQuery
Pros of PostGIS
  • 28
    High Performance
  • 25
    Easy to use
  • 22
    Fully managed service
  • 19
    Cheap Pricing
  • 16
    Process hundreds of GB in seconds
  • 12
    Big Data
  • 11
    Full table scans in seconds, no indexes needed
  • 8
    Always on, no per-hour costs
  • 6
    Good combination with fluentd
  • 4
    Machine learning
  • 1
    Easy to manage
  • 0
    Easy to learn
  • 25
    De facto GIS in SQL
  • 5
    Good Documentation

Sign up to add or upvote prosMake informed product decisions

Cons of Google BigQuery
Cons of PostGIS
  • 1
    You can't unit test changes in BQ data
  • 0
    Sdas
    Be the first to leave a con

    Sign up to add or upvote consMake informed product decisions

    - No public GitHub repository available -

    What is Google BigQuery?

    Run super-fast, SQL-like queries against terabytes of data in seconds, using the processing power of Google's infrastructure. Load data with ease. Bulk load your data using Google Cloud Storage or stream it in. Easy access. Access BigQuery by using a browser tool, a command-line tool, or by making calls to the BigQuery REST API with client libraries such as Java, PHP or Python.

    What is PostGIS?

    PostGIS is a spatial database extender for PostgreSQL object-relational database. It adds support for geographic objects allowing location queries to be run in SQL.

    Need advice about which tool to choose?Ask the StackShare community!

    What companies use Google BigQuery?
    What companies use PostGIS?
    Manage your open source components, licenses, and vulnerabilities
    Learn More

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with Google BigQuery?
    What tools integrate with PostGIS?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    Blog Posts

    Aug 28 2019 at 3:10AM

    Segment

    PythonJavaAmazon S3+16
    7
    2764
    Jul 2 2019 at 9:34PM

    Segment

    Google AnalyticsAmazon S3New Relic+25
    10
    7020
    GitHubPythonNode.js+47
    55
    73201
    JavaScriptGitHubNode.js+26
    20
    5167
    What are some alternatives to Google BigQuery and PostGIS?
    Google Cloud Bigtable
    Google Cloud Bigtable offers you a fast, fully managed, massively scalable NoSQL database service that's ideal for web, mobile, and Internet of Things applications requiring terabytes to petabytes of data. Unlike comparable market offerings, Cloud Bigtable doesn't require you to sacrifice speed, scale, or cost efficiency when your applications grow. Cloud Bigtable has been battle-tested at Google for more than 10 years—it's the database driving major applications such as Google Analytics and Gmail.
    Amazon Redshift
    It is optimized for data sets ranging from a few hundred gigabytes to a petabyte or more and costs less than $1,000 per terabyte per year, a tenth the cost of most traditional data warehousing solutions.
    Hadoop
    The Apache Hadoop software library is a framework that allows for the distributed processing of large data sets across clusters of computers using simple programming models. It is designed to scale up from single servers to thousands of machines, each offering local computation and storage.
    Snowflake
    Snowflake eliminates the administration and management demands of traditional data warehouses and big data platforms. Snowflake is a true data warehouse as a service running on Amazon Web Services (AWS)—no infrastructure to manage and no knobs to turn.
    Google Analytics
    Google Analytics lets you measure your advertising ROI as well as track your Flash, video, and social networking sites and applications.
    See all alternatives