GithubHelp home page GithubHelp logo

Comments (2)

njanakiev avatar njanakiev commented on August 24, 2024

Data used is from http://examples.citusdata.com/customer_reviews_1998.csv.gz and http://examples.citusdata.com/customer_reviews_1999.csv.gz. Creation of cstore table:

CREATE EXTENSION  cstore_fdw;
CREATE SERVER cstore_server FOREIGN DATA WRAPPER cstore_fdw;

CREATE FOREIGN TABLE customer_reviews_cstore ( 
    customer_id TEXT, 
    review_date DATE, 
    review_rating INTEGER, 
    review_votes INTEGER, 
    review_helpful_votes INTEGER, 
    product_id CHAR(10), 
    product_title TEXT, 
    product_sales_rank BIGINT, 
    product_group TEXT, 
    product_category TEXT, 
    product_subcategory TEXT, 
    similar_product_ids CHAR(10)[] )
SERVER cstore_server OPTIONS(compression 'pglz');

COPY customer_reviews_cstore FROM '/home/user/customer_reviews_1998.csv' WITH CSV;
COPY customer_reviews_cstore FROM '/home/user/customer_reviews_1999.csv' WITH CSV;

Creation of table without cstore:

CREATE TABLE customer_reviews ( 
    customer_id TEXT, 
    review_date DATE, 
    review_rating INTEGER, 
    review_votes INTEGER, 
    review_helpful_votes INTEGER, 
    product_id CHAR(10), 
    product_title TEXT, 
    product_sales_rank BIGINT, 
    product_group TEXT, 
    product_category TEXT, 
    product_subcategory TEXT, 
    similar_product_ids CHAR(10)[]
);
    
COPY customer_reviews FROM '/home/user/customer_reviews_1999.csv' WITH CSV;
COPY customer_reviews  FROM '/home/user/customer_reviews_1999.csv' WITH CSV;

from cstore_fdw.

sdressler avatar sdressler commented on August 24, 2024

AFAICT, you will have to make use of partitions to see parallelism.

from cstore_fdw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.