data_fabric 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,5 +1,9 @@
1
1
  DataFabric changelog
2
2
 
3
+ v1.3.1 - 2011-02-10
4
+
5
+ - Add some missing ConnectionPool methods (e.g. clear_reloadable_connections!)
6
+
3
7
  v1.3.0 - 2010-11-22
4
8
 
5
9
  - Major implementation refactoring
@@ -22,21 +22,30 @@ module DataFabric
22
22
  def initialize(proxy)
23
23
  @proxy = proxy
24
24
  end
25
+
25
26
  def connection
26
27
  @proxy
27
28
  end
28
- def release_connection
29
- DataFabric.logger.debug { 'data_fabric does not implement release_connection' }
30
- end
29
+
31
30
  def spec
32
31
  @proxy.spec
33
32
  end
33
+
34
34
  def with_connection
35
35
  yield @proxy
36
36
  end
37
+
37
38
  def connected?
38
39
  @proxy.connected?
39
40
  end
41
+
42
+ %w(disconnect! release_connection clear_reloadable_connections! clear_stale_cached_connections! verify_active_connections!).each do |name|
43
+ define_method(name.to_sym) do
44
+ @proxy.shard_pools.values.each do |pool|
45
+ pool.send(name.to_sym)
46
+ end
47
+ end
48
+ end
40
49
  end
41
50
 
42
51
  class ConnectionProxy
@@ -1,5 +1,5 @@
1
1
  module DataFabric
2
2
  module Version
3
- STRING = '1.3.0'
3
+ STRING = '1.3.1'
4
4
  end
5
5
  end
@@ -100,7 +100,14 @@ class ConnectionTest < Test::Unit::TestCase
100
100
  TheWholeEnchilada.transaction do
101
101
  mmmm.save!
102
102
  end
103
+ TheWholeEnchilada.verify_active_connections!
104
+ TheWholeEnchilada.clear_active_connections!
105
+ TheWholeEnchilada.clear_all_connections!
103
106
  end
107
+
108
+ TheWholeEnchilada.verify_active_connections!
109
+ TheWholeEnchilada.clear_active_connections!
110
+ TheWholeEnchilada.clear_all_connections!
104
111
  end
105
112
 
106
113
  private
Binary file
Binary file
Binary file
Binary file
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 3
8
- - 0
9
- version: 1.3.0
8
+ - 1
9
+ version: 1.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Mike Perham
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-11-21 00:00:00 -08:00
17
+ date: 2011-02-10 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -30,6 +30,19 @@ dependencies:
30
30
  version: "0"
31
31
  type: :development
32
32
  version_requirements: *id001
33
+ - !ruby/object:Gem::Dependency
34
+ name: sqlite3
35
+ prerelease: false
36
+ requirement: &id002 !ruby/object:Gem::Requirement
37
+ none: false
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ segments:
42
+ - 0
43
+ version: "0"
44
+ type: :development
45
+ version_requirements: *id002
33
46
  description: Sharding and replication support for ActiveRecord 2.x
34
47
  email: mperham@gmail.com
35
48
  executables: []
@@ -117,20 +130,11 @@ files:
117
130
  - example30/config/locales/en.yml
118
131
  - example30/config/routes.rb
119
132
  - example30/config.ru
120
- - example30/db/development.sqlite3
121
133
  - example30/db/migrate/20080702154628_create_accounts.rb
122
134
  - example30/db/migrate/20080702154820_create_figments.rb
123
- - example30/db/s0_development.sqlite3
124
- - example30/db/s0_test.sqlite3
125
- - example30/db/s1_development.sqlite3
126
- - example30/db/s1_test.sqlite3
127
- - example30/db/schema.rb
128
135
  - example30/db/seeds.rb
129
- - example30/db/test.sqlite3
130
136
  - example30/Gemfile
131
137
  - example30/Gemfile.lock
132
- - example30/log/development.log
133
- - example30/log/test.log
134
138
  - example30/Rakefile
135
139
  - example30/README
136
140
  - example30/script/rails
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,29 +0,0 @@
1
- # This file is auto-generated from the current state of the database. Instead
2
- # of editing this file, please use the migrations feature of Active Record to
3
- # incrementally modify your database, and then regenerate this schema definition.
4
- #
5
- # Note that this schema.rb definition is the authoritative source for your
6
- # database schema. If you need to create the application database on another
7
- # system, you should be using db:schema:load, not running all the migrations
8
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
9
- # you'll amass, the slower it'll run and the greater likelihood for issues).
10
- #
11
- # It's strongly recommended to check this file into your version control system.
12
-
13
- ActiveRecord::Schema.define(:version => 20080702154820) do
14
-
15
- create_table "accounts", :force => true do |t|
16
- t.string "name"
17
- t.string "shard"
18
- t.datetime "created_at"
19
- t.datetime "updated_at"
20
- end
21
-
22
- create_table "figments", :force => true do |t|
23
- t.integer "account_id"
24
- t.integer "value"
25
- t.datetime "created_at"
26
- t.datetime "updated_at"
27
- end
28
-
29
- end
Binary file
@@ -1,132 +0,0 @@
1
- SQL (0.7ms)  SELECT name
2
- FROM sqlite_master
3
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
4
- 
5
- SQL (0.1ms) select sqlite_version(*)
6
- SQL (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7
- SQL (0.0ms) PRAGMA index_list("schema_migrations")
8
- SQL (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
9
- SQL (0.1ms) SELECT name
10
- FROM sqlite_master
11
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
12
- SQL (0.1ms)  SELECT name
13
- FROM sqlite_master
14
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
15
- 
16
- SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
17
- Migrating to CreateAccounts (20080702154628)
18
- SQL (0.5ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "shard" varchar(255), "created_at" datetime, "updated_at" datetime) 
19
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20080702154628')
20
- Migrating to CreateFigments (20080702154820)
21
- SQL (0.4ms) CREATE TABLE "figments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value" integer, "created_at" datetime, "updated_at" datetime) 
22
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20080702154820')
23
- SQL (0.2ms)  SELECT name
24
- FROM sqlite_master
25
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
26
- 
27
- SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
28
- SQL (0.1ms)  SELECT name
29
- FROM sqlite_master
30
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
31
- 
32
- SQL (0.0ms) PRAGMA index_list("accounts")
33
- SQL (0.0ms) PRAGMA index_list("figments")
34
- SQL (0.9ms)  SELECT name
35
- FROM sqlite_master
36
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
37
- 
38
- SQL (0.1ms) SELECT name
39
- FROM sqlite_master
40
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
41
- SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
42
- SQL (0.3ms) select sqlite_version(*)
43
- SQL (0.1ms)  SELECT name
44
- FROM sqlite_master
45
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
46
- 
47
- SQL (3.3ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "shard" varchar(255), "created_at" datetime, "updated_at" datetime)
48
- SQL (0.2ms)  SELECT name
49
- FROM sqlite_master
50
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
51
- 
52
- SQL (1.8ms) CREATE TABLE "figments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value" integer, "created_at" datetime, "updated_at" datetime)
53
- SQL (0.2ms)  SELECT name
54
- FROM sqlite_master
55
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
56
- 
57
- SQL (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
58
- SQL (0.1ms) PRAGMA index_list("schema_migrations")
59
- SQL (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
60
- SQL (0.2ms)  SELECT name
61
- FROM sqlite_master
62
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
63
- 
64
- SQL (0.1ms) SELECT version FROM "schema_migrations"
65
- SQL (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20080702154820')
66
- SQL (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20080702154628')
67
- SQL (0.8ms)  SELECT name
68
- FROM sqlite_master
69
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
70
- 
71
- SQL (0.1ms) SELECT name
72
- FROM sqlite_master
73
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
74
- SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
75
- SQL (0.3ms) select sqlite_version(*)
76
- SQL (0.1ms)  SELECT name
77
- FROM sqlite_master
78
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
79
- 
80
- SQL (1.7ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "shard" varchar(255), "created_at" datetime, "updated_at" datetime)
81
- SQL (0.2ms)  SELECT name
82
- FROM sqlite_master
83
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
84
- 
85
- SQL (1.6ms) CREATE TABLE "figments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value" integer, "created_at" datetime, "updated_at" datetime)
86
- SQL (0.2ms)  SELECT name
87
- FROM sqlite_master
88
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
89
- 
90
- SQL (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
91
- SQL (0.0ms) PRAGMA index_list("schema_migrations")
92
- SQL (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
93
- SQL (0.1ms)  SELECT name
94
- FROM sqlite_master
95
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
96
- 
97
- SQL (0.1ms) SELECT version FROM "schema_migrations"
98
- SQL (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20080702154820')
99
- SQL (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20080702154628')
100
- SQL (0.8ms)  SELECT name
101
- FROM sqlite_master
102
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
103
- 
104
- SQL (0.1ms) SELECT name
105
- FROM sqlite_master
106
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
107
- SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
108
- SQL (0.3ms) select sqlite_version(*)
109
- SQL (0.1ms)  SELECT name
110
- FROM sqlite_master
111
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
112
- 
113
- SQL (3.6ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "shard" varchar(255), "created_at" datetime, "updated_at" datetime)
114
- SQL (0.3ms)  SELECT name
115
- FROM sqlite_master
116
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
117
- 
118
- SQL (1.8ms) CREATE TABLE "figments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value" integer, "created_at" datetime, "updated_at" datetime)
119
- SQL (0.2ms)  SELECT name
120
- FROM sqlite_master
121
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
122
- 
123
- SQL (1.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
124
- SQL (0.1ms) PRAGMA index_list("schema_migrations")
125
- SQL (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
126
- SQL (0.2ms)  SELECT name
127
- FROM sqlite_master
128
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
129
- 
130
- SQL (0.1ms) SELECT version FROM "schema_migrations"
131
- SQL (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20080702154820')
132
- SQL (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20080702154628')
@@ -1,444 +0,0 @@
1
- SQL (0.7ms)  SELECT name
2
- FROM sqlite_master
3
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
4
- 
5
- SQL (0.1ms) select sqlite_version(*)
6
- SQL (3.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7
- SQL (0.1ms) PRAGMA index_list("schema_migrations")
8
- SQL (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
9
- SQL (0.2ms) SELECT name
10
- FROM sqlite_master
11
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
12
- SQL (0.1ms)  SELECT name
13
- FROM sqlite_master
14
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
15
- 
16
- SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
17
- Migrating to CreateAccounts (20080702154628)
18
- SQL (0.6ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "shard" varchar(255), "created_at" datetime, "updated_at" datetime) 
19
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20080702154628')
20
- Migrating to CreateFigments (20080702154820)
21
- SQL (0.4ms) CREATE TABLE "figments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value" integer, "created_at" datetime, "updated_at" datetime) 
22
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20080702154820')
23
- SQL (0.2ms)  SELECT name
24
- FROM sqlite_master
25
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
26
- 
27
- SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
28
- SQL (0.1ms)  SELECT name
29
- FROM sqlite_master
30
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
31
- 
32
- SQL (0.0ms) PRAGMA index_list("accounts")
33
- SQL (0.0ms) PRAGMA index_list("figments")
34
- Processing by AccountsController#index as HTML
35
- Account Load (0.3ms) SELECT "accounts".* FROM "accounts"
36
- Rendered accounts/index.html.erb within layouts/application (8.3ms)
37
- Completed 200 OK in 47ms (Views: 11.3ms | ActiveRecord: 1.1ms)
38
- SQL (1.8ms) delete from figments
39
- SQL (2.0ms) delete from figments
40
- SQL (0.2ms) select count(*) as c from figments
41
- SQL (0.1ms) select count(*) as c from figments
42
-
43
-
44
- Started GET "/accounts" for 127.0.0.1 at 2010-11-20 23:55:54 -0800
45
- Processing by AccountsController#index as HTML
46
- Account Load (0.4ms) SELECT "accounts".* FROM "accounts"
47
- Rendered accounts/index.html.erb within layouts/application (8.4ms)
48
- Completed 200 OK in 49ms (Views: 11.5ms | ActiveRecord: 5.4ms)
49
-
50
-
51
- Started POST "/accounts" for 127.0.0.1 at 2010-11-20 23:55:54 -0800
52
- Processing by AccountsController#create as HTML
53
- Parameters: {"acct"=>{"name"=>"mike", "shard"=>"0"}}
54
- SQL (0.2ms) SELECT name
55
- FROM sqlite_master
56
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
57
- AREL (0.3ms) INSERT INTO "accounts" ("name", "shard", "created_at", "updated_at") VALUES ('mike', '0', '2010-11-21 07:55:54.644325', '2010-11-21 07:55:54.644325')
58
- Redirected to http://www.example.com/
59
- Completed 302 Found in 10ms
60
-
61
-
62
- Started GET "/" for 127.0.0.1 at 2010-11-20 23:55:54 -0800
63
- Processing by AccountsController#index as HTML
64
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts"
65
- Rendered accounts/index.html.erb within layouts/application (2.0ms)
66
- Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.7ms)
67
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."name" = 'mike') LIMIT 1
68
-
69
-
70
- Started GET "/accounts/1033447817/choose" for 127.0.0.1 at 2010-11-20 23:55:54 -0800
71
- Processing by AccountsController#choose as HTML
72
- Parameters: {"id"=>"1033447817"}
73
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."id" = 1033447817) LIMIT 1
74
- Redirected to http://www.example.com/
75
- Completed 302 Found in 1ms
76
-
77
-
78
- Started GET "/" for 127.0.0.1 at 2010-11-20 23:55:54 -0800
79
- Processing by AccountsController#index as HTML
80
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."id" = 1033447817) LIMIT 1
81
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts"
82
- Figment Load (0.4ms) SELECT "figments".* FROM "figments" WHERE ("figments".account_id = 1033447817)
83
- Rendered accounts/index.html.erb within layouts/application (11.0ms)
84
- Completed 200 OK in 13ms (Views: 11.2ms | ActiveRecord: 1.1ms)
85
- SQL (0.3ms) SELECT COUNT(*) FROM "figments" WHERE ("figments".account_id = 1033447817)
86
-
87
-
88
- Started POST "/figments" for 127.0.0.1 at 2010-11-20 23:55:54 -0800
89
- Processing by FigmentsController#create as HTML
90
- Parameters: {"figment"=>{"value"=>"14"}}
91
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."id" = 1033447817) LIMIT 1
92
- AREL (0.4ms) INSERT INTO "figments" ("account_id", "value", "created_at", "updated_at") VALUES (1033447817, 14, '2010-11-21 07:55:54.736350', '2010-11-21 07:55:54.736350')
93
- Redirected to http://www.example.com/
94
- Completed 302 Found in 17ms
95
-
96
-
97
- Started GET "/" for 127.0.0.1 at 2010-11-20 23:55:54 -0800
98
- Processing by AccountsController#index as HTML
99
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."id" = 1033447817) LIMIT 1
100
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts"
101
- Figment Load (0.2ms) SELECT "figments".* FROM "figments" WHERE ("figments".account_id = 1033447817)
102
- CACHE (0.0ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."id" = 1033447817) LIMIT 1
103
- Rendered accounts/index.html.erb within layouts/application (8.8ms)
104
- Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 1.4ms)
105
- Figment Load (0.2ms) SELECT "figments".* FROM "figments" WHERE ("figments".account_id = 1033447817)
106
- SQL (0.1ms) select count(*) as c from figments
107
- SQL (0.1ms) select count(*) as c from figments
108
-
109
-
110
- Started GET "/accounts" for 127.0.0.1 at 2010-11-20 23:55:54 -0800
111
- Processing by AccountsController#index as HTML
112
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts"
113
- Rendered accounts/index.html.erb within layouts/application (2.1ms)
114
- Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.7ms)
115
-
116
-
117
- Started POST "/accounts" for 127.0.0.1 at 2010-11-20 23:55:54 -0800
118
- Processing by AccountsController#create as HTML
119
- Parameters: {"acct"=>{"name"=>"bob", "shard"=>"1"}}
120
- AREL (0.1ms) INSERT INTO "accounts" ("name", "shard", "created_at", "updated_at") VALUES ('bob', '1', '2010-11-21 07:55:54.771885', '2010-11-21 07:55:54.771885')
121
- Redirected to http://www.example.com/
122
- Completed 302 Found in 2ms
123
-
124
-
125
- Started GET "/" for 127.0.0.1 at 2010-11-20 23:55:54 -0800
126
- Processing by AccountsController#index as HTML
127
- Account Load (0.3ms) SELECT "accounts".* FROM "accounts"
128
- Rendered accounts/index.html.erb within layouts/application (2.2ms)
129
- Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)
130
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."name" = 'bob') LIMIT 1
131
-
132
-
133
- Started GET "/accounts/1033447818/choose" for 127.0.0.1 at 2010-11-20 23:55:54 -0800
134
- Processing by AccountsController#choose as HTML
135
- Parameters: {"id"=>"1033447818"}
136
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."id" = 1033447818) LIMIT 1
137
- Redirected to http://www.example.com/
138
- Completed 302 Found in 1ms
139
-
140
-
141
- Started GET "/" for 127.0.0.1 at 2010-11-20 23:55:54 -0800
142
- Processing by AccountsController#index as HTML
143
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."id" = 1033447818) LIMIT 1
144
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts"
145
- Figment Load (0.4ms) SELECT "figments".* FROM "figments" WHERE ("figments".account_id = 1033447818)
146
- Rendered accounts/index.html.erb within layouts/application (5.3ms)
147
- Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 1.0ms)
148
- SQL (0.2ms) SELECT COUNT(*) FROM "figments" WHERE ("figments".account_id = 1033447818)
149
-
150
-
151
- Started POST "/figments" for 127.0.0.1 at 2010-11-20 23:55:54 -0800
152
- Processing by FigmentsController#create as HTML
153
- Parameters: {"figment"=>{"value"=>"66"}}
154
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."id" = 1033447818) LIMIT 1
155
- AREL (0.3ms) INSERT INTO "figments" ("account_id", "value", "created_at", "updated_at") VALUES (1033447818, 66, '2010-11-21 07:55:54.798389', '2010-11-21 07:55:54.798389')
156
- Redirected to http://www.example.com/
157
- Completed 302 Found in 5ms
158
-
159
-
160
- Started GET "/" for 127.0.0.1 at 2010-11-20 23:55:54 -0800
161
- Processing by AccountsController#index as HTML
162
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."id" = 1033447818) LIMIT 1
163
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts"
164
- Figment Load (0.2ms) SELECT "figments".* FROM "figments" WHERE ("figments".account_id = 1033447818)
165
- CACHE (0.0ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."id" = 1033447818) LIMIT 1
166
- Rendered accounts/index.html.erb within layouts/application (4.1ms)
167
- Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 1.3ms)
168
- Figment Load (0.2ms) SELECT "figments".* FROM "figments" WHERE ("figments".account_id = 1033447818)
169
- SQL (0.1ms) select count(*) as c from figments
170
- SQL (0.1ms) select count(*) as c from figments
171
- Processing by AccountsController#index as HTML
172
- Account Load (0.3ms) SELECT "accounts".* FROM "accounts"
173
- Rendered accounts/index.html.erb within layouts/application (8.4ms)
174
- Completed 200 OK in 48ms (Views: 11.4ms | ActiveRecord: 1.1ms)
175
- SQL (3.4ms) delete from figments
176
- SQL (2.3ms) delete from figments
177
- SQL (0.4ms) select count(*) as c from figments
178
- SQL (0.2ms) select count(*) as c from figments
179
-
180
-
181
- Started GET "/accounts" for 127.0.0.1 at 2010-11-21 00:05:15 -0800
182
- Processing by AccountsController#index as HTML
183
- Account Load (0.3ms) SELECT "accounts".* FROM "accounts"
184
- Rendered accounts/index.html.erb within layouts/application (39.1ms)
185
- Completed 200 OK in 81ms (Views: 42.3ms | ActiveRecord: 7.4ms)
186
-
187
-
188
- Started POST "/accounts" for 127.0.0.1 at 2010-11-21 00:05:16 -0800
189
- Processing by AccountsController#create as HTML
190
- Parameters: {"acct"=>{"name"=>"mike", "shard"=>"0"}}
191
- SQL (0.2ms) SELECT name
192
- FROM sqlite_master
193
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
194
- AREL (0.3ms) INSERT INTO "accounts" ("name", "shard", "created_at", "updated_at") VALUES ('mike', '0', '2010-11-21 08:05:16.025033', '2010-11-21 08:05:16.025033')
195
- Redirected to http://www.example.com/
196
- Completed 302 Found in 10ms
197
-
198
-
199
- Started GET "/" for 127.0.0.1 at 2010-11-21 00:05:16 -0800
200
- Processing by AccountsController#index as HTML
201
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts"
202
- Rendered accounts/index.html.erb within layouts/application (2.1ms)
203
- Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.8ms)
204
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."name" = 'mike') LIMIT 1
205
-
206
-
207
- Started GET "/accounts/1033447817/choose" for 127.0.0.1 at 2010-11-21 00:05:16 -0800
208
- Processing by AccountsController#choose as HTML
209
- Parameters: {"id"=>"1033447817"}
210
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."id" = 1033447817) LIMIT 1
211
- Redirected to http://www.example.com/
212
- Completed 302 Found in 1ms
213
-
214
-
215
- Started GET "/" for 127.0.0.1 at 2010-11-21 00:05:16 -0800
216
- Processing by AccountsController#index as HTML
217
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."id" = 1033447817) LIMIT 1
218
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts"
219
- Figment Load (0.4ms) SELECT "figments".* FROM "figments" WHERE ("figments".account_id = 1033447817)
220
- Rendered accounts/index.html.erb within layouts/application (11.6ms)
221
- Completed 200 OK in 13ms (Views: 11.8ms | ActiveRecord: 1.1ms)
222
- SQL (0.2ms) SELECT COUNT(*) FROM "figments" WHERE ("figments".account_id = 1033447817)
223
-
224
-
225
- Started POST "/figments" for 127.0.0.1 at 2010-11-21 00:05:16 -0800
226
- Processing by FigmentsController#create as HTML
227
- Parameters: {"figment"=>{"value"=>"14"}}
228
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."id" = 1033447817) LIMIT 1
229
- AREL (0.4ms) INSERT INTO "figments" ("account_id", "value", "created_at", "updated_at") VALUES (1033447817, 14, '2010-11-21 08:05:16.082052', '2010-11-21 08:05:16.082052')
230
- Redirected to http://www.example.com/
231
- Completed 302 Found in 18ms
232
-
233
-
234
- Started GET "/" for 127.0.0.1 at 2010-11-21 00:05:16 -0800
235
- Processing by AccountsController#index as HTML
236
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."id" = 1033447817) LIMIT 1
237
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts"
238
- Figment Load (0.4ms) SELECT "figments".* FROM "figments" WHERE ("figments".account_id = 1033447817)
239
- CACHE (0.0ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."id" = 1033447817) LIMIT 1
240
- Rendered accounts/index.html.erb within layouts/application (11.7ms)
241
- Completed 200 OK in 14ms (Views: 12.0ms | ActiveRecord: 1.5ms)
242
- Figment Load (0.2ms) SELECT "figments".* FROM "figments" WHERE ("figments".account_id = 1033447817)
243
- SQL (0.1ms) select count(*) as c from figments
244
- SQL (0.1ms) select count(*) as c from figments
245
-
246
-
247
- Started GET "/accounts" for 127.0.0.1 at 2010-11-21 00:05:16 -0800
248
- Processing by AccountsController#index as HTML
249
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts"
250
- Rendered accounts/index.html.erb within layouts/application (2.0ms)
251
- Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.7ms)
252
-
253
-
254
- Started POST "/accounts" for 127.0.0.1 at 2010-11-21 00:05:16 -0800
255
- Processing by AccountsController#create as HTML
256
- Parameters: {"acct"=>{"name"=>"bob", "shard"=>"1"}}
257
- AREL (0.1ms) INSERT INTO "accounts" ("name", "shard", "created_at", "updated_at") VALUES ('bob', '1', '2010-11-21 08:05:16.121941', '2010-11-21 08:05:16.121941')
258
- Redirected to http://www.example.com/
259
- Completed 302 Found in 2ms
260
-
261
-
262
- Started GET "/" for 127.0.0.1 at 2010-11-21 00:05:16 -0800
263
- Processing by AccountsController#index as HTML
264
- Account Load (0.3ms) SELECT "accounts".* FROM "accounts"
265
- Rendered accounts/index.html.erb within layouts/application (2.3ms)
266
- Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)
267
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."name" = 'bob') LIMIT 1
268
-
269
-
270
- Started GET "/accounts/1033447818/choose" for 127.0.0.1 at 2010-11-21 00:05:16 -0800
271
- Processing by AccountsController#choose as HTML
272
- Parameters: {"id"=>"1033447818"}
273
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."id" = 1033447818) LIMIT 1
274
- Redirected to http://www.example.com/
275
- Completed 302 Found in 1ms
276
-
277
-
278
- Started GET "/" for 127.0.0.1 at 2010-11-21 00:05:16 -0800
279
- Processing by AccountsController#index as HTML
280
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."id" = 1033447818) LIMIT 1
281
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts"
282
- Figment Load (0.4ms) SELECT "figments".* FROM "figments" WHERE ("figments".account_id = 1033447818)
283
- Rendered accounts/index.html.erb within layouts/application (5.3ms)
284
- Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 1.0ms)
285
- SQL (0.2ms) SELECT COUNT(*) FROM "figments" WHERE ("figments".account_id = 1033447818)
286
-
287
-
288
- Started POST "/figments" for 127.0.0.1 at 2010-11-21 00:05:16 -0800
289
- Processing by FigmentsController#create as HTML
290
- Parameters: {"figment"=>{"value"=>"66"}}
291
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."id" = 1033447818) LIMIT 1
292
- AREL (0.4ms) INSERT INTO "figments" ("account_id", "value", "created_at", "updated_at") VALUES (1033447818, 66, '2010-11-21 08:05:16.185743', '2010-11-21 08:05:16.185743')
293
- Redirected to http://www.example.com/
294
- Completed 302 Found in 6ms
295
-
296
-
297
- Started GET "/" for 127.0.0.1 at 2010-11-21 00:05:16 -0800
298
- Processing by AccountsController#index as HTML
299
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."id" = 1033447818) LIMIT 1
300
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts"
301
- Figment Load (0.2ms) SELECT "figments".* FROM "figments" WHERE ("figments".account_id = 1033447818)
302
- CACHE (0.0ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."id" = 1033447818) LIMIT 1
303
- Rendered accounts/index.html.erb within layouts/application (4.3ms)
304
- Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 1.3ms)
305
- Figment Load (0.2ms) SELECT "figments".* FROM "figments" WHERE ("figments".account_id = 1033447818)
306
- SQL (0.1ms) select count(*) as c from figments
307
- SQL (0.1ms) select count(*) as c from figments
308
- Processing by AccountsController#index as HTML
309
- Account Load (0.3ms) SELECT "accounts".* FROM "accounts"
310
- Rendered accounts/index.html.erb within layouts/application (8.2ms)
311
- Completed 200 OK in 47ms (Views: 11.3ms | ActiveRecord: 1.1ms)
312
- SQL (1.8ms) delete from figments
313
- SQL (2.3ms) delete from figments
314
- SQL (0.2ms) select count(*) as c from figments
315
- SQL (0.1ms) select count(*) as c from figments
316
-
317
-
318
- Started GET "/accounts" for 127.0.0.1 at 2010-11-21 00:05:57 -0800
319
- Processing by AccountsController#index as HTML
320
- Account Load (0.3ms) SELECT "accounts".* FROM "accounts"
321
- Rendered accounts/index.html.erb within layouts/application (8.4ms)
322
- Completed 200 OK in 50ms (Views: 11.5ms | ActiveRecord: 5.5ms)
323
-
324
-
325
- Started POST "/accounts" for 127.0.0.1 at 2010-11-21 00:05:57 -0800
326
- Processing by AccountsController#create as HTML
327
- Parameters: {"acct"=>{"name"=>"mike", "shard"=>"0"}}
328
- SQL (0.2ms) SELECT name
329
- FROM sqlite_master
330
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
331
- AREL (0.3ms) INSERT INTO "accounts" ("name", "shard", "created_at", "updated_at") VALUES ('mike', '0', '2010-11-21 08:05:57.740177', '2010-11-21 08:05:57.740177')
332
- Redirected to http://www.example.com/
333
- Completed 302 Found in 10ms
334
-
335
-
336
- Started GET "/" for 127.0.0.1 at 2010-11-21 00:05:57 -0800
337
- Processing by AccountsController#index as HTML
338
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts"
339
- Rendered accounts/index.html.erb within layouts/application (2.0ms)
340
- Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.8ms)
341
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."name" = 'mike') LIMIT 1
342
-
343
-
344
- Started GET "/accounts/1033447817/choose" for 127.0.0.1 at 2010-11-21 00:05:57 -0800
345
- Processing by AccountsController#choose as HTML
346
- Parameters: {"id"=>"1033447817"}
347
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."id" = 1033447817) LIMIT 1
348
- Redirected to http://www.example.com/
349
- Completed 302 Found in 1ms
350
-
351
-
352
- Started GET "/" for 127.0.0.1 at 2010-11-21 00:05:57 -0800
353
- Processing by AccountsController#index as HTML
354
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."id" = 1033447817) LIMIT 1
355
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts"
356
- Figment Load (0.4ms) SELECT "figments".* FROM "figments" WHERE ("figments".account_id = 1033447817)
357
- Rendered accounts/index.html.erb within layouts/application (44.2ms)
358
- Completed 200 OK in 46ms (Views: 44.5ms | ActiveRecord: 1.1ms)
359
- SQL (0.2ms) SELECT COUNT(*) FROM "figments" WHERE ("figments".account_id = 1033447817)
360
-
361
-
362
- Started POST "/figments" for 127.0.0.1 at 2010-11-21 00:05:57 -0800
363
- Processing by FigmentsController#create as HTML
364
- Parameters: {"figment"=>{"value"=>"14"}}
365
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."id" = 1033447817) LIMIT 1
366
- AREL (0.4ms) INSERT INTO "figments" ("account_id", "value", "created_at", "updated_at") VALUES (1033447817, 14, '2010-11-21 08:05:57.830392', '2010-11-21 08:05:57.830392')
367
- Redirected to http://www.example.com/
368
- Completed 302 Found in 17ms
369
-
370
-
371
- Started GET "/" for 127.0.0.1 at 2010-11-21 00:05:57 -0800
372
- Processing by AccountsController#index as HTML
373
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."id" = 1033447817) LIMIT 1
374
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts"
375
- Figment Load (0.2ms) SELECT "figments".* FROM "figments" WHERE ("figments".account_id = 1033447817)
376
- CACHE (0.0ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."id" = 1033447817) LIMIT 1
377
- Rendered accounts/index.html.erb within layouts/application (8.6ms)
378
- Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 1.4ms)
379
- Figment Load (0.2ms) SELECT "figments".* FROM "figments" WHERE ("figments".account_id = 1033447817)
380
- SQL (0.1ms) select count(*) as c from figments
381
- SQL (0.1ms) select count(*) as c from figments
382
-
383
-
384
- Started GET "/accounts" for 127.0.0.1 at 2010-11-21 00:05:57 -0800
385
- Processing by AccountsController#index as HTML
386
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts"
387
- Rendered accounts/index.html.erb within layouts/application (2.1ms)
388
- Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.7ms)
389
-
390
-
391
- Started POST "/accounts" for 127.0.0.1 at 2010-11-21 00:05:57 -0800
392
- Processing by AccountsController#create as HTML
393
- Parameters: {"acct"=>{"name"=>"bob", "shard"=>"1"}}
394
- AREL (0.1ms) INSERT INTO "accounts" ("name", "shard", "created_at", "updated_at") VALUES ('bob', '1', '2010-11-21 08:05:57.864872', '2010-11-21 08:05:57.864872')
395
- Redirected to http://www.example.com/
396
- Completed 302 Found in 2ms
397
-
398
-
399
- Started GET "/" for 127.0.0.1 at 2010-11-21 00:05:57 -0800
400
- Processing by AccountsController#index as HTML
401
- Account Load (0.3ms) SELECT "accounts".* FROM "accounts"
402
- Rendered accounts/index.html.erb within layouts/application (2.3ms)
403
- Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms)
404
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."name" = 'bob') LIMIT 1
405
-
406
-
407
- Started GET "/accounts/1033447818/choose" for 127.0.0.1 at 2010-11-21 00:05:57 -0800
408
- Processing by AccountsController#choose as HTML
409
- Parameters: {"id"=>"1033447818"}
410
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."id" = 1033447818) LIMIT 1
411
- Redirected to http://www.example.com/
412
- Completed 302 Found in 1ms
413
-
414
-
415
- Started GET "/" for 127.0.0.1 at 2010-11-21 00:05:57 -0800
416
- Processing by AccountsController#index as HTML
417
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."id" = 1033447818) LIMIT 1
418
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts"
419
- Figment Load (0.4ms) SELECT "figments".* FROM "figments" WHERE ("figments".account_id = 1033447818)
420
- Rendered accounts/index.html.erb within layouts/application (5.4ms)
421
- Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 1.0ms)
422
- SQL (0.2ms) SELECT COUNT(*) FROM "figments" WHERE ("figments".account_id = 1033447818)
423
-
424
-
425
- Started POST "/figments" for 127.0.0.1 at 2010-11-21 00:05:57 -0800
426
- Processing by FigmentsController#create as HTML
427
- Parameters: {"figment"=>{"value"=>"66"}}
428
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."id" = 1033447818) LIMIT 1
429
- AREL (0.3ms) INSERT INTO "figments" ("account_id", "value", "created_at", "updated_at") VALUES (1033447818, 66, '2010-11-21 08:05:57.891632', '2010-11-21 08:05:57.891632')
430
- Redirected to http://www.example.com/
431
- Completed 302 Found in 5ms
432
-
433
-
434
- Started GET "/" for 127.0.0.1 at 2010-11-21 00:05:57 -0800
435
- Processing by AccountsController#index as HTML
436
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."id" = 1033447818) LIMIT 1
437
- Account Load (0.2ms) SELECT "accounts".* FROM "accounts"
438
- Figment Load (0.2ms) SELECT "figments".* FROM "figments" WHERE ("figments".account_id = 1033447818)
439
- CACHE (0.0ms) SELECT "accounts".* FROM "accounts" WHERE ("accounts"."id" = 1033447818) LIMIT 1
440
- Rendered accounts/index.html.erb within layouts/application (4.2ms)
441
- Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 1.3ms)
442
- Figment Load (0.2ms) SELECT "figments".* FROM "figments" WHERE ("figments".account_id = 1033447818)
443
- SQL (0.1ms) select count(*) as c from figments
444
- SQL (0.1ms) select count(*) as c from figments