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

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

More Related Content

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

What's hot

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

Similar to Heroku Postgres

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

More from Ayumu Aizawa

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

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