geokit-rails 2.0.1 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of geokit-rails might be problematic. Click here for more details.

@@ -1,1057 +0,0 @@
1
- # Logfile created on 2013-09-15 15:35:03 +0930 by logger.rb/31641
2
- D, [2013-09-15T15:49:04.947692 #6455] DEBUG -- :  (63.0ms) CREATE TABLE `companies` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB
3
- D, [2013-09-15T15:49:05.003774 #6455] DEBUG -- :  (53.6ms) CREATE TABLE `locations` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `company_id` int(11) DEFAULT 0 NOT NULL, `street` varchar(60), `city` varchar(60), `state` varchar(2), `postal_code` varchar(16), `lat` decimal(15,10), `lng` decimal(15,10)) ENGINE=InnoDB
4
- D, [2013-09-15T15:49:05.055208 #6455] DEBUG -- :  (49.0ms) CREATE TABLE `custom_locations` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `company_id` int(11) DEFAULT 0 NOT NULL, `street` varchar(60), `city` varchar(60), `state` varchar(2), `postal_code` varchar(16), `latitude` decimal(15,10), `longitude` decimal(15,10)) ENGINE=InnoDB
5
- D, [2013-09-15T15:49:05.111928 #6455] DEBUG -- :  (54.3ms) CREATE TABLE `stores` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `address` varchar(255), `lat` decimal(15,10), `lng` decimal(15,10)) ENGINE=InnoDB
6
- D, [2013-09-15T15:49:05.170998 #6455] DEBUG -- :  (56.2ms) CREATE TABLE `mock_organizations` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB
7
- D, [2013-09-15T15:49:05.234509 #6455] DEBUG -- :  (59.6ms) CREATE TABLE `mock_addresses` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `addressable_id` int(11) NOT NULL, `addressable_type` varchar(255) NOT NULL, `street` varchar(60), `city` varchar(60), `state` varchar(2), `postal_code` varchar(16), `lat` decimal(15,10), `lng` decimal(15,10)) ENGINE=InnoDB
8
- D, [2013-09-15T15:49:05.283583 #6455] DEBUG -- :  (45.7ms) CREATE TABLE `mock_houses` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `address` varchar(255), `lat` decimal(15,10), `lng` decimal(15,10)) ENGINE=InnoDB
9
- D, [2013-09-15T15:49:05.333820 #6455] DEBUG -- :  (46.7ms) CREATE TABLE `mock_families` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `mock_house_id` int(11)) ENGINE=InnoDB
10
- D, [2013-09-15T15:49:05.390947 #6455] DEBUG -- :  (53.7ms) CREATE TABLE `mock_people` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `mock_family_id` int(11)) ENGINE=InnoDB
11
- D, [2013-09-15T15:49:05.455528 #6455] DEBUG -- :  (58.7ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
12
- D, [2013-09-15T15:49:05.547199 #6455] DEBUG -- :  (89.6ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`) 
13
- D, [2013-09-15T15:49:05.569740 #6455] DEBUG -- :  (21.8ms) SELECT version FROM `schema_migrations`
14
- D, [2013-09-15T15:49:05.585555 #6455] DEBUG -- :  (15.3ms) INSERT INTO `schema_migrations` (version) VALUES ('0')
15
- D, [2013-09-15T15:49:06.102088 #6455] DEBUG -- :  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS
16
- D, [2013-09-15T15:49:06.102567 #6455] DEBUG -- :  (0.3ms) SET FOREIGN_KEY_CHECKS = 0
17
- D, [2013-09-15T15:49:06.110631 #6455] DEBUG -- : SQL (0.2ms) BEGIN
18
- D, [2013-09-15T15:49:06.115905 #6455] DEBUG -- : Fixture Delete (0.4ms) DELETE FROM `mock_families`
19
- D, [2013-09-15T15:49:06.116585 #6455] DEBUG -- : Fixture Insert (0.5ms) INSERT INTO `mock_families` (`id`, `mock_house_id`) VALUES (964944192, 185830233)
20
- D, [2013-09-15T15:49:06.120911 #6455] DEBUG -- : Fixture Delete (0.3ms) DELETE FROM `companies`
21
- D, [2013-09-15T15:49:06.121392 #6455] DEBUG -- : Fixture Insert (0.3ms) INSERT INTO `companies` (`id`, `name`) VALUES (1, 'Starbucks')
22
- D, [2013-09-15T15:49:06.122050 #6455] DEBUG -- : Fixture Insert (0.4ms) INSERT INTO `companies` (`id`, `name`) VALUES (2, 'Barnes & Noble')
23
- D, [2013-09-15T15:49:06.123671 #6455] DEBUG -- : Fixture Delete (0.4ms) DELETE FROM `stores`
24
- D, [2013-09-15T15:49:06.132502 #6455] DEBUG -- : Fixture Delete (0.6ms) DELETE FROM `mock_addresses`
25
- D, [2013-09-15T15:49:06.134468 #6455] DEBUG -- : Fixture Insert (1.0ms) INSERT INTO `mock_addresses` (`street`, `city`, `state`, `postal_code`, `lat`, `lng`, `id`, `addressable_type`, `addressable_id`) VALUES ('106 N Denton Tap Rd', 'Coppell', 'TX', 75019, 32.969527, -96.990159, 214970392, 'MockOrganization', 378604642)
26
- D, [2013-09-15T15:49:06.136955 #6455] DEBUG -- : Fixture Insert (1.1ms) INSERT INTO `mock_addresses` (`street`, `city`, `state`, `postal_code`, `lat`, `lng`, `id`, `addressable_type`, `addressable_id`) VALUES ('5904 N Macarthur Blvd', 'Irving', 'TX', 75039, 32.895155, -96.958444, 206296981, 'MockOrganization', 1064917858)
27
- D, [2013-09-15T15:49:06.145582 #6455] DEBUG -- : Fixture Delete (0.6ms) DELETE FROM `mock_people`
28
- D, [2013-09-15T15:49:06.147021 #6455] DEBUG -- : Fixture Insert (0.7ms) INSERT INTO `mock_people` (`id`, `mock_family_id`) VALUES (254095803, 964944192)
29
- D, [2013-09-15T15:49:06.148116 #6455] DEBUG -- : Fixture Insert (0.5ms) INSERT INTO `mock_people` (`id`, `mock_family_id`) VALUES (450002714, 964944192)
30
- D, [2013-09-15T15:49:06.157353 #6455] DEBUG -- : Fixture Delete (0.5ms) DELETE FROM `custom_locations`
31
- D, [2013-09-15T15:49:06.158702 #6455] DEBUG -- : Fixture Insert (0.7ms) INSERT INTO `custom_locations` (`id`, `company_id`, `street`, `city`, `state`, `postal_code`, `latitude`, `longitude`) VALUES (1, 1, '7979 N MacArthur Blvd', 'Irving', 'TX', 75063, 32.918593, -96.958444)
32
- D, [2013-09-15T15:49:06.160041 #6455] DEBUG -- : Fixture Insert (0.7ms) INSERT INTO `custom_locations` (`id`, `company_id`, `street`, `city`, `state`, `postal_code`, `latitude`, `longitude`) VALUES (2, 1, '7750 N Macarthur Blvd', 'Irving', 'TX', 75063, 32.914144, -96.958444)
33
- D, [2013-09-15T15:49:06.161357 #6455] DEBUG -- : Fixture Insert (0.7ms) INSERT INTO `custom_locations` (`id`, `company_id`, `street`, `city`, `state`, `postal_code`, `latitude`, `longitude`) VALUES (3, 1, '5904 N Macarthur Blvd', 'Irving', 'TX', 75039, 32.895155, -96.958444)
34
- D, [2013-09-15T15:49:06.162693 #6455] DEBUG -- : Fixture Insert (0.7ms) INSERT INTO `custom_locations` (`id`, `company_id`, `street`, `city`, `state`, `postal_code`, `latitude`, `longitude`) VALUES (4, 1, '817 S Macarthur Blvd', 'Coppell', 'TX', 75019, 32.951613, -96.958444)
35
- D, [2013-09-15T15:49:06.164021 #6455] DEBUG -- : Fixture Insert (0.7ms) INSERT INTO `custom_locations` (`id`, `company_id`, `street`, `city`, `state`, `postal_code`, `latitude`, `longitude`) VALUES (5, 1, '106 N Denton Tap Rd', 'Coppell', 'TX', 75019, 32.969527, -96.990159)
36
- D, [2013-09-15T15:49:06.165267 #6455] DEBUG -- : Fixture Insert (0.6ms) INSERT INTO `custom_locations` (`id`, `company_id`, `street`, `city`, `state`, `postal_code`, `latitude`, `longitude`) VALUES (6, 2, '5904 N Macarthur Blvd', 'Irving', 'TX', 75039, 32.895155, -96.958444)
37
- D, [2013-09-15T15:49:06.172846 #6455] DEBUG -- : Fixture Delete (0.4ms) DELETE FROM `mock_houses`
38
- D, [2013-09-15T15:49:06.174022 #6455] DEBUG -- : Fixture Insert (0.6ms) INSERT INTO `mock_houses` (`address`, `lat`, `lng`, `id`) VALUES ('106 N Denton Tap Rd', 32.969527, -96.990159, 966034833)
39
- D, [2013-09-15T15:49:06.175341 #6455] DEBUG -- : Fixture Insert (0.6ms) INSERT INTO `mock_houses` (`address`, `lat`, `lng`, `id`) VALUES ('5904 N Macarthur Blvd', 32.895155, -96.958444, 185830233)
40
- D, [2013-09-15T15:49:06.183429 #6455] DEBUG -- : Fixture Delete (0.4ms) DELETE FROM `locations`
41
- D, [2013-09-15T15:49:06.184648 #6455] DEBUG -- : Fixture Insert (0.6ms) INSERT INTO `locations` (`id`, `company_id`, `street`, `city`, `state`, `postal_code`, `lat`, `lng`) VALUES (1, 1, '7979 N MacArthur Blvd', 'Irving', 'TX', 75063, 32.918593, -96.958444)
42
- D, [2013-09-15T15:49:06.185844 #6455] DEBUG -- : Fixture Insert (0.6ms) INSERT INTO `locations` (`id`, `company_id`, `street`, `city`, `state`, `postal_code`, `lat`, `lng`) VALUES (2, 1, '7750 N Macarthur Blvd', 'Irving', 'TX', 75063, 32.914144, -96.958444)
43
- D, [2013-09-15T15:49:06.187052 #6455] DEBUG -- : Fixture Insert (0.7ms) INSERT INTO `locations` (`id`, `company_id`, `street`, `city`, `state`, `postal_code`, `lat`, `lng`) VALUES (3, 1, '5904 N Macarthur Blvd', 'Irving', 'TX', 75039, 32.895155, -96.958444)
44
- D, [2013-09-15T15:49:06.188061 #6455] DEBUG -- : Fixture Insert (0.5ms) INSERT INTO `locations` (`id`, `company_id`, `street`, `city`, `state`, `postal_code`, `lat`, `lng`) VALUES (4, 1, '817 S Macarthur Blvd', 'Coppell', 'TX', 75019, 32.951613, -96.958444)
45
- D, [2013-09-15T15:49:06.189150 #6455] DEBUG -- : Fixture Insert (0.6ms) INSERT INTO `locations` (`id`, `company_id`, `street`, `city`, `state`, `postal_code`, `lat`, `lng`) VALUES (5, 1, '106 N Denton Tap Rd', 'Coppell', 'TX', 75019, 32.969527, -96.990159)
46
- D, [2013-09-15T15:49:06.190138 #6455] DEBUG -- : Fixture Insert (0.5ms) INSERT INTO `locations` (`id`, `company_id`, `street`, `city`, `state`, `postal_code`, `lat`, `lng`) VALUES (6, 2, '5904 N Macarthur Blvd', 'Irving', 'TX', 75039, 32.895155, -96.958444)
47
- D, [2013-09-15T15:49:06.196736 #6455] DEBUG -- : Fixture Delete (0.4ms) DELETE FROM `mock_organizations`
48
- D, [2013-09-15T15:49:06.197712 #6455] DEBUG -- : Fixture Insert (0.4ms) INSERT INTO `mock_organizations` (`name`, `id`) VALUES ('Starbucks', 378604642)
49
- D, [2013-09-15T15:49:06.198719 #6455] DEBUG -- : Fixture Insert (0.6ms) INSERT INTO `mock_organizations` (`name`, `id`) VALUES ('Barnes & Noble', 1064917858)
50
- D, [2013-09-15T15:49:06.209869 #6455] DEBUG -- :  (10.6ms) COMMIT
51
- D, [2013-09-15T15:49:06.211381 #6455] DEBUG -- :  (0.7ms) SET FOREIGN_KEY_CHECKS = 1
52
- D, [2013-09-15T15:49:06.212529 #6455] DEBUG -- : SQL (0.4ms) BEGIN
53
- D, [2013-09-15T15:49:06.217730 #6455] DEBUG -- : Company Load (1.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
54
- D, [2013-09-15T15:49:06.232005 #6455] DEBUG -- : Location Load (1.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
55
- D, [2013-09-15T15:49:06.246143 #6455] DEBUG -- : CustomLocation Load (1.1ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
56
- D, [2013-09-15T15:49:06.258478 #6455] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
57
- D, [2013-09-15T15:49:06.259488 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
58
- D, [2013-09-15T15:49:06.260710 #6455] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
59
- D, [2013-09-15T15:49:06.265437 #6455] DEBUG -- : MockAddress Load (0.9ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
60
- D, [2013-09-15T15:49:06.302724 #6455] DEBUG -- : Location Load (1.4ms) SELECT `locations`.* FROM `locations` WHERE ((
61
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
62
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
63
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
64
- <= 5)) AND (city = 'Coppell')
65
- D, [2013-09-15T15:49:06.305433 #6455] DEBUG -- :  (2.0ms) SELECT COUNT(*) FROM `locations` WHERE ((
66
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
67
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
68
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
69
- <= 5)) AND (city = 'Coppell')
70
- D, [2013-09-15T15:49:06.307241 #6455] DEBUG -- :  (0.3ms) ROLLBACK
71
- D, [2013-09-15T15:49:06.309059 #6455] DEBUG -- : SQL (0.3ms) BEGIN
72
- D, [2013-09-15T15:49:06.310153 #6455] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
73
- D, [2013-09-15T15:49:06.311292 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
74
- D, [2013-09-15T15:49:06.312520 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
75
- D, [2013-09-15T15:49:06.313658 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
76
- D, [2013-09-15T15:49:06.314763 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
77
- D, [2013-09-15T15:49:06.315869 #6455] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
78
- D, [2013-09-15T15:49:06.316997 #6455] DEBUG -- : MockAddress Load (0.5ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
79
- D, [2013-09-15T15:49:06.332568 #6455] DEBUG -- :  (0.3ms) SAVEPOINT active_record_1
80
- D, [2013-09-15T15:49:06.340270 #6455] DEBUG -- : SQL (1.3ms) INSERT INTO `stores` (`address`, `lat`, `lng`) VALUES (?, ?, ?) [["address", "Irving, TX"], ["lat", #<BigDecimal:4983290,'0.32918593E2',18(45)>], ["lng", #<BigDecimal:4983100,'-0.96958444E2',18(45)>]]
81
- D, [2013-09-15T15:49:06.341019 #6455] DEBUG -- :  (0.3ms) RELEASE SAVEPOINT active_record_1
82
- D, [2013-09-15T15:49:06.346674 #6455] DEBUG -- :  (4.9ms) ROLLBACK
83
- D, [2013-09-15T15:49:06.348118 #6455] DEBUG -- : SQL (0.3ms) BEGIN
84
- D, [2013-09-15T15:49:06.350685 #6455] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
85
- D, [2013-09-15T15:49:06.352719 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
86
- D, [2013-09-15T15:49:06.354727 #6455] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
87
- D, [2013-09-15T15:49:06.356638 #6455] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
88
- D, [2013-09-15T15:49:06.358556 #6455] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
89
- D, [2013-09-15T15:49:06.360605 #6455] DEBUG -- : MockOrganization Load (0.6ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
90
- D, [2013-09-15T15:49:06.362760 #6455] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
91
- D, [2013-09-15T15:49:06.365777 #6455] DEBUG -- :  (0.4ms) SAVEPOINT active_record_1
92
- D, [2013-09-15T15:49:06.367224 #6455] DEBUG -- :  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
93
- D, [2013-09-15T15:49:06.368546 #6455] DEBUG -- :  (0.3ms) ROLLBACK
94
- D, [2013-09-15T15:49:06.369064 #6455] DEBUG -- : SQL (0.1ms) BEGIN
95
- D, [2013-09-15T15:49:06.370115 #6455] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
96
- D, [2013-09-15T15:49:06.370959 #6455] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
97
- D, [2013-09-15T15:49:06.371775 #6455] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
98
- D, [2013-09-15T15:49:06.372544 #6455] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
99
- D, [2013-09-15T15:49:06.373263 #6455] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
100
- D, [2013-09-15T15:49:06.389593 #6455] DEBUG -- : MockOrganization Load (15.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
101
- D, [2013-09-15T15:49:06.391547 #6455] DEBUG -- : MockAddress Load (1.2ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
102
- D, [2013-09-15T15:49:06.393620 #6455] DEBUG -- :  (0.3ms) ROLLBACK
103
- D, [2013-09-15T15:49:06.394500 #6455] DEBUG -- : SQL (0.3ms) BEGIN
104
- D, [2013-09-15T15:49:06.395542 #6455] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
105
- D, [2013-09-15T15:49:06.396794 #6455] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
106
- D, [2013-09-15T15:49:06.398712 #6455] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
107
- D, [2013-09-15T15:49:06.400562 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
108
- D, [2013-09-15T15:49:06.401475 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
109
- D, [2013-09-15T15:49:06.402390 #6455] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
110
- D, [2013-09-15T15:49:06.404038 #6455] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
111
- D, [2013-09-15T15:49:06.406206 #6455] DEBUG -- :  (0.4ms) ROLLBACK
112
- D, [2013-09-15T15:49:06.407477 #6455] DEBUG -- : SQL (0.3ms) BEGIN
113
- D, [2013-09-15T15:49:06.409369 #6455] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
114
- D, [2013-09-15T15:49:06.411563 #6455] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
115
- D, [2013-09-15T15:49:06.413626 #6455] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
116
- D, [2013-09-15T15:49:06.415487 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
117
- D, [2013-09-15T15:49:06.417376 #6455] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
118
- D, [2013-09-15T15:49:06.419777 #6455] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
119
- D, [2013-09-15T15:49:06.422028 #6455] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
120
- D, [2013-09-15T15:49:06.428240 #6455] DEBUG -- : Location Load (1.9ms) SELECT `locations`.* FROM `locations` ORDER BY
121
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
122
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
123
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
124
- asc
125
- D, [2013-09-15T15:49:06.434878 #6455] DEBUG -- :  (0.5ms) ROLLBACK
126
- D, [2013-09-15T15:49:06.436463 #6455] DEBUG -- : SQL (0.4ms) BEGIN
127
- D, [2013-09-15T15:49:06.438782 #6455] DEBUG -- : Company Load (0.9ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
128
- D, [2013-09-15T15:49:06.440877 #6455] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
129
- D, [2013-09-15T15:49:06.442918 #6455] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
130
- D, [2013-09-15T15:49:06.470763 #6455] DEBUG -- : Location Load (26.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
131
- D, [2013-09-15T15:49:06.472610 #6455] DEBUG -- : CustomLocation Load (1.0ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
132
- D, [2013-09-15T15:49:06.473554 #6455] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
133
- D, [2013-09-15T15:49:06.474533 #6455] DEBUG -- : MockAddress Load (0.5ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
134
- D, [2013-09-15T15:49:06.476084 #6455] DEBUG -- :  (0.3ms) ROLLBACK
135
- D, [2013-09-15T15:49:06.476809 #6455] DEBUG -- : SQL (0.3ms) BEGIN
136
- D, [2013-09-15T15:49:06.477866 #6455] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
137
- D, [2013-09-15T15:49:06.478887 #6455] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
138
- D, [2013-09-15T15:49:06.479771 #6455] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
139
- D, [2013-09-15T15:49:06.480826 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
140
- D, [2013-09-15T15:49:06.482779 #6455] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
141
- D, [2013-09-15T15:49:06.484734 #6455] DEBUG -- : MockOrganization Load (0.6ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
142
- D, [2013-09-15T15:49:06.486854 #6455] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
143
- D, [2013-09-15T15:49:06.491540 #6455] DEBUG -- :  (0.4ms) ROLLBACK
144
- D, [2013-09-15T15:49:06.493224 #6455] DEBUG -- : SQL (0.3ms) BEGIN
145
- D, [2013-09-15T15:49:06.495709 #6455] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
146
- D, [2013-09-15T15:49:06.497851 #6455] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
147
- D, [2013-09-15T15:49:06.499182 #6455] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
148
- D, [2013-09-15T15:49:06.500094 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
149
- D, [2013-09-15T15:49:06.500989 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
150
- D, [2013-09-15T15:49:06.501665 #6455] DEBUG -- : MockOrganization Load (0.3ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
151
- D, [2013-09-15T15:49:06.502363 #6455] DEBUG -- : MockAddress Load (0.3ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
152
- D, [2013-09-15T15:49:06.507059 #6455] DEBUG -- : Location Load (1.0ms) SELECT `locations`.* FROM `locations` WHERE ((
153
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
154
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
155
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
156
- > 3.95))
157
- D, [2013-09-15T15:49:06.509050 #6455] DEBUG -- :  (0.8ms) SELECT COUNT(*) FROM `locations` WHERE ((
158
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
159
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
160
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
161
- > 3.95))
162
- D, [2013-09-15T15:49:06.509841 #6455] DEBUG -- :  (0.2ms) ROLLBACK
163
- D, [2013-09-15T15:49:06.510745 #6455] DEBUG -- : SQL (0.1ms) BEGIN
164
- D, [2013-09-15T15:49:06.511564 #6455] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
165
- D, [2013-09-15T15:49:06.532451 #6455] DEBUG -- : Location Load (20.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
166
- D, [2013-09-15T15:49:06.533896 #6455] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
167
- D, [2013-09-15T15:49:06.534756 #6455] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
168
- D, [2013-09-15T15:49:06.535624 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
169
- D, [2013-09-15T15:49:06.536526 #6455] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
170
- D, [2013-09-15T15:49:06.537486 #6455] DEBUG -- : MockAddress Load (0.5ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
171
- D, [2013-09-15T15:49:06.540098 #6455] DEBUG -- : Location Load (1.5ms) SELECT `locations`.* FROM `locations` WHERE ((
172
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
173
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
174
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
175
- > 3.95))
176
- D, [2013-09-15T15:49:06.542179 #6455] DEBUG -- :  (0.7ms) SELECT COUNT(*) FROM `locations` WHERE ((
177
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
178
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
179
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
180
- > 3.95))
181
- D, [2013-09-15T15:49:06.542723 #6455] DEBUG -- :  (0.3ms) ROLLBACK
182
- D, [2013-09-15T15:49:06.543597 #6455] DEBUG -- : SQL (0.3ms) BEGIN
183
- D, [2013-09-15T15:49:06.544551 #6455] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
184
- D, [2013-09-15T15:49:06.545463 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
185
- D, [2013-09-15T15:49:06.546368 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
186
- D, [2013-09-15T15:49:06.547796 #6455] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
187
- D, [2013-09-15T15:49:06.549235 #6455] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
188
- D, [2013-09-15T15:49:06.550743 #6455] DEBUG -- : MockOrganization Load (0.6ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
189
- D, [2013-09-15T15:49:06.552722 #6455] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
190
- D, [2013-09-15T15:49:06.556145 #6455] DEBUG -- : CustomLocation Load (1.2ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE ((
191
- SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
192
- POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
193
- > 3.95))
194
- D, [2013-09-15T15:49:06.557837 #6455] DEBUG -- :  (0.9ms) SELECT COUNT(*) FROM `custom_locations` WHERE ((
195
- SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
196
- POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
197
- > 3.95))
198
- D, [2013-09-15T15:49:06.558595 #6455] DEBUG -- :  (0.3ms) ROLLBACK
199
- D, [2013-09-15T15:49:06.559707 #6455] DEBUG -- : SQL (0.3ms) BEGIN
200
- D, [2013-09-15T15:49:06.561206 #6455] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
201
- D, [2013-09-15T15:49:06.562787 #6455] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
202
- D, [2013-09-15T15:49:06.564372 #6455] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
203
- D, [2013-09-15T15:49:06.565915 #6455] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
204
- D, [2013-09-15T15:49:06.567404 #6455] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
205
- D, [2013-09-15T15:49:06.568865 #6455] DEBUG -- : MockOrganization Load (0.6ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
206
- D, [2013-09-15T15:49:06.591099 #6455] DEBUG -- : MockAddress Load (21.2ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
207
- D, [2013-09-15T15:49:06.593291 #6455] DEBUG -- : CustomLocation Load (1.0ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE ((
208
- SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
209
- POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
210
- > 3.95))
211
- D, [2013-09-15T15:49:06.594390 #6455] DEBUG -- :  (0.7ms) SELECT COUNT(*) FROM `custom_locations` WHERE ((
212
- SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
213
- POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
214
- > 3.95))
215
- D, [2013-09-15T15:49:06.594950 #6455] DEBUG -- :  (0.3ms) ROLLBACK
216
- D, [2013-09-15T15:49:06.595694 #6455] DEBUG -- : SQL (0.2ms) BEGIN
217
- D, [2013-09-15T15:49:06.596583 #6455] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
218
- D, [2013-09-15T15:49:06.597422 #6455] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
219
- D, [2013-09-15T15:49:06.598247 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
220
- D, [2013-09-15T15:49:06.599051 #6455] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
221
- D, [2013-09-15T15:49:06.599861 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
222
- D, [2013-09-15T15:49:06.600667 #6455] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
223
- D, [2013-09-15T15:49:06.601504 #6455] DEBUG -- : MockAddress Load (0.5ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
224
- D, [2013-09-15T15:49:06.603630 #6455] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` WHERE ((
225
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
226
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
227
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
228
- > 3.95))
229
- D, [2013-09-15T15:49:06.604821 #6455] DEBUG -- :  (0.8ms) SELECT COUNT(*) FROM `locations` WHERE ((
230
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
231
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
232
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
233
- > 3.95))
234
- D, [2013-09-15T15:49:06.605277 #6455] DEBUG -- :  (0.3ms) ROLLBACK
235
- D, [2013-09-15T15:49:06.605971 #6455] DEBUG -- : SQL (0.2ms) BEGIN
236
- D, [2013-09-15T15:49:06.606902 #6455] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
237
- D, [2013-09-15T15:49:06.607738 #6455] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
238
- D, [2013-09-15T15:49:06.608559 #6455] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
239
- D, [2013-09-15T15:49:06.609297 #6455] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
240
- D, [2013-09-15T15:49:06.610065 #6455] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
241
- D, [2013-09-15T15:49:06.610767 #6455] DEBUG -- : MockOrganization Load (0.3ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
242
- D, [2013-09-15T15:49:06.611624 #6455] DEBUG -- : MockAddress Load (0.5ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
243
- D, [2013-09-15T15:49:06.614309 #6455] DEBUG -- : Location Load (1.2ms) SELECT `locations`.* FROM `locations` ORDER BY
244
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
245
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
246
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
247
- asc
248
- D, [2013-09-15T15:49:06.615257 #6455] DEBUG -- :  (0.3ms) ROLLBACK
249
- D, [2013-09-15T15:49:06.615955 #6455] DEBUG -- : SQL (0.2ms) BEGIN
250
- D, [2013-09-15T15:49:06.617346 #6455] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
251
- D, [2013-09-15T15:49:06.619529 #6455] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
252
- D, [2013-09-15T15:49:06.621503 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
253
- D, [2013-09-15T15:49:06.623296 #6455] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
254
- D, [2013-09-15T15:49:06.643797 #6455] DEBUG -- : CustomLocation Load (19.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
255
- D, [2013-09-15T15:49:06.645071 #6455] DEBUG -- : MockOrganization Load (0.6ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
256
- D, [2013-09-15T15:49:06.645882 #6455] DEBUG -- : MockAddress Load (0.3ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
257
- D, [2013-09-15T15:49:06.648013 #6455] DEBUG -- : Location Load (1.1ms) SELECT `locations`.* FROM `locations` ORDER BY
258
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
259
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
260
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
261
- asc
262
- D, [2013-09-15T15:49:06.648776 #6455] DEBUG -- :  (0.3ms) ROLLBACK
263
- D, [2013-09-15T15:49:06.649477 #6455] DEBUG -- : SQL (0.1ms) BEGIN
264
- D, [2013-09-15T15:49:06.651505 #6455] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
265
- D, [2013-09-15T15:49:06.653503 #6455] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
266
- D, [2013-09-15T15:49:06.655368 #6455] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
267
- D, [2013-09-15T15:49:06.657270 #6455] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
268
- D, [2013-09-15T15:49:06.659158 #6455] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
269
- D, [2013-09-15T15:49:06.661068 #6455] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
270
- D, [2013-09-15T15:49:06.662982 #6455] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
271
- D, [2013-09-15T15:49:06.666468 #6455] DEBUG -- : CustomLocation Load (1.3ms) SELECT `custom_locations`.* FROM `custom_locations` ORDER BY
272
- SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
273
- POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
274
- asc
275
- D, [2013-09-15T15:49:06.668716 #6455] DEBUG -- :  (0.4ms) ROLLBACK
276
- D, [2013-09-15T15:49:06.670315 #6455] DEBUG -- : SQL (0.3ms) BEGIN
277
- D, [2013-09-15T15:49:06.672664 #6455] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
278
- D, [2013-09-15T15:49:06.675264 #6455] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
279
- D, [2013-09-15T15:49:06.677572 #6455] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
280
- D, [2013-09-15T15:49:06.679816 #6455] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
281
- D, [2013-09-15T15:49:06.681874 #6455] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
282
- D, [2013-09-15T15:49:06.684251 #6455] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
283
- D, [2013-09-15T15:49:06.686359 #6455] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
284
- D, [2013-09-15T15:49:06.691223 #6455] DEBUG -- : CustomLocation Load (1.5ms) SELECT `custom_locations`.* FROM `custom_locations` ORDER BY
285
- SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
286
- POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
287
- asc
288
- D, [2013-09-15T15:49:06.693280 #6455] DEBUG -- :  (0.4ms) ROLLBACK
289
- D, [2013-09-15T15:49:06.694719 #6455] DEBUG -- : SQL (0.3ms) BEGIN
290
- D, [2013-09-15T15:49:06.696715 #6455] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
291
- D, [2013-09-15T15:49:06.698636 #6455] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
292
- D, [2013-09-15T15:49:06.724352 #6455] DEBUG -- : CustomLocation Load (24.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
293
- D, [2013-09-15T15:49:06.726400 #6455] DEBUG -- : Location Load (1.3ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
294
- D, [2013-09-15T15:49:06.728421 #6455] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
295
- D, [2013-09-15T15:49:06.730307 #6455] DEBUG -- : MockOrganization Load (0.6ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
296
- D, [2013-09-15T15:49:06.732349 #6455] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
297
- D, [2013-09-15T15:49:06.737883 #6455] DEBUG -- : Location Load (1.2ms) SELECT `locations`.* FROM `locations` ORDER BY
298
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
299
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
300
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
301
- asc LIMIT 1
302
- D, [2013-09-15T15:49:06.738850 #6455] DEBUG -- :  (0.2ms) ROLLBACK
303
- D, [2013-09-15T15:49:06.739448 #6455] DEBUG -- : SQL (0.2ms) BEGIN
304
- D, [2013-09-15T15:49:06.740120 #6455] DEBUG -- : Company Load (0.3ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
305
- D, [2013-09-15T15:49:06.740766 #6455] DEBUG -- : Location Load (0.3ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
306
- D, [2013-09-15T15:49:06.741428 #6455] DEBUG -- : CustomLocation Load (0.3ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
307
- D, [2013-09-15T15:49:06.741991 #6455] DEBUG -- : Location Load (0.2ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
308
- D, [2013-09-15T15:49:06.742643 #6455] DEBUG -- : CustomLocation Load (0.3ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
309
- D, [2013-09-15T15:49:06.743350 #6455] DEBUG -- : MockOrganization Load (0.3ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
310
- D, [2013-09-15T15:49:06.744122 #6455] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
311
- D, [2013-09-15T15:49:06.745845 #6455] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` ORDER BY
312
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
313
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
314
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
315
- asc LIMIT 1
316
- D, [2013-09-15T15:49:06.746334 #6455] DEBUG -- :  (0.2ms) ROLLBACK
317
- D, [2013-09-15T15:49:06.747132 #6455] DEBUG -- : SQL (0.3ms) BEGIN
318
- D, [2013-09-15T15:49:06.747955 #6455] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
319
- D, [2013-09-15T15:49:06.748799 #6455] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
320
- D, [2013-09-15T15:49:06.749661 #6455] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
321
- D, [2013-09-15T15:49:06.750646 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
322
- D, [2013-09-15T15:49:06.751537 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
323
- D, [2013-09-15T15:49:06.752411 #6455] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
324
- D, [2013-09-15T15:49:06.753258 #6455] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
325
- D, [2013-09-15T15:49:06.754682 #6455] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` ORDER BY
326
- SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
327
- POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
328
- asc LIMIT 1
329
- D, [2013-09-15T15:49:06.755155 #6455] DEBUG -- :  (0.2ms) ROLLBACK
330
- D, [2013-09-15T15:49:06.755661 #6455] DEBUG -- : SQL (0.1ms) BEGIN
331
- D, [2013-09-15T15:49:06.771360 #6455] DEBUG -- : Company Load (15.3ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
332
- D, [2013-09-15T15:49:06.772814 #6455] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
333
- D, [2013-09-15T15:49:06.773683 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
334
- D, [2013-09-15T15:49:06.774474 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
335
- D, [2013-09-15T15:49:06.775281 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
336
- D, [2013-09-15T15:49:06.776065 #6455] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
337
- D, [2013-09-15T15:49:06.776852 #6455] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
338
- D, [2013-09-15T15:49:06.778638 #6455] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` ORDER BY
339
- SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
340
- POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
341
- asc LIMIT 1
342
- D, [2013-09-15T15:49:06.779194 #6455] DEBUG -- :  (0.3ms) ROLLBACK
343
- D, [2013-09-15T15:49:06.779910 #6455] DEBUG -- : SQL (0.2ms) BEGIN
344
- D, [2013-09-15T15:49:06.780778 #6455] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
345
- D, [2013-09-15T15:49:06.781585 #6455] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
346
- D, [2013-09-15T15:49:06.782395 #6455] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
347
- D, [2013-09-15T15:49:06.783187 #6455] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
348
- D, [2013-09-15T15:49:06.783927 #6455] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
349
- D, [2013-09-15T15:49:06.784580 #6455] DEBUG -- : MockOrganization Load (0.3ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
350
- D, [2013-09-15T15:49:06.785306 #6455] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
351
- D, [2013-09-15T15:49:06.787942 #6455] DEBUG -- : Location Load (1.4ms) SELECT `locations`.* FROM `locations` WHERE ((
352
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
353
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
354
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
355
- >= 0 AND
356
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
357
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
358
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
359
- <= 10))
360
- D, [2013-09-15T15:49:06.789705 #6455] DEBUG -- :  (1.2ms) SELECT COUNT(*) FROM `locations` WHERE ((
361
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
362
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
363
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
364
- >= 0 AND
365
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
366
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
367
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
368
- <= 10))
369
- D, [2013-09-15T15:49:06.790161 #6455] DEBUG -- :  (0.3ms) ROLLBACK
370
- D, [2013-09-15T15:49:06.790891 #6455] DEBUG -- : SQL (0.2ms) BEGIN
371
- D, [2013-09-15T15:49:06.791746 #6455] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
372
- D, [2013-09-15T15:49:06.792554 #6455] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
373
- D, [2013-09-15T15:49:06.793290 #6455] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
374
- D, [2013-09-15T15:49:06.794055 #6455] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
375
- D, [2013-09-15T15:49:06.794898 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
376
- D, [2013-09-15T15:49:06.810646 #6455] DEBUG -- : MockOrganization Load (15.3ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
377
- D, [2013-09-15T15:49:06.812074 #6455] DEBUG -- : MockAddress Load (0.9ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
378
- D, [2013-09-15T15:49:06.814582 #6455] DEBUG -- : Location Load (1.3ms) SELECT `locations`.* FROM `locations` WHERE ((
379
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
380
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
381
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
382
- >= 0 AND
383
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
384
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
385
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
386
- < 10))
387
- D, [2013-09-15T15:49:06.816230 #6455] DEBUG -- :  (1.1ms) SELECT COUNT(*) FROM `locations` WHERE ((
388
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
389
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
390
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
391
- >= 0 AND
392
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
393
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
394
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
395
- < 10))
396
- D, [2013-09-15T15:49:06.816688 #6455] DEBUG -- :  (0.3ms) ROLLBACK
397
- D, [2013-09-15T15:49:06.817367 #6455] DEBUG -- : SQL (0.2ms) BEGIN
398
- D, [2013-09-15T15:49:06.818279 #6455] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
399
- D, [2013-09-15T15:49:06.819180 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
400
- D, [2013-09-15T15:49:06.820044 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
401
- D, [2013-09-15T15:49:06.820844 #6455] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
402
- D, [2013-09-15T15:49:06.821641 #6455] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
403
- D, [2013-09-15T15:49:06.822449 #6455] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
404
- D, [2013-09-15T15:49:06.823281 #6455] DEBUG -- : MockAddress Load (0.5ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
405
- D, [2013-09-15T15:49:06.825814 #6455] DEBUG -- : Location Load (1.3ms) SELECT `locations`.* FROM `locations` WHERE ((
406
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
407
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
408
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
409
- >= 0 AND
410
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
411
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
412
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
413
- <= 10)) AND (city = 'Coppell')
414
- D, [2013-09-15T15:49:06.828207 #6455] DEBUG -- :  (1.9ms) SELECT COUNT(*) FROM `locations` WHERE ((
415
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
416
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
417
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
418
- >= 0 AND
419
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
420
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
421
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
422
- <= 10)) AND (city = 'Coppell')
423
- D, [2013-09-15T15:49:06.828786 #6455] DEBUG -- :  (0.1ms) ROLLBACK
424
- D, [2013-09-15T15:49:06.830332 #6455] DEBUG -- : SQL (0.2ms) BEGIN
425
- D, [2013-09-15T15:49:06.831598 #6455] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
426
- D, [2013-09-15T15:49:06.832534 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
427
- D, [2013-09-15T15:49:06.833371 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
428
- D, [2013-09-15T15:49:06.834177 #6455] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
429
- D, [2013-09-15T15:49:06.835145 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
430
- D, [2013-09-15T15:49:06.836301 #6455] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
431
- D, [2013-09-15T15:49:06.837790 #6455] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
432
- D, [2013-09-15T15:49:06.847668 #6455] DEBUG -- : Location Load (1.0ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`city` = 'Coppell' AND ((
433
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
434
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
435
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
436
- >= 0 AND
437
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
438
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
439
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
440
- <= 10))
441
- D, [2013-09-15T15:49:06.849126 #6455] DEBUG -- :  (0.9ms) SELECT COUNT(*) FROM `locations` WHERE `locations`.`city` = 'Coppell' AND ((
442
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
443
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
444
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
445
- >= 0 AND
446
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
447
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
448
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
449
- <= 10))
450
- D, [2013-09-15T15:49:06.849640 #6455] DEBUG -- :  (0.3ms) ROLLBACK
451
- D, [2013-09-15T15:49:06.850355 #6455] DEBUG -- : SQL (0.2ms) BEGIN
452
- D, [2013-09-15T15:49:06.851208 #6455] DEBUG -- : Company Load (0.3ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
453
- D, [2013-09-15T15:49:06.851921 #6455] DEBUG -- : Location Load (0.3ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
454
- D, [2013-09-15T15:49:06.852635 #6455] DEBUG -- : CustomLocation Load (0.3ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
455
- D, [2013-09-15T15:49:06.869932 #6455] DEBUG -- : Location Load (16.9ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
456
- D, [2013-09-15T15:49:06.871392 #6455] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
457
- D, [2013-09-15T15:49:06.872142 #6455] DEBUG -- : MockOrganization Load (0.3ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
458
- D, [2013-09-15T15:49:06.872873 #6455] DEBUG -- : MockAddress Load (0.3ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
459
- D, [2013-09-15T15:49:06.874574 #6455] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE ((
460
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
461
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
462
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
463
- <= 3.97))
464
- D, [2013-09-15T15:49:06.875666 #6455] DEBUG -- :  (0.6ms) SELECT COUNT(*) FROM `locations` WHERE ((
465
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
466
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
467
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
468
- <= 3.97))
469
- D, [2013-09-15T15:49:06.876097 #6455] DEBUG -- :  (0.2ms) ROLLBACK
470
- D, [2013-09-15T15:49:06.876820 #6455] DEBUG -- : SQL (0.2ms) BEGIN
471
- D, [2013-09-15T15:49:06.877975 #6455] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
472
- D, [2013-09-15T15:49:06.878907 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
473
- D, [2013-09-15T15:49:06.879822 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
474
- D, [2013-09-15T15:49:06.880737 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
475
- D, [2013-09-15T15:49:06.881609 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
476
- D, [2013-09-15T15:49:06.882560 #6455] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
477
- D, [2013-09-15T15:49:06.883685 #6455] DEBUG -- : MockAddress Load (0.5ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
478
- D, [2013-09-15T15:49:06.886707 #6455] DEBUG -- : Location Load (1.1ms) SELECT `locations`.* FROM `locations` WHERE ((
479
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
480
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
481
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
482
- <= 5)) AND (city = 'Coppell')
483
- D, [2013-09-15T15:49:06.888325 #6455] DEBUG -- :  (1.0ms) SELECT COUNT(*) FROM `locations` WHERE ((
484
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
485
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
486
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
487
- <= 5)) AND (city = 'Coppell')
488
- D, [2013-09-15T15:49:06.888840 #6455] DEBUG -- :  (0.2ms) ROLLBACK
489
- D, [2013-09-15T15:49:06.889496 #6455] DEBUG -- : SQL (0.2ms) BEGIN
490
- D, [2013-09-15T15:49:06.890659 #6455] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
491
- D, [2013-09-15T15:49:06.891722 #6455] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
492
- D, [2013-09-15T15:49:06.892864 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
493
- D, [2013-09-15T15:49:06.893972 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
494
- D, [2013-09-15T15:49:06.895206 #6455] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
495
- D, [2013-09-15T15:49:06.896476 #6455] DEBUG -- : MockOrganization Load (0.6ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
496
- D, [2013-09-15T15:49:06.897782 #6455] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
497
- D, [2013-09-15T15:49:06.900923 #6455] DEBUG -- : CustomLocation Load (1.2ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE ((
498
- SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
499
- POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
500
- <= 5)) AND (city = 'Coppell')
501
- D, [2013-09-15T15:49:06.903177 #6455] DEBUG -- :  (0.9ms) SELECT COUNT(*) FROM `custom_locations` WHERE ((
502
- SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
503
- POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
504
- <= 5)) AND (city = 'Coppell')
505
- D, [2013-09-15T15:49:06.904215 #6455] DEBUG -- :  (0.4ms) ROLLBACK
506
- D, [2013-09-15T15:49:06.905633 #6455] DEBUG -- : SQL (0.2ms) BEGIN
507
- D, [2013-09-15T15:49:06.907733 #6455] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
508
- D, [2013-09-15T15:49:06.937133 #6455] DEBUG -- : Location Load (28.0ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
509
- D, [2013-09-15T15:49:06.938670 #6455] DEBUG -- : CustomLocation Load (1.0ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
510
- D, [2013-09-15T15:49:06.939819 #6455] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
511
- D, [2013-09-15T15:49:06.941714 #6455] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
512
- D, [2013-09-15T15:49:06.943680 #6455] DEBUG -- : MockOrganization Load (0.6ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
513
- D, [2013-09-15T15:49:06.945654 #6455] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
514
- D, [2013-09-15T15:49:06.949826 #6455] DEBUG -- : CustomLocation Load (1.0ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE ((
515
- SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
516
- POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
517
- <= 3.97))
518
- D, [2013-09-15T15:49:06.952387 #6455] DEBUG -- :  (0.7ms) SELECT COUNT(*) FROM `custom_locations` WHERE ((
519
- SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
520
- POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
521
- <= 3.97))
522
- D, [2013-09-15T15:49:06.953208 #6455] DEBUG -- :  (0.2ms) ROLLBACK
523
- D, [2013-09-15T15:49:06.954354 #6455] DEBUG -- : SQL (0.2ms) BEGIN
524
- D, [2013-09-15T15:49:06.956281 #6455] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
525
- D, [2013-09-15T15:49:06.958196 #6455] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
526
- D, [2013-09-15T15:49:06.960188 #6455] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
527
- D, [2013-09-15T15:49:06.962049 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
528
- D, [2013-09-15T15:49:06.963764 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
529
- D, [2013-09-15T15:49:06.965464 #6455] DEBUG -- : MockOrganization Load (0.6ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
530
- D, [2013-09-15T15:49:06.966402 #6455] DEBUG -- : MockAddress Load (0.5ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
531
- D, [2013-09-15T15:49:06.970607 #6455] DEBUG -- : CustomLocation Load (1.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE ((
532
- SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
533
- POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
534
- <= 3.97))
535
- D, [2013-09-15T15:49:06.973216 #6455] DEBUG -- :  (1.1ms) SELECT COUNT(*) FROM `custom_locations` WHERE ((
536
- SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
537
- POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
538
- <= 3.97))
539
- D, [2013-09-15T15:49:06.974205 #6455] DEBUG -- :  (0.4ms) ROLLBACK
540
- D, [2013-09-15T15:49:06.975755 #6455] DEBUG -- : SQL (0.4ms) BEGIN
541
- D, [2013-09-15T15:49:06.977623 #6455] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
542
- D, [2013-09-15T15:49:06.979577 #6455] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
543
- D, [2013-09-15T15:49:06.981661 #6455] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
544
- D, [2013-09-15T15:49:06.984068 #6455] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
545
- D, [2013-09-15T15:49:06.985983 #6455] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
546
- D, [2013-09-15T15:49:06.987925 #6455] DEBUG -- : MockOrganization Load (0.6ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
547
- D, [2013-09-15T15:49:07.013238 #6455] DEBUG -- : MockAddress Load (24.1ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
548
- D, [2013-09-15T15:49:07.015880 #6455] DEBUG -- : Location Load (1.2ms) SELECT `locations`.* FROM `locations` WHERE ((
549
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
550
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
551
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
552
- <= 3.97))
553
- D, [2013-09-15T15:49:07.017165 #6455] DEBUG -- :  (0.8ms) SELECT COUNT(*) FROM `locations` WHERE ((
554
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
555
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
556
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
557
- <= 3.97))
558
- D, [2013-09-15T15:49:07.017623 #6455] DEBUG -- :  (0.2ms) ROLLBACK
559
- D, [2013-09-15T15:49:07.018623 #6455] DEBUG -- : SQL (0.3ms) BEGIN
560
- D, [2013-09-15T15:49:07.020614 #6455] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
561
- D, [2013-09-15T15:49:07.022654 #6455] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
562
- D, [2013-09-15T15:49:07.024624 #6455] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
563
- D, [2013-09-15T15:49:07.026482 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
564
- D, [2013-09-15T15:49:07.028421 #6455] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
565
- D, [2013-09-15T15:49:07.030310 #6455] DEBUG -- : MockOrganization Load (0.6ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
566
- D, [2013-09-15T15:49:07.032247 #6455] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
567
- D, [2013-09-15T15:49:07.036651 #6455] DEBUG -- : Location Load (1.3ms) SELECT `locations`.* FROM `locations` WHERE ((
568
- SQRT(POW(69.1*(32.918593-locations.lat),2)+
569
- POW(48.20039936816744*(-96.958444-locations.lng),2))
570
- <= 6.387))
571
- D, [2013-09-15T15:49:07.039495 #6455] DEBUG -- :  (1.0ms) SELECT COUNT(*) FROM `locations` WHERE ((
572
- SQRT(POW(69.1*(32.918593-locations.lat),2)+
573
- POW(48.20039936816744*(-96.958444-locations.lng),2))
574
- <= 6.387))
575
- D, [2013-09-15T15:49:07.040556 #6455] DEBUG -- :  (0.4ms) ROLLBACK
576
- D, [2013-09-15T15:49:07.042073 #6455] DEBUG -- : SQL (0.3ms) BEGIN
577
- D, [2013-09-15T15:49:07.044090 #6455] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
578
- D, [2013-09-15T15:49:07.046154 #6455] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
579
- D, [2013-09-15T15:49:07.048226 #6455] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
580
- D, [2013-09-15T15:49:07.050322 #6455] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
581
- D, [2013-09-15T15:49:07.052707 #6455] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
582
- D, [2013-09-15T15:49:07.054815 #6455] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
583
- D, [2013-09-15T15:49:07.056857 #6455] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
584
- D, [2013-09-15T15:49:07.062560 #6455] DEBUG -- : Location Load (1.6ms) SELECT `locations`.* FROM `locations` WHERE ((
585
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
586
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
587
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*6376.77271)
588
- <= 6.387))
589
- D, [2013-09-15T15:49:07.065503 #6455] DEBUG -- :  (1.3ms) SELECT COUNT(*) FROM `locations` WHERE ((
590
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
591
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
592
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*6376.77271)
593
- <= 6.387))
594
- D, [2013-09-15T15:49:07.066440 #6455] DEBUG -- :  (0.3ms) ROLLBACK
595
- D, [2013-09-15T15:49:07.067722 #6455] DEBUG -- : SQL (0.3ms) BEGIN
596
- D, [2013-09-15T15:49:07.069578 #6455] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
597
- D, [2013-09-15T15:49:07.071482 #6455] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
598
- D, [2013-09-15T15:49:07.073378 #6455] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
599
- D, [2013-09-15T15:49:07.075420 #6455] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
600
- D, [2013-09-15T15:49:07.099239 #6455] DEBUG -- : CustomLocation Load (22.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
601
- D, [2013-09-15T15:49:07.100772 #6455] DEBUG -- : MockOrganization Load (0.9ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
602
- D, [2013-09-15T15:49:07.101648 #6455] DEBUG -- : MockAddress Load (0.5ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
603
- D, [2013-09-15T15:49:07.103983 #6455] DEBUG -- : Location Load (1.1ms) SELECT `locations`.* FROM `locations` WHERE ((
604
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
605
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
606
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
607
- <= 5)) AND (city = 'Coppell')
608
- D, [2013-09-15T15:49:07.105306 #6455] DEBUG -- :  (0.9ms) SELECT COUNT(*) FROM `locations` WHERE ((
609
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
610
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
611
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
612
- <= 5)) AND (city = 'Coppell')
613
- D, [2013-09-15T15:49:07.105815 #6455] DEBUG -- :  (0.3ms) ROLLBACK
614
- D, [2013-09-15T15:49:07.106524 #6455] DEBUG -- : SQL (0.3ms) BEGIN
615
- D, [2013-09-15T15:49:07.107433 #6455] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
616
- D, [2013-09-15T15:49:07.108314 #6455] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
617
- D, [2013-09-15T15:49:07.109193 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
618
- D, [2013-09-15T15:49:07.110500 #6455] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
619
- D, [2013-09-15T15:49:07.112337 #6455] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
620
- D, [2013-09-15T15:49:07.113228 #6455] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
621
- D, [2013-09-15T15:49:07.114156 #6455] DEBUG -- : MockAddress Load (0.5ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
622
- D, [2013-09-15T15:49:07.115346 #6455] DEBUG -- :  (0.5ms) SELECT COUNT(*) FROM `mock_people`
623
- D, [2013-09-15T15:49:07.116197 #6455] DEBUG -- :  (0.4ms) SELECT COUNT(*) FROM `mock_people`
624
- D, [2013-09-15T15:49:07.116731 #6455] DEBUG -- :  (0.3ms) ROLLBACK
625
- D, [2013-09-15T15:49:07.117460 #6455] DEBUG -- : SQL (0.2ms) BEGIN
626
- D, [2013-09-15T15:49:07.118572 #6455] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
627
- D, [2013-09-15T15:49:07.119618 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
628
- D, [2013-09-15T15:49:07.120716 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
629
- D, [2013-09-15T15:49:07.121720 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
630
- D, [2013-09-15T15:49:07.122753 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
631
- D, [2013-09-15T15:49:07.123717 #6455] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
632
- D, [2013-09-15T15:49:07.124637 #6455] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
633
- D, [2013-09-15T15:49:07.127645 #6455] DEBUG -- : Location Load (1.2ms) SELECT `locations`.* FROM `locations` WHERE ((
634
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
635
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
636
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
637
- <= 3.97))
638
- D, [2013-09-15T15:49:07.129538 #6455] DEBUG -- :  (1.0ms) SELECT COUNT(*) FROM `locations` WHERE ((
639
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
640
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
641
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
642
- <= 3.97))
643
- D, [2013-09-15T15:49:07.130146 #6455] DEBUG -- :  (0.3ms) ROLLBACK
644
- D, [2013-09-15T15:49:07.131005 #6455] DEBUG -- : SQL (0.2ms) BEGIN
645
- D, [2013-09-15T15:49:07.132169 #6455] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
646
- D, [2013-09-15T15:49:07.133328 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
647
- D, [2013-09-15T15:49:07.155731 #6455] DEBUG -- : CustomLocation Load (21.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
648
- D, [2013-09-15T15:49:07.157227 #6455] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
649
- D, [2013-09-15T15:49:07.158042 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
650
- D, [2013-09-15T15:49:07.158872 #6455] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
651
- D, [2013-09-15T15:49:07.159783 #6455] DEBUG -- : MockAddress Load (0.5ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
652
- D, [2013-09-15T15:49:07.160934 #6455] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE (locations.lat>32.91663 AND locations.lat<32.96302 AND locations.lng>-96.982841 AND locations.lng<-96.919495)
653
- D, [2013-09-15T15:49:07.161968 #6455] DEBUG -- :  (0.6ms) SELECT COUNT(*) FROM `locations` WHERE (locations.lat>32.91663 AND locations.lat<32.96302 AND locations.lng>-96.982841 AND locations.lng<-96.919495)
654
- D, [2013-09-15T15:49:07.162522 #6455] DEBUG -- :  (0.3ms) ROLLBACK
655
- D, [2013-09-15T15:49:07.163469 #6455] DEBUG -- : SQL (0.3ms) BEGIN
656
- D, [2013-09-15T15:49:07.165770 #6455] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
657
- D, [2013-09-15T15:49:07.167721 #6455] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
658
- D, [2013-09-15T15:49:07.170181 #6455] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
659
- D, [2013-09-15T15:49:07.172201 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
660
- D, [2013-09-15T15:49:07.173945 #6455] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
661
- D, [2013-09-15T15:49:07.174945 #6455] DEBUG -- : MockOrganization Load (0.6ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
662
- D, [2013-09-15T15:49:07.175885 #6455] DEBUG -- : MockAddress Load (0.5ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
663
- D, [2013-09-15T15:49:07.179340 #6455] DEBUG -- : Location Load (1.3ms) SELECT `locations`.* FROM `locations` WHERE (locations.lat>32.91663 AND locations.lat<32.96302 AND locations.lng>-96.982841 AND locations.lng<-96.919495) ORDER BY
664
- (ACOS(least(1,COS(0.5749084012807412)*COS(-1.6921170952541658)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
665
- COS(0.5749084012807412)*SIN(-1.6921170952541658)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
666
- SIN(0.5749084012807412)*SIN(RADIANS(locations.lat))))*3963.19)
667
- asc
668
- D, [2013-09-15T15:49:07.180499 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 4]]
669
- D, [2013-09-15T15:49:07.181166 #6455] DEBUG -- :  (0.3ms) ROLLBACK
670
- D, [2013-09-15T15:49:07.181990 #6455] DEBUG -- : SQL (0.3ms) BEGIN
671
- D, [2013-09-15T15:49:07.183108 #6455] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
672
- D, [2013-09-15T15:49:07.184795 #6455] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
673
- D, [2013-09-15T15:49:07.186536 #6455] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
674
- D, [2013-09-15T15:49:07.188227 #6455] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
675
- D, [2013-09-15T15:49:07.189806 #6455] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
676
- D, [2013-09-15T15:49:07.191515 #6455] DEBUG -- : MockOrganization Load (0.6ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
677
- D, [2013-09-15T15:49:07.215235 #6455] DEBUG -- : MockAddress Load (22.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
678
- D, [2013-09-15T15:49:07.217240 #6455] DEBUG -- : Location Load (1.3ms) SELECT `locations`.* FROM `locations` WHERE (locations.lat>32.91663 AND locations.lat<32.96302 AND locations.lng>-96.982841 AND locations.lng<-96.919495) AND (id != 1)
679
- D, [2013-09-15T15:49:07.217760 #6455] DEBUG -- :  (0.3ms) ROLLBACK
680
- D, [2013-09-15T15:49:07.218322 #6455] DEBUG -- : SQL (0.2ms) BEGIN
681
- D, [2013-09-15T15:49:07.220476 #6455] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
682
- D, [2013-09-15T15:49:07.222365 #6455] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
683
- D, [2013-09-15T15:49:07.224281 #6455] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
684
- D, [2013-09-15T15:49:07.226017 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
685
- D, [2013-09-15T15:49:07.227844 #6455] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
686
- D, [2013-09-15T15:49:07.229868 #6455] DEBUG -- : MockOrganization Load (0.6ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
687
- D, [2013-09-15T15:49:07.231930 #6455] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
688
- D, [2013-09-15T15:49:07.233211 #6455] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 AND (locations.lat>32.91663 AND locations.lat<32.96302 AND locations.lng>-96.982841 AND locations.lng<-96.919495)
689
- D, [2013-09-15T15:49:07.233773 #6455] DEBUG -- :  (0.3ms) ROLLBACK
690
- D, [2013-09-15T15:49:07.234387 #6455] DEBUG -- : SQL (0.2ms) BEGIN
691
- D, [2013-09-15T15:49:07.236481 #6455] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
692
- D, [2013-09-15T15:49:07.238626 #6455] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
693
- D, [2013-09-15T15:49:07.240743 #6455] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
694
- D, [2013-09-15T15:49:07.242843 #6455] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
695
- D, [2013-09-15T15:49:07.244774 #6455] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
696
- D, [2013-09-15T15:49:07.246836 #6455] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
697
- D, [2013-09-15T15:49:07.249007 #6455] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
698
- D, [2013-09-15T15:49:07.251585 #6455] DEBUG -- : Location Load (1.3ms) SELECT `locations`.* FROM `locations` WHERE (locations.lat>32.91663 AND locations.lat<32.96302 AND locations.lng>-96.982841 AND locations.lng<-96.919495) AND (id !=1)
699
- D, [2013-09-15T15:49:07.252832 #6455] DEBUG -- :  (0.4ms) ROLLBACK
700
- D, [2013-09-15T15:49:07.254352 #6455] DEBUG -- : SQL (0.4ms) BEGIN
701
- D, [2013-09-15T15:49:07.256393 #6455] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
702
- D, [2013-09-15T15:49:07.258483 #6455] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
703
- D, [2013-09-15T15:49:07.260482 #6455] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
704
- D, [2013-09-15T15:49:07.262639 #6455] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
705
- D, [2013-09-15T15:49:07.288409 #6455] DEBUG -- : CustomLocation Load (24.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
706
- D, [2013-09-15T15:49:07.289864 #6455] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
707
- D, [2013-09-15T15:49:07.290928 #6455] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
708
- D, [2013-09-15T15:49:07.292084 #6455] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE (locations.lat>32.91663 AND locations.lat<32.96302 AND locations.lng>-96.982841 AND locations.lng<-96.919495)
709
- D, [2013-09-15T15:49:07.293201 #6455] DEBUG -- :  (0.6ms) SELECT COUNT(*) FROM `locations` WHERE (locations.lat>32.91663 AND locations.lat<32.96302 AND locations.lng>-96.982841 AND locations.lng<-96.919495)
710
- D, [2013-09-15T15:49:07.293679 #6455] DEBUG -- :  (0.3ms) ROLLBACK
711
- D, [2013-09-15T15:49:07.294385 #6455] DEBUG -- : SQL (0.2ms) BEGIN
712
- D, [2013-09-15T15:49:07.295353 #6455] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
713
- D, [2013-09-15T15:49:07.296257 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
714
- D, [2013-09-15T15:49:07.297033 #6455] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
715
- D, [2013-09-15T15:49:07.297844 #6455] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
716
- D, [2013-09-15T15:49:07.298651 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
717
- D, [2013-09-15T15:49:07.299447 #6455] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
718
- D, [2013-09-15T15:49:07.300276 #6455] DEBUG -- : MockAddress Load (0.5ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
719
- D, [2013-09-15T15:49:07.302195 #6455] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` WHERE ((
720
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
721
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
722
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
723
- <= 3.97))
724
- D, [2013-09-15T15:49:07.303504 #6455] DEBUG -- :  (0.8ms) SELECT COUNT(*) FROM `locations` WHERE ((
725
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
726
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
727
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
728
- <= 3.97))
729
- D, [2013-09-15T15:49:07.304019 #6455] DEBUG -- :  (0.3ms) ROLLBACK
730
- D, [2013-09-15T15:49:07.304784 #6455] DEBUG -- : SQL (0.2ms) BEGIN
731
- D, [2013-09-15T15:49:07.306830 #6455] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
732
- D, [2013-09-15T15:49:07.308875 #6455] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
733
- D, [2013-09-15T15:49:07.310827 #6455] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
734
- D, [2013-09-15T15:49:07.312675 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
735
- D, [2013-09-15T15:49:07.314603 #6455] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
736
- D, [2013-09-15T15:49:07.316381 #6455] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
737
- D, [2013-09-15T15:49:07.317971 #6455] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
738
- D, [2013-09-15T15:49:07.320621 #6455] DEBUG -- : CustomLocation Load (1.2ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE ((
739
- SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
740
- POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
741
- <= 3.97))
742
- D, [2013-09-15T15:49:07.323586 #6455] DEBUG -- :  (1.1ms) SELECT COUNT(*) FROM `custom_locations` WHERE ((
743
- SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
744
- POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
745
- <= 3.97))
746
- D, [2013-09-15T15:49:07.324638 #6455] DEBUG -- :  (0.3ms) ROLLBACK
747
- D, [2013-09-15T15:49:07.325952 #6455] DEBUG -- : SQL (0.2ms) BEGIN
748
- D, [2013-09-15T15:49:07.328271 #6455] DEBUG -- : Company Load (0.9ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
749
- D, [2013-09-15T15:49:07.330355 #6455] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
750
- D, [2013-09-15T15:49:07.352307 #6455] DEBUG -- : CustomLocation Load (20.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
751
- D, [2013-09-15T15:49:07.353751 #6455] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
752
- D, [2013-09-15T15:49:07.354795 #6455] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
753
- D, [2013-09-15T15:49:07.355692 #6455] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
754
- D, [2013-09-15T15:49:07.356617 #6455] DEBUG -- : MockAddress Load (0.5ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
755
- D, [2013-09-15T15:49:07.358516 #6455] DEBUG -- : CustomLocation Load (0.9ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE ((
756
- SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
757
- POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
758
- <= 3.97))
759
- D, [2013-09-15T15:49:07.359745 #6455] DEBUG -- :  (0.7ms) SELECT COUNT(*) FROM `custom_locations` WHERE ((
760
- SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
761
- POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
762
- <= 3.97))
763
- D, [2013-09-15T15:49:07.360194 #6455] DEBUG -- :  (0.2ms) ROLLBACK
764
- D, [2013-09-15T15:49:07.360794 #6455] DEBUG -- : SQL (0.2ms) BEGIN
765
- D, [2013-09-15T15:49:07.361614 #6455] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
766
- D, [2013-09-15T15:49:07.362510 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
767
- D, [2013-09-15T15:49:07.363337 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
768
- D, [2013-09-15T15:49:07.364124 #6455] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
769
- D, [2013-09-15T15:49:07.364910 #6455] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
770
- D, [2013-09-15T15:49:07.365982 #6455] DEBUG -- : MockOrganization Load (0.6ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
771
- D, [2013-09-15T15:49:07.368081 #6455] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
772
- D, [2013-09-15T15:49:07.369954 #6455] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE (company_id = 1)
773
- D, [2013-09-15T15:49:07.382649 #6455] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` IN (1)
774
- D, [2013-09-15T15:49:07.383392 #6455] DEBUG -- :  (0.1ms) ROLLBACK
775
- D, [2013-09-15T15:49:07.383951 #6455] DEBUG -- : SQL (0.1ms) BEGIN
776
- D, [2013-09-15T15:49:07.385045 #6455] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
777
- D, [2013-09-15T15:49:07.386180 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
778
- D, [2013-09-15T15:49:07.387364 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
779
- D, [2013-09-15T15:49:07.388184 #6455] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
780
- D, [2013-09-15T15:49:07.388974 #6455] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
781
- D, [2013-09-15T15:49:07.389611 #6455] DEBUG -- : MockOrganization Load (0.2ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
782
- D, [2013-09-15T15:49:07.390338 #6455] DEBUG -- : MockAddress Load (0.3ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
783
- D, [2013-09-15T15:49:07.392404 #6455] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` ORDER BY
784
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
785
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
786
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
787
- asc
788
- D, [2013-09-15T15:49:07.394417 #6455] DEBUG -- :  (0.2ms) ROLLBACK
789
- D, [2013-09-15T15:49:07.395075 #6455] DEBUG -- : SQL (0.2ms) BEGIN
790
- D, [2013-09-15T15:49:07.412199 #6455] DEBUG -- : Company Load (16.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
791
- D, [2013-09-15T15:49:07.413771 #6455] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
792
- D, [2013-09-15T15:49:07.414867 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
793
- D, [2013-09-15T15:49:07.415716 #6455] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
794
- D, [2013-09-15T15:49:07.416443 #6455] DEBUG -- : CustomLocation Load (0.3ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
795
- D, [2013-09-15T15:49:07.417208 #6455] DEBUG -- : MockOrganization Load (0.3ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
796
- D, [2013-09-15T15:49:07.418055 #6455] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
797
- D, [2013-09-15T15:49:07.422675 #6455] DEBUG -- : Location Load (1.2ms) SELECT `locations`.* FROM `locations` WHERE ((
798
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
799
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
800
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
801
- > 3.95))
802
- D, [2013-09-15T15:49:07.423690 #6455] DEBUG -- :  (0.5ms) SELECT COUNT(*) FROM `locations` WHERE ((
803
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
804
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
805
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
806
- > 3.95))
807
- D, [2013-09-15T15:49:07.424206 #6455] DEBUG -- :  (0.2ms) ROLLBACK
808
- D, [2013-09-15T15:49:07.424840 #6455] DEBUG -- : SQL (0.2ms) BEGIN
809
- D, [2013-09-15T15:49:07.425697 #6455] DEBUG -- : Company Load (0.3ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
810
- D, [2013-09-15T15:49:07.426436 #6455] DEBUG -- : Location Load (0.3ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
811
- D, [2013-09-15T15:49:07.427170 #6455] DEBUG -- : CustomLocation Load (0.3ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
812
- D, [2013-09-15T15:49:07.427851 #6455] DEBUG -- : Location Load (0.3ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
813
- D, [2013-09-15T15:49:07.428429 #6455] DEBUG -- : CustomLocation Load (0.2ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
814
- D, [2013-09-15T15:49:07.429024 #6455] DEBUG -- : MockOrganization Load (0.2ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
815
- D, [2013-09-15T15:49:07.429646 #6455] DEBUG -- : MockAddress Load (0.2ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
816
- D, [2013-09-15T15:49:07.431589 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` ORDER BY
817
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
818
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
819
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
820
- asc
821
- D, [2013-09-15T15:49:07.432338 #6455] DEBUG -- :  (0.1ms) ROLLBACK
822
- D, [2013-09-15T15:49:07.432815 #6455] DEBUG -- : SQL (0.1ms) BEGIN
823
- D, [2013-09-15T15:49:07.433621 #6455] DEBUG -- : Company Load (0.3ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
824
- D, [2013-09-15T15:49:07.434358 #6455] DEBUG -- : Location Load (0.2ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
825
- D, [2013-09-15T15:49:07.435102 #6455] DEBUG -- : CustomLocation Load (0.3ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
826
- D, [2013-09-15T15:49:07.435782 #6455] DEBUG -- : Location Load (0.3ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
827
- D, [2013-09-15T15:49:07.436381 #6455] DEBUG -- : CustomLocation Load (0.2ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
828
- D, [2013-09-15T15:49:07.452132 #6455] DEBUG -- : MockOrganization Load (15.3ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
829
- D, [2013-09-15T15:49:07.453531 #6455] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
830
- D, [2013-09-15T15:49:07.455568 #6455] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` ORDER BY
831
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
832
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
833
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
834
- asc LIMIT 1
835
- D, [2013-09-15T15:49:07.456196 #6455] DEBUG -- :  (0.2ms) ROLLBACK
836
- D, [2013-09-15T15:49:07.456772 #6455] DEBUG -- : SQL (0.1ms) BEGIN
837
- D, [2013-09-15T15:49:07.457508 #6455] DEBUG -- : Company Load (0.2ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
838
- D, [2013-09-15T15:49:07.458149 #6455] DEBUG -- : Location Load (0.2ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
839
- D, [2013-09-15T15:49:07.458777 #6455] DEBUG -- : CustomLocation Load (0.2ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
840
- D, [2013-09-15T15:49:07.459335 #6455] DEBUG -- : Location Load (0.2ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
841
- D, [2013-09-15T15:49:07.459890 #6455] DEBUG -- : CustomLocation Load (0.2ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
842
- D, [2013-09-15T15:49:07.460481 #6455] DEBUG -- : MockOrganization Load (0.2ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
843
- D, [2013-09-15T15:49:07.461101 #6455] DEBUG -- : MockAddress Load (0.2ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
844
- D, [2013-09-15T15:49:07.462941 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE ((
845
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
846
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
847
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
848
- <= 5)) AND (city = 'Coppell')
849
- D, [2013-09-15T15:49:07.463821 #6455] DEBUG -- :  (0.4ms) SELECT COUNT(*) FROM `locations` WHERE ((
850
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
851
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
852
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
853
- <= 5)) AND (city = 'Coppell')
854
- D, [2013-09-15T15:49:07.464254 #6455] DEBUG -- :  (0.1ms) ROLLBACK
855
- D, [2013-09-15T15:49:07.464801 #6455] DEBUG -- : SQL (0.1ms) BEGIN
856
- D, [2013-09-15T15:49:07.465508 #6455] DEBUG -- : Company Load (0.2ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
857
- D, [2013-09-15T15:49:07.466134 #6455] DEBUG -- : Location Load (0.2ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
858
- D, [2013-09-15T15:49:07.466767 #6455] DEBUG -- : CustomLocation Load (0.2ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
859
- D, [2013-09-15T15:49:07.467315 #6455] DEBUG -- : Location Load (0.2ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
860
- D, [2013-09-15T15:49:07.467831 #6455] DEBUG -- : CustomLocation Load (0.2ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
861
- D, [2013-09-15T15:49:07.468409 #6455] DEBUG -- : MockOrganization Load (0.2ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
862
- D, [2013-09-15T15:49:07.468983 #6455] DEBUG -- : MockAddress Load (0.2ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
863
- D, [2013-09-15T15:49:07.471100 #6455] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE ((
864
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
865
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
866
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
867
- <= 3.97))
868
- D, [2013-09-15T15:49:07.472384 #6455] DEBUG -- :  (0.7ms) SELECT COUNT(*) FROM `locations` WHERE ((
869
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
870
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
871
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
872
- <= 3.97))
873
- D, [2013-09-15T15:49:07.472802 #6455] DEBUG -- :  (0.1ms) ROLLBACK
874
- D, [2013-09-15T15:49:07.473358 #6455] DEBUG -- : SQL (0.1ms) BEGIN
875
- D, [2013-09-15T15:49:07.474692 #6455] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
876
- D, [2013-09-15T15:49:07.475911 #6455] DEBUG -- : Location Load (0.3ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
877
- D, [2013-09-15T15:49:07.478015 #6455] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
878
- D, [2013-09-15T15:49:07.497784 #6455] DEBUG -- : Location Load (18.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
879
- D, [2013-09-15T15:49:07.499290 #6455] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
880
- D, [2013-09-15T15:49:07.500026 #6455] DEBUG -- : MockOrganization Load (0.3ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
881
- D, [2013-09-15T15:49:07.500626 #6455] DEBUG -- : MockAddress Load (0.2ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
882
- D, [2013-09-15T15:49:07.502616 #6455] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE ((
883
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
884
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
885
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
886
- <= 5)) AND (city = 'Coppell')
887
- D, [2013-09-15T15:49:07.503586 #6455] DEBUG -- :  (0.4ms) SELECT COUNT(*) FROM `locations` WHERE ((
888
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
889
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
890
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
891
- <= 5)) AND (city = 'Coppell')
892
- D, [2013-09-15T15:49:07.504156 #6455] DEBUG -- :  (0.3ms) ROLLBACK
893
- D, [2013-09-15T15:49:07.505049 #6455] DEBUG -- : SQL (0.3ms) BEGIN
894
- D, [2013-09-15T15:49:07.506084 #6455] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
895
- D, [2013-09-15T15:49:07.507246 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
896
- D, [2013-09-15T15:49:07.508833 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
897
- D, [2013-09-15T15:49:07.510140 #6455] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
898
- D, [2013-09-15T15:49:07.511407 #6455] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
899
- D, [2013-09-15T15:49:07.512182 #6455] DEBUG -- : MockOrganization Load (0.3ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
900
- D, [2013-09-15T15:49:07.512914 #6455] DEBUG -- : MockAddress Load (0.3ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
901
- D, [2013-09-15T15:49:07.515330 #6455] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE ((
902
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
903
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
904
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
905
- <= 3.97))
906
- D, [2013-09-15T15:49:07.518224 #6455] DEBUG -- :  (0.9ms) SELECT COUNT(*) FROM `locations` WHERE ((
907
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
908
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
909
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
910
- <= 3.97))
911
- D, [2013-09-15T15:49:07.519555 #6455] DEBUG -- :  (0.4ms) ROLLBACK
912
- D, [2013-09-15T15:49:07.521102 #6455] DEBUG -- : SQL (0.3ms) BEGIN
913
- D, [2013-09-15T15:49:07.523418 #6455] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
914
- D, [2013-09-15T15:49:07.525456 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
915
- D, [2013-09-15T15:49:07.527367 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
916
- D, [2013-09-15T15:49:07.529152 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
917
- D, [2013-09-15T15:49:07.530635 #6455] DEBUG -- : CustomLocation Load (0.3ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
918
- D, [2013-09-15T15:49:07.531482 #6455] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
919
- D, [2013-09-15T15:49:07.532952 #6455] DEBUG -- : MockAddress Load (0.3ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
920
- D, [2013-09-15T15:49:07.535449 #6455] DEBUG -- :  (0.4ms) ROLLBACK
921
- D, [2013-09-15T15:49:07.536146 #6455] DEBUG -- : SQL (0.1ms) BEGIN
922
- D, [2013-09-15T15:49:07.537189 #6455] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
923
- D, [2013-09-15T15:49:07.552857 #6455] DEBUG -- : Location Load (15.1ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
924
- D, [2013-09-15T15:49:07.554465 #6455] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
925
- D, [2013-09-15T15:49:07.555344 #6455] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
926
- D, [2013-09-15T15:49:07.556101 #6455] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
927
- D, [2013-09-15T15:49:07.556910 #6455] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
928
- D, [2013-09-15T15:49:07.557786 #6455] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
929
- D, [2013-09-15T15:49:07.559985 #6455] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` WHERE ((
930
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
931
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
932
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*6376.77271)
933
- <= 3.9))
934
- D, [2013-09-15T15:49:07.561220 #6455] DEBUG -- :  (0.7ms) SELECT COUNT(*) FROM `locations` WHERE ((
935
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
936
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
937
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*6376.77271)
938
- <= 3.9))
939
- D, [2013-09-15T15:49:07.561677 #6455] DEBUG -- :  (0.2ms) ROLLBACK
940
- D, [2013-09-15T15:49:07.562248 #6455] DEBUG -- : SQL (0.1ms) BEGIN
941
- D, [2013-09-15T15:49:07.563438 #6455] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
942
- D, [2013-09-15T15:49:07.564674 #6455] DEBUG -- : Location Load (0.3ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
943
- D, [2013-09-15T15:49:07.566608 #6455] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
944
- D, [2013-09-15T15:49:07.567287 #6455] DEBUG -- : Location Load (0.3ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
945
- D, [2013-09-15T15:49:07.567949 #6455] DEBUG -- : CustomLocation Load (0.3ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
946
- D, [2013-09-15T15:49:07.568646 #6455] DEBUG -- : MockOrganization Load (0.3ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
947
- D, [2013-09-15T15:49:07.569250 #6455] DEBUG -- : MockAddress Load (0.2ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
948
- D, [2013-09-15T15:49:07.579889 #6455] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`company_id` = ? ORDER BY
949
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
950
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
951
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
952
- asc [["company_id", 1]]
953
- D, [2013-09-15T15:49:07.581613 #6455] DEBUG -- :  (0.2ms) ROLLBACK
954
- D, [2013-09-15T15:49:07.582059 #6455] DEBUG -- : SQL (0.1ms) BEGIN
955
- D, [2013-09-15T15:49:07.582826 #6455] DEBUG -- : Company Load (0.3ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
956
- D, [2013-09-15T15:49:07.583419 #6455] DEBUG -- : Location Load (0.2ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
957
- D, [2013-09-15T15:49:07.584005 #6455] DEBUG -- : CustomLocation Load (0.2ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
958
- D, [2013-09-15T15:49:07.584556 #6455] DEBUG -- : Location Load (0.2ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
959
- D, [2013-09-15T15:49:07.585080 #6455] DEBUG -- : CustomLocation Load (0.2ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
960
- D, [2013-09-15T15:49:07.601881 #6455] DEBUG -- : MockOrganization Load (16.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
961
- D, [2013-09-15T15:49:07.604200 #6455] DEBUG -- : MockAddress Load (1.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
962
- D, [2013-09-15T15:49:07.612743 #6455] DEBUG -- : Location Load (1.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`company_id` = ? AND ((
963
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
964
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
965
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
966
- > 3.95)) [["company_id", 1]]
967
- D, [2013-09-15T15:49:07.615684 #6455] DEBUG -- :  (1.4ms) SELECT COUNT(*) FROM `locations` WHERE `locations`.`company_id` = ? AND ((
968
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
969
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
970
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
971
- > 3.95)) [["company_id", 1]]
972
- D, [2013-09-15T15:49:07.616806 #6455] DEBUG -- :  (0.3ms) ROLLBACK
973
- D, [2013-09-15T15:49:07.618392 #6455] DEBUG -- : SQL (0.3ms) BEGIN
974
- D, [2013-09-15T15:49:07.620531 #6455] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
975
- D, [2013-09-15T15:49:07.622440 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
976
- D, [2013-09-15T15:49:07.623542 #6455] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
977
- D, [2013-09-15T15:49:07.625026 #6455] DEBUG -- : Location Load (0.3ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
978
- D, [2013-09-15T15:49:07.625997 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
979
- D, [2013-09-15T15:49:07.627147 #6455] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
980
- D, [2013-09-15T15:49:07.629156 #6455] DEBUG -- : MockAddress Load (0.5ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
981
- D, [2013-09-15T15:49:07.636993 #6455] DEBUG -- : Location Load (1.2ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`company_id` = ? ORDER BY
982
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
983
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
984
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
985
- asc [["company_id", 1]]
986
- D, [2013-09-15T15:49:07.638679 #6455] DEBUG -- :  (0.3ms) ROLLBACK
987
- D, [2013-09-15T15:49:07.639189 #6455] DEBUG -- : SQL (0.1ms) BEGIN
988
- D, [2013-09-15T15:49:07.639896 #6455] DEBUG -- : Company Load (0.2ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
989
- D, [2013-09-15T15:49:07.640494 #6455] DEBUG -- : Location Load (0.2ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
990
- D, [2013-09-15T15:49:07.641098 #6455] DEBUG -- : CustomLocation Load (0.2ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
991
- D, [2013-09-15T15:49:07.641666 #6455] DEBUG -- : Location Load (0.2ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
992
- D, [2013-09-15T15:49:07.642211 #6455] DEBUG -- : CustomLocation Load (0.2ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
993
- D, [2013-09-15T15:49:07.642809 #6455] DEBUG -- : MockOrganization Load (0.2ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
994
- D, [2013-09-15T15:49:07.643423 #6455] DEBUG -- : MockAddress Load (0.2ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
995
- D, [2013-09-15T15:49:07.662195 #6455] DEBUG -- : Location Load (16.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`company_id` = ? ORDER BY
996
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
997
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
998
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
999
- asc LIMIT 1 [["company_id", 1]]
1000
- D, [2013-09-15T15:49:07.662904 #6455] DEBUG -- :  (0.2ms) ROLLBACK
1001
- D, [2013-09-15T15:49:07.663381 #6455] DEBUG -- : SQL (0.1ms) BEGIN
1002
- D, [2013-09-15T15:49:07.664188 #6455] DEBUG -- : Company Load (0.3ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
1003
- D, [2013-09-15T15:49:07.664792 #6455] DEBUG -- : Location Load (0.2ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
1004
- D, [2013-09-15T15:49:07.665383 #6455] DEBUG -- : CustomLocation Load (0.2ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
1005
- D, [2013-09-15T15:49:07.665981 #6455] DEBUG -- : Location Load (0.2ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
1006
- D, [2013-09-15T15:49:07.666535 #6455] DEBUG -- : CustomLocation Load (0.2ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
1007
- D, [2013-09-15T15:49:07.667339 #6455] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
1008
- D, [2013-09-15T15:49:07.668200 #6455] DEBUG -- : MockAddress Load (0.5ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
1009
- D, [2013-09-15T15:49:07.671886 #6455] DEBUG -- : Location Load (1.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`company_id` = ? AND ((
1010
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
1011
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
1012
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
1013
- <= 5)) AND (city = 'Coppell') [["company_id", 1]]
1014
- D, [2013-09-15T15:49:07.673793 #6455] DEBUG -- :  (1.3ms) SELECT COUNT(*) FROM `locations` WHERE `locations`.`company_id` = ? AND ((
1015
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
1016
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
1017
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
1018
- <= 5)) AND (city = 'Coppell') [["company_id", 1]]
1019
- D, [2013-09-15T15:49:07.674363 #6455] DEBUG -- :  (0.3ms) ROLLBACK
1020
- D, [2013-09-15T15:49:07.675235 #6455] DEBUG -- : SQL (0.3ms) BEGIN
1021
- D, [2013-09-15T15:49:07.676235 #6455] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
1022
- D, [2013-09-15T15:49:07.677162 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
1023
- D, [2013-09-15T15:49:07.678109 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
1024
- D, [2013-09-15T15:49:07.679034 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
1025
- D, [2013-09-15T15:49:07.679920 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
1026
- D, [2013-09-15T15:49:07.680830 #6455] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
1027
- D, [2013-09-15T15:49:07.681806 #6455] DEBUG -- : MockAddress Load (0.5ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
1028
- D, [2013-09-15T15:49:07.688381 #6455] DEBUG -- : Location Load (1.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`company_id` = ? AND ((
1029
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
1030
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
1031
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
1032
- <= 3.97)) [["company_id", 1]]
1033
- D, [2013-09-15T15:49:07.691526 #6455] DEBUG -- :  (1.5ms) SELECT COUNT(*) FROM `locations` WHERE `locations`.`company_id` = ? AND ((
1034
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
1035
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
1036
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
1037
- <= 3.97)) [["company_id", 1]]
1038
- D, [2013-09-15T15:49:07.692691 #6455] DEBUG -- :  (0.3ms) ROLLBACK
1039
- D, [2013-09-15T15:49:07.694064 #6455] DEBUG -- : SQL (0.2ms) BEGIN
1040
- D, [2013-09-15T15:49:07.719656 #6455] DEBUG -- : Company Load (24.2ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = ? LIMIT 1 [["id", 1]]
1041
- D, [2013-09-15T15:49:07.721126 #6455] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 1]]
1042
- D, [2013-09-15T15:49:07.722085 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 1]]
1043
- D, [2013-09-15T15:49:07.723007 #6455] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = ? LIMIT 1 [["id", 5]]
1044
- D, [2013-09-15T15:49:07.723932 #6455] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = ? LIMIT 1 [["id", 5]]
1045
- D, [2013-09-15T15:49:07.724840 #6455] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = ? LIMIT 1 [["id", 1064917858]]
1046
- D, [2013-09-15T15:49:07.725716 #6455] DEBUG -- : MockAddress Load (0.5ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = ? LIMIT 1 [["id", 206296981]]
1047
- D, [2013-09-15T15:49:07.728072 #6455] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`company_id` = ? AND ((
1048
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
1049
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
1050
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
1051
- <= 3.97)) [["company_id", 1]]
1052
- D, [2013-09-15T15:49:07.729176 #6455] DEBUG -- :  (0.6ms) SELECT COUNT(*) FROM `locations` WHERE `locations`.`company_id` = ? AND ((
1053
- (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
1054
- COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
1055
- SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
1056
- <= 3.97)) [["company_id", 1]]
1057
- D, [2013-09-15T15:49:07.729632 #6455] DEBUG -- :  (0.2ms) ROLLBACK