Skip to content

Commit

Permalink
Fixing documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrabinowitz committed Feb 28, 2020
1 parent 8415489 commit 07d3da5
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions presto-docs/src/main/sphinx/connector/bigquery.rst
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,3 @@ What is the Pricing for the Storage API?
See the `BigQuery pricing documentation
<https://cloud.google.com/bigquery/pricing#storage-api>`_.

Calling count(*) takes a long time
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
When calling ``SELECT count(*) FROM table``, Presto loads all the data from the
table and then counts the records. Unfortunately we cannot push this down to
the BigQuery side. The best workaround is to run the count on the smallest field
in the table (ideally a ``BOOLEAN`` or ``BIGINT``) like this: ``SELECT
count(some_field) FROM table``. This approach will load less data then running
``count(*)`` in the usual manner.

0 comments on commit 07d3da5

Please sign in to comment.