data_fabric 1.2.7 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. data/CHANGELOG +7 -0
  2. data/README.rdoc +9 -8
  3. data/Rakefile +9 -41
  4. data/TESTING.rdoc +3 -3
  5. data/example23/Rakefile +28 -27
  6. data/example23/config/environment.rb +4 -2
  7. data/example30/Gemfile +5 -0
  8. data/example30/Gemfile.lock +79 -0
  9. data/example30/README +256 -0
  10. data/example30/Rakefile +52 -0
  11. data/{example → example30}/app/controllers/accounts_controller.rb +0 -0
  12. data/{example/app/controllers/application.rb → example30/app/controllers/application_controller.rb} +0 -0
  13. data/{example → example30}/app/controllers/figments_controller.rb +0 -0
  14. data/example30/app/helpers/application_helper.rb +2 -0
  15. data/{example → example30}/app/models/account.rb +0 -0
  16. data/{example → example30}/app/models/figment.rb +0 -0
  17. data/{example → example30}/app/views/accounts/index.html.erb +2 -2
  18. data/{example → example30}/app/views/layouts/application.html.erb +0 -0
  19. data/example30/config.ru +4 -0
  20. data/example30/config/application.rb +42 -0
  21. data/example30/config/boot.rb +13 -0
  22. data/{example → example30}/config/database.yml +0 -0
  23. data/example30/config/environment.rb +5 -0
  24. data/example30/config/environments/development.rb +26 -0
  25. data/example30/config/environments/production.rb +49 -0
  26. data/example30/config/environments/test.rb +35 -0
  27. data/example30/config/initializers/backtrace_silencers.rb +7 -0
  28. data/{example → example30}/config/initializers/inflections.rb +2 -2
  29. data/{example → example30}/config/initializers/mime_types.rb +0 -0
  30. data/example30/config/initializers/secret_token.rb +7 -0
  31. data/example30/config/initializers/session_store.rb +8 -0
  32. data/example30/config/locales/en.yml +5 -0
  33. data/example30/config/routes.rb +65 -0
  34. data/example30/db/development.sqlite3 +0 -0
  35. data/{example → example30}/db/migrate/20080702154628_create_accounts.rb +0 -0
  36. data/{example → example30}/db/migrate/20080702154820_create_figments.rb +0 -0
  37. data/example30/db/s0_development.sqlite3 +0 -0
  38. data/example30/db/s0_test.sqlite3 +0 -0
  39. data/example30/db/s1_development.sqlite3 +0 -0
  40. data/example30/db/s1_test.sqlite3 +0 -0
  41. data/{example23 → example30}/db/schema.rb +7 -6
  42. data/example30/db/seeds.rb +7 -0
  43. data/example30/db/test.sqlite3 +0 -0
  44. data/example30/log/development.log +132 -0
  45. data/example30/log/test.log +444 -0
  46. data/example30/script/rails +6 -0
  47. data/{example → example30}/test/fixtures/accounts.yml +0 -0
  48. data/{example → example30}/test/functional/accounts_controller_test.rb +0 -0
  49. data/{example → example30}/test/integration/account_figments_test.rb +0 -0
  50. data/example30/test/performance/browsing_test.rb +9 -0
  51. data/example30/test/test_helper.rb +13 -0
  52. data/lib/data_fabric.rb +14 -21
  53. data/lib/data_fabric/{ar22.rb → connection_proxy.rb} +43 -63
  54. data/lib/data_fabric/extensions.rb +29 -0
  55. data/lib/data_fabric/version.rb +1 -1
  56. data/test/connection_test.rb +17 -12
  57. data/test/database_test.rb +3 -11
  58. data/test/test_helper.rb +3 -8
  59. data/test/thread_test.rb +0 -14
  60. data/test/vr_austin_master.db +0 -0
  61. data/test/vr_austin_slave.db +0 -0
  62. data/test/vr_dallas_master.db +0 -0
  63. data/test/vr_dallas_slave.db +0 -0
  64. metadata +72 -99
  65. data/example/Rakefile +0 -58
  66. data/example/app/helpers/accounts_helper.rb +0 -2
  67. data/example/app/helpers/application_helper.rb +0 -3
  68. data/example/app/helpers/figments_helper.rb +0 -2
  69. data/example/config/boot.rb +0 -109
  70. data/example/config/environment.rb +0 -67
  71. data/example/config/environments/development.rb +0 -17
  72. data/example/config/environments/production.rb +0 -22
  73. data/example/config/environments/test.rb +0 -22
  74. data/example/config/initializers/new_rails_defaults.rb +0 -15
  75. data/example/config/routes.rb +0 -45
  76. data/example/db/schema.rb +0 -28
  77. data/example/public/404.html +0 -30
  78. data/example/public/422.html +0 -30
  79. data/example/public/500.html +0 -30
  80. data/example/public/dispatch.cgi +0 -10
  81. data/example/public/dispatch.fcgi +0 -24
  82. data/example/public/dispatch.rb +0 -10
  83. data/example/public/favicon.ico +0 -0
  84. data/example/public/images/rails.png +0 -0
  85. data/example/public/robots.txt +0 -5
  86. data/example/script/about +0 -3
  87. data/example/script/console +0 -3
  88. data/example/script/dbconsole +0 -3
  89. data/example/script/destroy +0 -3
  90. data/example/script/generate +0 -3
  91. data/example/script/performance/benchmarker +0 -3
  92. data/example/script/performance/profiler +0 -3
  93. data/example/script/performance/request +0 -3
  94. data/example/script/plugin +0 -3
  95. data/example/script/process/inspector +0 -3
  96. data/example/script/process/reaper +0 -3
  97. data/example/script/process/spawner +0 -3
  98. data/example/script/runner +0 -3
  99. data/example/script/server +0 -3
  100. data/example/test/test_helper.rb +0 -41
  101. data/example23/db/development.sqlite3 +0 -0
  102. data/example23/db/s0_development.sqlite3 +0 -0
  103. data/example23/db/s0_test.sqlite3 +0 -0
  104. data/example23/db/s1_development.sqlite3 +0 -0
  105. data/example23/db/s1_test.sqlite3 +0 -0
  106. data/example23/db/test.sqlite3 +0 -0
  107. data/example23/log/development.log +0 -295
  108. data/example23/log/test.log +0 -551
  109. data/example23/vendor/plugins/data_fabric/init.rb +0 -3
  110. data/example23/vendor/plugins/data_fabric/lib/data_fabric.rb +0 -106
  111. data/example23/vendor/plugins/data_fabric/lib/data_fabric/ar20.rb +0 -133
  112. data/example23/vendor/plugins/data_fabric/lib/data_fabric/ar22.rb +0 -181
  113. data/example23/vendor/plugins/data_fabric/lib/data_fabric/dash.rb +0 -20
  114. data/example23/vendor/plugins/data_fabric/lib/data_fabric/version.rb +0 -7
  115. data/init.rb +0 -3
  116. data/lib/data_fabric/ar20.rb +0 -133
  117. data/lib/data_fabric/dash.rb +0 -20
  118. data/rails/init.rb +0 -1
@@ -0,0 +1,132 @@
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')
@@ -0,0 +1,444 @@
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