Movatterモバイル変換


[0]ホーム

URL:


Ayumu Aizawa, profile picture
Uploaded byAyumu Aizawa
1,597 views

Heroku Postgres

Embed presentation

http://postgres.heroku.comウィル・ラインウェバー   @leinweber   Heroku,Inc.
アーキテクチャ                   ArchitectureForce.com          Heroku 実行環境                          その他                                                        Others                     Heroku Runtime    Database.com                      Heroku Postgres
Database.com    Social Enterprise DBaaSHeroku Postgres   SQL Database-as-a-Service
データベースをつくってみよう  Let’s Provision a Database
heroku addons:add heroku-postgres:dev -a will
拡張機能           Value-Added FeaturesHeroku         PostgresPostgres           マネージドサービス           Management Services
拡張機能           Value-Added FeaturesHeroku         PostgresPostgres           マネージドサービス           Management Services
マネージドサービス Managed Services
DB管理者の仕事   DBA Tasks  セットアップ      Setup   管理・監視     Manage  セキュリティ     Security  バックアップ     Backup      拡張      Scale  データ定義/抽出     Query
DB管理者の仕事   DBA Tasks  セットアップ      Setup   管理・監視     Manage  セキュリティ     Security  バックアップ     Backup      拡張      Scale  データ定義/抽出     Query
24x365 監視体制  24x365 Monitoring ヘルスチェック    Health Checks継続的なデータ保全 Continuous Protection
拡張機能           Value-Added FeaturesHeroku         PostgresPostgres           マネージドサービス           Management Services
Postgres
100% 互換100% Compatibility
なぜPostgresなのか?    Why Postgres?
Users   Purchases        Products
CREATE TABLE products (    id integer NOT NULL,    title character varying(255),    description text,    price numeric(10,2));
CREATE TABLE users (    id integer NOT NULL,    first_name character varying(50),    last_name character varying(50),    email character varying(255), data hstore,    created_at timestamp without time zone,    updated_at timestamp without time zone,    last_login timestamp with time zone);
CREATE TABLE purchases (   id integer NOT NULL,  user_id integer,   items decimal(10,2) [][], occurred_at timestamp);                               items[x][0] = item_id                               items [x][1] = qty                               items [x][2] = price
データ型                   Data typesINSERT INTO purchases VALUES (  2, 2, '{{11.0, 1.0, 4.99}}', now());
その他の言語                  Other languadges  bigint polygon           moneytimestamp             date       booleaninterval     tz smallint  array     integer       UUID   serial          bytea            char             line        numeric   inet cidr                    point    circle                  time text          float    macaddr                   timetz        enum            varchar     tsquery       XML    path             tsvector timestamp box
その他の言語                       Other languadgesCREATE OR REPLACE FUNCTION total(decimal(10,2)[][])RETURNS decimal(10,2) AS $$DECLARE s decimal(10,2) := 0; x decimal[];BEGIN FOREACH x SLICE 1 IN ARRAY $1 LOOP  s := s + (x[2] * x[3]); END LOOP; RETURN s;END;$$ LANGUAGE plpgsql;
その他の言語         Other languadgesFOREACH x SLICE 1 IN ARRAY $1 LOOP  s := s + (x[2] * x[3]); END LOOP; RETURN s;
その他の言語                    Other languadgespython pgsql                     ruby         j    lolcode        lua                V8     R                   scheme  tcl                   SQL   psm            Java              sh       php      javascript
エクステンション                         ExtentionCREATE EXTENSION hstore;CREATE TABLE users (   id integer NOT NULL,   first_name character varying(50),   last_name character varying(50),   email character varying(255),   data hstore,   created_at timestamp without time zone,   last_login timestamp without time zone);
エクステンション                    ExtentionINSERT INTO usersVALUES (   1,   'Craig',   'Kerstiens',   'craig.kerstiens@gmail.com',   'sex => "M", state => "CA"',   now(),   now());
エクステンション                   Extentiondblink hstore     uuid-ossp trigram                                  pgstattuple      citext pgcrypto pgrowlocks  isn         ltree                  earthdistance      cube                        dict_int           tablefunc  fuzzystrmatch unaccent                         dict_xsyn                    btree_gist
拡張機能           Value-Added FeaturesHeroku         PostgresPostgres           マネージドサービス           Management Services
拡張機能Value-Added Features
Data Clipsデータを共有する最も簡単な方法The easiest way to share your data
+                           SELECT *本番データ                      FROM salesLive Production Data                           WHERE amount > 1
https://postgres.heroku.com/dataclips/{unique & secure hash}
Fork     データベースを完全な複製を作成A perfect, byte-for-byte clone of your database
ForkProduction   App
ForkProduction   App
ForkProduction   データの内部を安全に調査   App         Investigate data safty
Followワンクリックでレプリケーションを作成  Read replicas with a single click
FollowMasterDatabase                  書き込みトランザクション                    Write Transactions     Follower 1                  読み出しトランザクション     Follower 2     Read Transactions
MasterDatabase                  書き込みトランザクション                    Write Transactions     Follower 1                  読み出しトランザクション     Follower 2     Read Transactions
MasterDatabase                  書き込みトランザクション                    Write Transactions    New Master                  読み出しトランザクション     Follower 2     Read Transactions
ご清聴ありがとうございました     Heroku Postgres Workbokhttp://developerforcejp.s3.amazonaws.com/developer/docs/    workbook_heroku/workbook_heroku_postgres.pdf          http://postgres.heroku.com

Recommended

PPTX
SQLチューニング入門 入門編
PDF
fluentd を利用した大規模ウェブサービスのロギング
PDF
MongoDBとAjaxで作る解析フロントエンド&GraphDBを用いたソーシャルデータ解析
PDF
超実践 Cloud Spanner 設計講座
PDF
トレジャーデータ新サービス発表 2013/12/9
KEY
カジュアルにソースコードリーディング
PDF
Chugokudb study-20150131
PDF
MyNA JPUG study 20160220-postgresql-json-datatype
PDF
GPUとSSDがPostgreSQLを加速する~クエリ処理スループット10GB/sへの挑戦~ [DB Tech Showcase Tokyo/2017]
PPTX
EmbulkとDigdagとデータ分析基盤と
PDF
RailsエンジニアのためのSQLチューニング速習会
PDF
アプリ開発者、DB 管理者視点での Cloud Spanner 活用方法 | 第 10 回 Google Cloud INSIDE Games & App...
PDF
アナリティクスをPostgreSQLで始めるべき10の理由@第6回 関西DB勉強会
PDF
[db analytics showcase Sapporo 2018] B13 Cloud Spanner の裏側〜解析からベストプラクティスへ〜
PDF
PostgreSQL 10 新機能 @オープンセミナー香川 2017
PPTX
ServiceStackの紹介
PDF
ソーシャルゲーム案件におけるDB分割のPHP実装
PDF
PostgreSQL 10 新機能 @OSC 2017 Fukuoka
PDF
[GKE & Spanner 勉強会] Cloud Spanner の技術概要
PPTX
Ruby on Rails on MySQL チューニング入門
PPTX
Domino Query Language (DQL)
PDF
ElasticSearch+Kibanaでログデータの検索と視覚化を実現するテクニックと運用ノウハウ
PDF
Windows スクリプトセミナー WMI編 VBScript&WMI
PDF
AvailabilityZoneとHostAggregate
PDF
Spannerに関する技術メモ
PDF
DynamoDB MyNA・JPUG合同DB勉強会 in 東京
PDF
Sql database その裏側に迫る
PDF
Hackers Champloo 2016 postgresql-9.6
PDF
いまさら聞けないPostgreSQL運用管理
PDF
PostgreSQLアーキテクチャ入門(PostgreSQL Conference 2012)

More Related Content

PPTX
SQLチューニング入門 入門編
PDF
fluentd を利用した大規模ウェブサービスのロギング
PDF
MongoDBとAjaxで作る解析フロントエンド&GraphDBを用いたソーシャルデータ解析
PDF
超実践 Cloud Spanner 設計講座
PDF
トレジャーデータ新サービス発表 2013/12/9
KEY
カジュアルにソースコードリーディング
PDF
Chugokudb study-20150131
PDF
MyNA JPUG study 20160220-postgresql-json-datatype
SQLチューニング入門 入門編
fluentd を利用した大規模ウェブサービスのロギング
MongoDBとAjaxで作る解析フロントエンド&GraphDBを用いたソーシャルデータ解析
超実践 Cloud Spanner 設計講座
トレジャーデータ新サービス発表 2013/12/9
カジュアルにソースコードリーディング
Chugokudb study-20150131
MyNA JPUG study 20160220-postgresql-json-datatype

What's hot

PDF
GPUとSSDがPostgreSQLを加速する~クエリ処理スループット10GB/sへの挑戦~ [DB Tech Showcase Tokyo/2017]
PPTX
EmbulkとDigdagとデータ分析基盤と
PDF
RailsエンジニアのためのSQLチューニング速習会
PDF
アプリ開発者、DB 管理者視点での Cloud Spanner 活用方法 | 第 10 回 Google Cloud INSIDE Games & App...
PDF
アナリティクスをPostgreSQLで始めるべき10の理由@第6回 関西DB勉強会
PDF
[db analytics showcase Sapporo 2018] B13 Cloud Spanner の裏側〜解析からベストプラクティスへ〜
PDF
PostgreSQL 10 新機能 @オープンセミナー香川 2017
PPTX
ServiceStackの紹介
PDF
ソーシャルゲーム案件におけるDB分割のPHP実装
PDF
PostgreSQL 10 新機能 @OSC 2017 Fukuoka
PDF
[GKE & Spanner 勉強会] Cloud Spanner の技術概要
PPTX
Ruby on Rails on MySQL チューニング入門
PPTX
Domino Query Language (DQL)
PDF
ElasticSearch+Kibanaでログデータの検索と視覚化を実現するテクニックと運用ノウハウ
PDF
Windows スクリプトセミナー WMI編 VBScript&WMI
PDF
AvailabilityZoneとHostAggregate
PDF
Spannerに関する技術メモ
PDF
DynamoDB MyNA・JPUG合同DB勉強会 in 東京
PDF
Sql database その裏側に迫る
PDF
Hackers Champloo 2016 postgresql-9.6
GPUとSSDがPostgreSQLを加速する~クエリ処理スループット10GB/sへの挑戦~ [DB Tech Showcase Tokyo/2017]
EmbulkとDigdagとデータ分析基盤と
RailsエンジニアのためのSQLチューニング速習会
アプリ開発者、DB 管理者視点での Cloud Spanner 活用方法 | 第 10 回 Google Cloud INSIDE Games & App...
アナリティクスをPostgreSQLで始めるべき10の理由@第6回 関西DB勉強会
[db analytics showcase Sapporo 2018] B13 Cloud Spanner の裏側〜解析からベストプラクティスへ〜
PostgreSQL 10 新機能 @オープンセミナー香川 2017
ServiceStackの紹介
ソーシャルゲーム案件におけるDB分割のPHP実装
PostgreSQL 10 新機能 @OSC 2017 Fukuoka
[GKE & Spanner 勉強会] Cloud Spanner の技術概要
Ruby on Rails on MySQL チューニング入門
Domino Query Language (DQL)
ElasticSearch+Kibanaでログデータの検索と視覚化を実現するテクニックと運用ノウハウ
Windows スクリプトセミナー WMI編 VBScript&WMI
AvailabilityZoneとHostAggregate
Spannerに関する技術メモ
DynamoDB MyNA・JPUG合同DB勉強会 in 東京
Sql database その裏側に迫る
Hackers Champloo 2016 postgresql-9.6

Similar to Heroku Postgres

PDF
いまさら聞けないPostgreSQL運用管理
PDF
PostgreSQLアーキテクチャ入門(PostgreSQL Conference 2012)
PDF
PostgreSQLバックアップの基本
PDF
DTraceによるMySQL解析ことはじめ
PDF
外部データラッパによる PostgreSQL の拡張
PDF
C16 45分でわかるPostgreSQLの仕組み by 山田努
PDF
PostgreSQLアーキテクチャ入門(INSIGHT OUT 2011)
ODP
PostgreSQL 9.2 新機能 - OSC 2012 Kansai@Kyoto
PDF
20191211_Apache_Arrow_Meetup_Tokyo
PDF
PostgreSQLアーキテクチャ入門
PDF
PostgreSQLではじめるOSS開発@OSC 2014 Hiroshima
PDF
Cassandraとh baseの比較して入門するno sql
PDF
Extending PostgreSQL - PgDay 2012 Japan
PDF
20190119 aws-study-pg-extension
PDF
20181110 fok2018-pg-extension
KEY
My sql casual_in_fukuoka_vol1
PDF
PostgreSQL 9.2 新機能 - 新潟オープンソースセミナー2012
PDF
Chugokudb18_1
PDF
社会ネットワーク分析第7回
PDF
C27 基幹領域への適用におけるpostgre sqlの抱える課題 by 原嘉彦
いまさら聞けないPostgreSQL運用管理
PostgreSQLアーキテクチャ入門(PostgreSQL Conference 2012)
PostgreSQLバックアップの基本
DTraceによるMySQL解析ことはじめ
外部データラッパによる PostgreSQL の拡張
C16 45分でわかるPostgreSQLの仕組み by 山田努
PostgreSQLアーキテクチャ入門(INSIGHT OUT 2011)
PostgreSQL 9.2 新機能 - OSC 2012 Kansai@Kyoto
20191211_Apache_Arrow_Meetup_Tokyo
PostgreSQLアーキテクチャ入門
PostgreSQLではじめるOSS開発@OSC 2014 Hiroshima
Cassandraとh baseの比較して入門するno sql
Extending PostgreSQL - PgDay 2012 Japan
20190119 aws-study-pg-extension
20181110 fok2018-pg-extension
My sql casual_in_fukuoka_vol1
PostgreSQL 9.2 新機能 - 新潟オープンソースセミナー2012
Chugokudb18_1
社会ネットワーク分析第7回
C27 基幹領域への適用におけるpostgre sqlの抱える課題 by 原嘉彦

More from Ayumu Aizawa

PDF
Heroku Update
PDF
Heroku Inside
PDF
Heroku Getting Started
PDF
Heroku
PDF
(Ruby + Agile) x Cloud = Like!
PDF
Introducing Fn Project
PDF
Heroku Update Jul, 2013
PDF
Enterprise Heroku for Java
PDF
Heroku Changelog in 2013
PDF
Heroku Introduction
PDF
PaaSに適したアプリケーション設計 がもたらすメリット
PDF
Heroku HTTP API Design Guide
PDF
Heroku
PDF
Herokuのご紹介
PDF
Heroku - Forget Servers!!
PDF
カスタムアプリケーションプラットフォーム Salesforce Heroku ~ ソーシャルアプリケーションを支える技術 ~
PDF
Building scalablewebapps
PDF
Using Ruby2.0 on Heroku
PDF
Connected Products
PDF
Herokuのご紹介
Heroku Update
Heroku Inside
Heroku Getting Started
Heroku
(Ruby + Agile) x Cloud = Like!
Introducing Fn Project
Heroku Update Jul, 2013
Enterprise Heroku for Java
Heroku Changelog in 2013
Heroku Introduction
PaaSに適したアプリケーション設計 がもたらすメリット
Heroku HTTP API Design Guide
Heroku
Herokuのご紹介
Heroku - Forget Servers!!
カスタムアプリケーションプラットフォーム Salesforce Heroku ~ ソーシャルアプリケーションを支える技術 ~
Building scalablewebapps
Using Ruby2.0 on Heroku
Connected Products
Herokuのご紹介

Heroku Postgres

  • 1.
  • 2.
    アーキテクチャ ArchitectureForce.com Heroku 実行環境 その他 Others Heroku Runtime Database.com Heroku Postgres
  • 3.
    Database.com Social Enterprise DBaaSHeroku Postgres SQL Database-as-a-Service
  • 4.
  • 5.
  • 6.
    拡張機能 Value-Added FeaturesHeroku PostgresPostgres マネージドサービス Management Services
  • 7.
    拡張機能 Value-Added FeaturesHeroku PostgresPostgres マネージドサービス Management Services
  • 8.
  • 9.
    DB管理者の仕事DBA Tasks セットアップ Setup 管理・監視 Manage セキュリティ Security バックアップ Backup 拡張 Scale データ定義/抽出 Query
  • 10.
    DB管理者の仕事DBA Tasks セットアップ Setup 管理・監視 Manage セキュリティ Security バックアップ Backup 拡張 Scale データ定義/抽出 Query
  • 11.
    24x365 監視体制24x365 Monitoring ヘルスチェック Health Checks継続的なデータ保全 Continuous Protection
  • 12.
    拡張機能 Value-Added FeaturesHeroku PostgresPostgres マネージドサービス Management Services
  • 13.
  • 14.
  • 15.
  • 16.
    UsersPurchases Products
  • 17.
    CREATE TABLE products(    id integer NOT NULL,    title character varying(255),    description text,    price numeric(10,2));
  • 18.
    CREATE TABLE users(    id integer NOT NULL,    first_name character varying(50),    last_name character varying(50),    email character varying(255), data hstore,    created_at timestamp without time zone,    updated_at timestamp without time zone,    last_login timestamp with time zone);
  • 19.
    CREATE TABLE purchases( id integer NOT NULL,  user_id integer,   items decimal(10,2) [][], occurred_at timestamp); items[x][0] = item_id items [x][1] = qty items [x][2] = price
  • 20.
    データ型 Data typesINSERT INTO purchases VALUES ( 2, 2, '{{11.0, 1.0, 4.99}}', now());
  • 21.
    その他の言語 Other languadges bigint polygon moneytimestamp date booleaninterval tz smallint array integer UUID serial bytea char line numeric inet cidr point circle time text float macaddr timetz enum varchar tsquery XML path tsvector timestamp box
  • 22.
    その他の言語 Other languadgesCREATE OR REPLACE FUNCTION total(decimal(10,2)[][])RETURNS decimal(10,2) AS $$DECLARE s decimal(10,2) := 0; x decimal[];BEGIN FOREACH x SLICE 1 IN ARRAY $1 LOOP s := s + (x[2] * x[3]); END LOOP; RETURN s;END;$$ LANGUAGE plpgsql;
  • 23.
    その他の言語 Other languadgesFOREACH x SLICE 1 IN ARRAY $1 LOOP s := s + (x[2] * x[3]); END LOOP; RETURN s;
  • 24.
    その他の言語 Other languadgespython pgsql ruby j lolcode lua V8 R scheme tcl SQL psm Java sh php javascript
  • 25.
    エクステンション ExtentionCREATE EXTENSION hstore;CREATE TABLE users ( id integer NOT NULL, first_name character varying(50), last_name character varying(50), email character varying(255), data hstore, created_at timestamp without time zone, last_login timestamp without time zone);
  • 26.
    エクステンション ExtentionINSERT INTO usersVALUES ( 1, 'Craig', 'Kerstiens', 'craig.kerstiens@gmail.com', 'sex => "M", state => "CA"', now(), now());
  • 27.
    エクステンション Extentiondblink hstore uuid-ossp trigram pgstattuple citext pgcrypto pgrowlocks isn ltree earthdistance cube dict_int tablefunc fuzzystrmatch unaccent dict_xsyn btree_gist
  • 28.
    拡張機能 Value-Added FeaturesHeroku PostgresPostgres マネージドサービス Management Services
  • 29.
  • 30.
  • 31.
    + SELECT *本番データ FROM salesLive Production Data WHERE amount > 1
  • 32.
  • 34.
    Fork データベースを完全な複製を作成A perfect, byte-for-byte clone of your database
  • 35.
  • 36.
  • 37.
    ForkProductionデータの内部を安全に調査 App Investigate data safty
  • 38.
  • 39.
    FollowMasterDatabase 書き込みトランザクション Write Transactions Follower 1 読み出しトランザクション Follower 2 Read Transactions
  • 40.
    MasterDatabase 書き込みトランザクション Write Transactions Follower 1 読み出しトランザクション Follower 2 Read Transactions
  • 41.
    MasterDatabase 書き込みトランザクション Write Transactions New Master 読み出しトランザクション Follower 2 Read Transactions
  • 42.
    ご清聴ありがとうございました Heroku Postgres Workbokhttp://developerforcejp.s3.amazonaws.com/developer/docs/ workbook_heroku/workbook_heroku_postgres.pdf http://postgres.heroku.com

[8]ページ先頭

©2009-2025 Movatter.jp