CodeBlanks Logo Icon CodeBlanks

Summary - Distributed and big data

Speed up an analytical query with columnar storage.

Summary - Distributed and big data

Distributed SQL: FDW for remote tables, MPP for parallel, columnar for OLAP, SQL on Hadoop for big data, NoSQL for flexible structure. Scale-out design ties them together.

-- FDW -> MPP -> columnar -> Hadoop
-- NoSQL: CAP seçer

Distributed data arrives five ways.

Practice Summary - Distributed and big data

Summary task: create the analytics table as columnar: WITH (format = 'columnar').

Starter code

query.sql
-- summary distributed
CREATE TABLE analytics (id INT, revenue NUMERIC)

Sample solution

query.sql
CREATE TABLE analytics (id INT, revenue NUMERIC) WITH (format = 'columnar');

Expected output

CREATE TABLE

Questions and answers

Review the lesson questions together with their answers. To test yourself, solve the lesson interactively.

1 Distributed foreign table

Question
CREATE FOREIGN TABLE remote_events (id INT) SERVER ____
Answer
CREATE FOREIGN TABLE remote_events (id INT) SERVER remote_server

Explanation: remote_server is the right answer.

2 Which workload suits columnar storage?

  • OLAP Correct answer
  • OLTP
  • Both
  • Files

Explanation: Columnar storage suits OLAP workloads.

3 Summary - Distributed and big data: match the terms

Term Meaning
FDW foreign table
MPP parallel
columnar columnar
Hadoop big data

All lessons in Expert