• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
CakePHP + PostgreSQL
 

CakePHP + PostgreSQL

on

  • 7,802 views

 

Statistics

Views

Total Views
7,802
Views on SlideShare
7,178
Embed Views
624

Actions

Likes
0
Downloads
0
Comments
0

8 Embeds 624

http://www.1x1.jp 582
http://www.slideshare.net 30
http://webcache.googleusercontent.com 4
http://localhost 3
http://s.deeeki.com 2
http://www.hanrss.com 1
http://192.168.1.102:10080 1
http://www.slideee.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

CakePHP + PostgreSQL CakePHP + PostgreSQL Presentation Transcript

  • CakePHP PostgreSQL ×
  • First Mac
  • (Masashi Shinbara)
  • (Masashi Shinbara) ×
  • (Masashi Shinbara) ×
  • (Masashi Shinbara) × /shin1x1
  • (Masashi Shinbara) × /shin1x1 Shin x blog http://www.1x1.jp/blog/
  • PostgreSQL • Oracle / Access(mdb) • 2000 PostgreSQL7.0 • Oracle • DB
  • Agenda • CakePHP • • pgpool-II + Slony-1
  • CakePHP
  • Oracle SQLServer
  • EASY Oracle SQLServer
  • EASY Oracle SQLServer TEST
  • EASY Oracle CUSTOM SQLServer TEST
  • POPULAR EASY Oracle CUSTOM SQLServer TEST
  • 2007
  • 2007 2008
  • 2007 2008 2009
  • Cake 2008 2009
  • SNS
  • pgpool-II + Slony-1
  • pgpool-II • CakePHP PostgreSQL • • Web/AP
  • Slony-I • • • slonik
  • CakePHP • DB pgpool-II •
  • DB <?php class DATABASE_CONFIG { var $default = array( 'connect' => 'pg_connect', 'driver' => 'postgres', 'persistent' => false, 'host' => 'localhost', 'port' => '9999', 'login' => '1x1', 'password' => '', 'database' => 'hoge', );
  • pgpool-II • • • • SQL • •
  • pgpool-II UPDATE users SET name='abc'; BEGIN; SELECT COUNT(*) FROM users; INSERT INTO users(name) VALUES('abc'); COMMIT; /**/ SELECT * FROM users; SELECT * FROM users;
  • pgpool-II UPDATE users SET name='abc'; BEGIN; SELECT COUNT(*) FROM users; INSERT INTO users(name) VALUES('abc'); COMMIT; /**/ SELECT * FROM users; SELECT * FROM users;
  • pgpool-II UPDATE users SET name='abc'; BEGIN; SELECT COUNT(*) FROM users; INSERT INTO users(name) VALUES('abc'); COMMIT; /**/ SELECT * FROM users; SELECT * FROM users;
  • pgpool-II UPDATE users SET name='abc'; BEGIN; SELECT COUNT(*) FROM users; INSERT INTO users(name) VALUES('abc'); COMMIT; /**/ SELECT * FROM users; SELECT * FROM users;
  • pgpool-II UPDATE users SET name='abc'; BEGIN; SELECT COUNT(*) FROM users; INSERT INTO users(name) VALUES('abc'); COMMIT; /**/ SELECT * FROM users; SELECT * FROM users;
  • pgpool-II UPDATE users SET name='abc'; BEGIN; SELECT COUNT(*) FROM users; INSERT INTO users(name) VALUES('abc'); COMMIT; /**/ SELECT * FROM users; SELECT * FROM users;
  • Slony-I
  • • • SQL /**/ SELECT * FROM users; CakePHP
  • CakePHP [app/models/datasources/dbo/dbo_postgres_replication.php] class DboPostgresReplication extends DboPostgres { public function execute($sql) { if (!AppModel::$toSlave) { if (preg_match('/^SELECT/i', $sql)) { $sql = '/**/'.$sql; } } return parent::execute($sql); } }
  • • CakePHP PHP • CakePHP PostgreSQL • pgpool-II + Slony-I
  • Q? /shin1x1