geokit-rails 2.0.0.rc1 → 2.0.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.

@@ -0,0 +1,2758 @@
1
+ # Logfile created on 2013-09-15 15:49:51 +0930 by logger.rb/31641
2
+ D, [2013-09-15T15:49:51.725985 #6464] DEBUG -- :  (49.7ms) CREATE TABLE `companies` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB
3
+ D, [2013-09-15T15:49:51.780215 #6464] DEBUG -- :  (52.2ms) 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:51.845594 #6464] DEBUG -- :  (62.8ms) 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:51.902113 #6464] DEBUG -- :  (53.6ms) 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:51.962026 #6464] DEBUG -- :  (56.9ms) CREATE TABLE `mock_organizations` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB
7
+ D, [2013-09-15T15:49:52.037039 #6464] DEBUG -- :  (71.9ms) 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:52.114965 #6464] DEBUG -- :  (74.9ms) 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:52.184950 #6464] DEBUG -- :  (67.1ms) 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:52.250731 #6464] DEBUG -- :  (62.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:52.327315 #6464] DEBUG -- :  (70.6ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
12
+ D, [2013-09-15T15:49:52.422880 #6464] DEBUG -- :  (93.5ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`) 
13
+ D, [2013-09-15T15:49:52.424440 #6464] DEBUG -- :  (0.7ms) SELECT version FROM `schema_migrations`
14
+ D, [2013-09-15T15:49:52.441287 #6464] DEBUG -- :  (16.3ms) INSERT INTO `schema_migrations` (version) VALUES ('0')
15
+ D, [2013-09-15T15:49:52.969082 #6464] DEBUG -- :  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
16
+ D, [2013-09-15T15:49:52.970887 #6464] DEBUG -- :  (0.4ms) SET FOREIGN_KEY_CHECKS = 0
17
+ D, [2013-09-15T15:49:52.990522 #6464] DEBUG -- :  (0.3ms) BEGIN
18
+ D, [2013-09-15T15:49:52.996585 #6464] DEBUG -- : Fixture Delete (0.4ms) DELETE FROM `mock_families`
19
+ D, [2013-09-15T15:49:52.997812 #6464] DEBUG -- : Fixture Insert (0.4ms) INSERT INTO `mock_families` (`id`, `mock_house_id`) VALUES (964944192, 185830233)
20
+ D, [2013-09-15T15:49:53.002768 #6464] DEBUG -- : Fixture Delete (0.2ms) DELETE FROM `companies`
21
+ D, [2013-09-15T15:49:53.003389 #6464] DEBUG -- : Fixture Insert (0.4ms) INSERT INTO `companies` (`id`, `name`) VALUES (1, 'Starbucks')
22
+ D, [2013-09-15T15:49:53.004070 #6464] DEBUG -- : Fixture Insert (0.3ms) INSERT INTO `companies` (`id`, `name`) VALUES (2, 'Barnes & Noble')
23
+ D, [2013-09-15T15:49:53.005556 #6464] DEBUG -- : Fixture Delete (0.5ms) DELETE FROM `stores`
24
+ D, [2013-09-15T15:49:53.008552 #6464] DEBUG -- : Fixture Delete (0.1ms) DELETE FROM `mock_addresses`
25
+ D, [2013-09-15T15:49:53.009049 #6464] DEBUG -- : Fixture Insert (0.3ms) 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:53.009586 #6464] DEBUG -- : Fixture Insert (0.3ms) 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:53.015847 #6464] DEBUG -- : Fixture Delete (0.4ms) DELETE FROM `mock_people`
28
+ D, [2013-09-15T15:49:53.016624 #6464] DEBUG -- : Fixture Insert (0.4ms) INSERT INTO `mock_people` (`id`, `mock_family_id`) VALUES (254095803, 964944192)
29
+ D, [2013-09-15T15:49:53.017115 #6464] DEBUG -- : Fixture Insert (0.3ms) INSERT INTO `mock_people` (`id`, `mock_family_id`) VALUES (450002714, 964944192)
30
+ D, [2013-09-15T15:49:53.022078 #6464] DEBUG -- : Fixture Delete (0.3ms) DELETE FROM `custom_locations`
31
+ D, [2013-09-15T15:49:53.023062 #6464] 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:53.024396 #6464] DEBUG -- : Fixture Insert (0.8ms) 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:53.025619 #6464] DEBUG -- : Fixture Insert (0.6ms) 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:53.026844 #6464] 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:53.028178 #6464] DEBUG -- : Fixture Insert (0.8ms) 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:53.029473 #6464] DEBUG -- : Fixture Insert (0.7ms) 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:53.037105 #6464] DEBUG -- : Fixture Delete (0.5ms) DELETE FROM `mock_houses`
38
+ D, [2013-09-15T15:49:53.038294 #6464] 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:53.039560 #6464] DEBUG -- : Fixture Insert (0.7ms) INSERT INTO `mock_houses` (`address`, `lat`, `lng`, `id`) VALUES ('5904 N Macarthur Blvd', 32.895155, -96.958444, 185830233)
40
+ D, [2013-09-15T15:49:53.047997 #6464] DEBUG -- : Fixture Delete (0.5ms) DELETE FROM `locations`
41
+ D, [2013-09-15T15:49:53.049384 #6464] DEBUG -- : Fixture Insert (0.7ms) 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:53.050828 #6464] DEBUG -- : Fixture Insert (0.7ms) 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:53.052109 #6464] 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:53.053439 #6464] DEBUG -- : Fixture Insert (0.7ms) 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:53.054823 #6464] DEBUG -- : Fixture Insert (0.8ms) 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:53.056164 #6464] DEBUG -- : Fixture Insert (0.7ms) 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:53.063422 #6464] DEBUG -- : Fixture Delete (0.5ms) DELETE FROM `mock_organizations`
48
+ D, [2013-09-15T15:49:53.064470 #6464] DEBUG -- : Fixture Insert (0.5ms) INSERT INTO `mock_organizations` (`name`, `id`) VALUES ('Starbucks', 378604642)
49
+ D, [2013-09-15T15:49:53.065436 #6464] DEBUG -- : Fixture Insert (0.5ms) INSERT INTO `mock_organizations` (`name`, `id`) VALUES ('Barnes & Noble', 1064917858)
50
+ D, [2013-09-15T15:49:53.071924 #6464] DEBUG -- :  (5.9ms) COMMIT
51
+ D, [2013-09-15T15:49:53.073304 #6464] DEBUG -- :  (0.6ms) SET FOREIGN_KEY_CHECKS = 1
52
+ D, [2013-09-15T15:49:53.074369 #6464] DEBUG -- :  (0.3ms) BEGIN
53
+ D, [2013-09-15T15:49:53.078963 #6464] DEBUG -- : Company Load (0.9ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
54
+ D, [2013-09-15T15:49:53.093259 #6464] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
55
+ D, [2013-09-15T15:49:53.106017 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
56
+ D, [2013-09-15T15:49:53.118488 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
57
+ D, [2013-09-15T15:49:53.119518 #6464] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
58
+ D, [2013-09-15T15:49:53.120449 #6464] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
59
+ D, [2013-09-15T15:49:53.124683 #6464] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
60
+ D, [2013-09-15T15:49:53.161848 #6464] DEBUG -- : Location Load (1.2ms) 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:53.163381 #6464] DEBUG -- :  (0.9ms) 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:53.164118 #6464] DEBUG -- :  (0.3ms) ROLLBACK
71
+ D, [2013-09-15T15:49:53.164999 #6464] DEBUG -- :  (0.2ms) BEGIN
72
+ D, [2013-09-15T15:49:53.166114 #6464] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
73
+ D, [2013-09-15T15:49:53.167087 #6464] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
74
+ D, [2013-09-15T15:49:53.168044 #6464] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
75
+ D, [2013-09-15T15:49:53.168926 #6464] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
76
+ D, [2013-09-15T15:49:53.169791 #6464] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
77
+ D, [2013-09-15T15:49:53.170736 #6464] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
78
+ D, [2013-09-15T15:49:53.171725 #6464] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
79
+ D, [2013-09-15T15:49:53.192823 #6464] DEBUG -- :  (0.3ms) SAVEPOINT active_record_1
80
+ D, [2013-09-15T15:49:53.202063 #6464] DEBUG -- : SQL (5.3ms) INSERT INTO `stores` (`address`, `lat`, `lng`) VALUES ('Irving, TX', 32.918593, -96.958444)
81
+ D, [2013-09-15T15:49:53.203645 #6464] DEBUG -- :  (0.5ms) RELEASE SAVEPOINT active_record_1
82
+ D, [2013-09-15T15:49:53.209405 #6464] DEBUG -- :  (4.7ms) ROLLBACK
83
+ D, [2013-09-15T15:49:53.211151 #6464] DEBUG -- :  (0.4ms) BEGIN
84
+ D, [2013-09-15T15:49:53.213858 #6464] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
85
+ D, [2013-09-15T15:49:53.216289 #6464] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
86
+ D, [2013-09-15T15:49:53.218718 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
87
+ D, [2013-09-15T15:49:53.220821 #6464] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
88
+ D, [2013-09-15T15:49:53.223143 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
89
+ D, [2013-09-15T15:49:53.224510 #6464] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
90
+ D, [2013-09-15T15:49:53.226763 #6464] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
91
+ D, [2013-09-15T15:49:53.229921 #6464] DEBUG -- :  (0.4ms) SAVEPOINT active_record_1
92
+ D, [2013-09-15T15:49:53.231420 #6464] DEBUG -- :  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1
93
+ D, [2013-09-15T15:49:53.232738 #6464] DEBUG -- :  (0.4ms) ROLLBACK
94
+ D, [2013-09-15T15:49:53.234176 #6464] DEBUG -- :  (0.2ms) BEGIN
95
+ D, [2013-09-15T15:49:53.236709 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
96
+ D, [2013-09-15T15:49:53.239139 #6464] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
97
+ D, [2013-09-15T15:49:53.241485 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
98
+ D, [2013-09-15T15:49:53.243751 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
99
+ D, [2013-09-15T15:49:53.245960 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
100
+ D, [2013-09-15T15:49:53.248263 #6464] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
101
+ D, [2013-09-15T15:49:53.250631 #6464] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
102
+ D, [2013-09-15T15:49:53.256542 #6464] DEBUG -- :  (0.5ms) ROLLBACK
103
+ D, [2013-09-15T15:49:53.258634 #6464] DEBUG -- :  (0.5ms) BEGIN
104
+ D, [2013-09-15T15:49:53.261142 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
105
+ D, [2013-09-15T15:49:53.263088 #6464] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
106
+ D, [2013-09-15T15:49:53.264025 #6464] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
107
+ D, [2013-09-15T15:49:53.264913 #6464] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
108
+ D, [2013-09-15T15:49:53.265758 #6464] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
109
+ D, [2013-09-15T15:49:53.266698 #6464] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
110
+ D, [2013-09-15T15:49:53.267697 #6464] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
111
+ D, [2013-09-15T15:49:53.268886 #6464] DEBUG -- :  (0.3ms) ROLLBACK
112
+ D, [2013-09-15T15:49:53.269707 #6464] DEBUG -- :  (0.2ms) BEGIN
113
+ D, [2013-09-15T15:49:53.270782 #6464] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
114
+ D, [2013-09-15T15:49:53.271745 #6464] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
115
+ D, [2013-09-15T15:49:53.272665 #6464] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
116
+ D, [2013-09-15T15:49:53.273566 #6464] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
117
+ D, [2013-09-15T15:49:53.274472 #6464] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
118
+ D, [2013-09-15T15:49:53.275564 #6464] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
119
+ D, [2013-09-15T15:49:53.276697 #6464] DEBUG -- : MockAddress Load (0.5ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
120
+ D, [2013-09-15T15:49:53.279836 #6464] DEBUG -- : Location Load (1.2ms) 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:53.282673 #6464] DEBUG -- :  (0.3ms) ROLLBACK
126
+ D, [2013-09-15T15:49:53.283144 #6464] DEBUG -- :  (0.1ms) BEGIN
127
+ D, [2013-09-15T15:49:53.284107 #6464] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
128
+ D, [2013-09-15T15:49:53.285014 #6464] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
129
+ D, [2013-09-15T15:49:53.286281 #6464] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
130
+ D, [2013-09-15T15:49:53.287675 #6464] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
131
+ D, [2013-09-15T15:49:53.289071 #6464] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
132
+ D, [2013-09-15T15:49:53.290516 #6464] DEBUG -- : MockOrganization Load (0.6ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
133
+ D, [2013-09-15T15:49:53.291955 #6464] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
134
+ D, [2013-09-15T15:49:53.294376 #6464] DEBUG -- :  (0.4ms) ROLLBACK
135
+ D, [2013-09-15T15:49:53.295698 #6464] DEBUG -- :  (0.3ms) BEGIN
136
+ D, [2013-09-15T15:49:53.297416 #6464] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
137
+ D, [2013-09-15T15:49:53.298966 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
138
+ D, [2013-09-15T15:49:53.300503 #6464] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
139
+ D, [2013-09-15T15:49:53.301920 #6464] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
140
+ D, [2013-09-15T15:49:53.303472 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
141
+ D, [2013-09-15T15:49:53.305164 #6464] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
142
+ D, [2013-09-15T15:49:53.306864 #6464] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
143
+ D, [2013-09-15T15:49:53.309715 #6464] DEBUG -- :  (0.4ms) ROLLBACK
144
+ D, [2013-09-15T15:49:53.310967 #6464] DEBUG -- :  (0.3ms) BEGIN
145
+ D, [2013-09-15T15:49:53.312945 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
146
+ D, [2013-09-15T15:49:53.315182 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
147
+ D, [2013-09-15T15:49:53.317489 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
148
+ D, [2013-09-15T15:49:53.319640 #6464] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
149
+ D, [2013-09-15T15:49:53.321681 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
150
+ D, [2013-09-15T15:49:53.324029 #6464] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
151
+ D, [2013-09-15T15:49:53.326256 #6464] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
152
+ D, [2013-09-15T15:49:53.331967 #6464] DEBUG -- : Location Load (1.6ms) 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:53.334779 #6464] DEBUG -- :  (1.4ms) 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:53.335891 #6464] DEBUG -- :  (0.3ms) ROLLBACK
163
+ D, [2013-09-15T15:49:53.337387 #6464] DEBUG -- :  (0.4ms) BEGIN
164
+ D, [2013-09-15T15:49:53.339471 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
165
+ D, [2013-09-15T15:49:53.341535 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
166
+ D, [2013-09-15T15:49:53.343672 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
167
+ D, [2013-09-15T15:49:53.345678 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
168
+ D, [2013-09-15T15:49:53.347749 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
169
+ D, [2013-09-15T15:49:53.349761 #6464] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
170
+ D, [2013-09-15T15:49:53.351746 #6464] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
171
+ D, [2013-09-15T15:49:53.356110 #6464] DEBUG -- : Location Load (1.4ms) 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:53.358574 #6464] DEBUG -- :  (1.3ms) 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:53.359530 #6464] DEBUG -- :  (0.3ms) ROLLBACK
182
+ D, [2013-09-15T15:49:53.360742 #6464] DEBUG -- :  (0.2ms) BEGIN
183
+ D, [2013-09-15T15:49:53.362677 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
184
+ D, [2013-09-15T15:49:53.364597 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
185
+ D, [2013-09-15T15:49:53.366698 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
186
+ D, [2013-09-15T15:49:53.368547 #6464] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
187
+ D, [2013-09-15T15:49:53.370576 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
188
+ D, [2013-09-15T15:49:53.372726 #6464] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
189
+ D, [2013-09-15T15:49:53.374822 #6464] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
190
+ D, [2013-09-15T15:49:53.379306 #6464] DEBUG -- : CustomLocation Load (1.3ms) 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:53.381686 #6464] DEBUG -- :  (1.1ms) 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:53.382863 #6464] DEBUG -- :  (0.5ms) ROLLBACK
199
+ D, [2013-09-15T15:49:53.384393 #6464] DEBUG -- :  (0.4ms) BEGIN
200
+ D, [2013-09-15T15:49:53.386517 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
201
+ D, [2013-09-15T15:49:53.388515 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
202
+ D, [2013-09-15T15:49:53.390528 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
203
+ D, [2013-09-15T15:49:53.392401 #6464] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
204
+ D, [2013-09-15T15:49:53.394568 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
205
+ D, [2013-09-15T15:49:53.396725 #6464] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
206
+ D, [2013-09-15T15:49:53.398826 #6464] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
207
+ D, [2013-09-15T15:49:53.403035 #6464] DEBUG -- : CustomLocation Load (1.2ms) 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:53.405657 #6464] DEBUG -- :  (1.1ms) 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:53.406849 #6464] DEBUG -- :  (0.5ms) ROLLBACK
216
+ D, [2013-09-15T15:49:53.408307 #6464] DEBUG -- :  (0.4ms) BEGIN
217
+ D, [2013-09-15T15:49:53.410632 #6464] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
218
+ D, [2013-09-15T15:49:53.412838 #6464] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
219
+ D, [2013-09-15T15:49:53.415079 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
220
+ D, [2013-09-15T15:49:53.417152 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
221
+ D, [2013-09-15T15:49:53.419321 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
222
+ D, [2013-09-15T15:49:53.421495 #6464] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
223
+ D, [2013-09-15T15:49:53.423599 #6464] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
224
+ D, [2013-09-15T15:49:53.429068 #6464] DEBUG -- : Location Load (1.5ms) 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:53.431744 #6464] DEBUG -- :  (1.4ms) 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:53.432875 #6464] DEBUG -- :  (0.4ms) ROLLBACK
235
+ D, [2013-09-15T15:49:53.434296 #6464] DEBUG -- :  (0.4ms) BEGIN
236
+ D, [2013-09-15T15:49:53.436411 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
237
+ D, [2013-09-15T15:49:53.438380 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
238
+ D, [2013-09-15T15:49:53.440611 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
239
+ D, [2013-09-15T15:49:53.442685 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
240
+ D, [2013-09-15T15:49:53.444780 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
241
+ D, [2013-09-15T15:49:53.446892 #6464] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
242
+ D, [2013-09-15T15:49:53.449039 #6464] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
243
+ D, [2013-09-15T15:49:53.454789 #6464] DEBUG -- : Location Load (1.7ms) 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:53.456859 #6464] DEBUG -- :  (0.4ms) ROLLBACK
249
+ D, [2013-09-15T15:49:53.458443 #6464] DEBUG -- :  (0.3ms) BEGIN
250
+ D, [2013-09-15T15:49:53.460867 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
251
+ D, [2013-09-15T15:49:53.463233 #6464] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
252
+ D, [2013-09-15T15:49:53.465387 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
253
+ D, [2013-09-15T15:49:53.467494 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
254
+ D, [2013-09-15T15:49:53.469481 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
255
+ D, [2013-09-15T15:49:53.471719 #6464] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
256
+ D, [2013-09-15T15:49:53.473945 #6464] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
257
+ D, [2013-09-15T15:49:53.478851 #6464] DEBUG -- : Location Load (1.6ms) 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:53.480731 #6464] DEBUG -- :  (0.4ms) ROLLBACK
263
+ D, [2013-09-15T15:49:53.482279 #6464] DEBUG -- :  (0.4ms) BEGIN
264
+ D, [2013-09-15T15:49:53.484416 #6464] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
265
+ D, [2013-09-15T15:49:53.486506 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
266
+ D, [2013-09-15T15:49:53.488677 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
267
+ D, [2013-09-15T15:49:53.490810 #6464] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
268
+ D, [2013-09-15T15:49:53.492969 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
269
+ D, [2013-09-15T15:49:53.495159 #6464] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
270
+ D, [2013-09-15T15:49:53.497258 #6464] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
271
+ D, [2013-09-15T15:49:53.500700 #6464] DEBUG -- : CustomLocation Load (1.2ms) 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:53.502874 #6464] DEBUG -- :  (0.5ms) ROLLBACK
276
+ D, [2013-09-15T15:49:53.504595 #6464] DEBUG -- :  (0.4ms) BEGIN
277
+ D, [2013-09-15T15:49:53.507238 #6464] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
278
+ D, [2013-09-15T15:49:53.509546 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
279
+ D, [2013-09-15T15:49:53.511990 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
280
+ D, [2013-09-15T15:49:53.514169 #6464] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
281
+ D, [2013-09-15T15:49:53.516433 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
282
+ D, [2013-09-15T15:49:53.518730 #6464] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
283
+ D, [2013-09-15T15:49:53.521035 #6464] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
284
+ D, [2013-09-15T15:49:53.525603 #6464] DEBUG -- : CustomLocation Load (1.2ms) 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:53.527412 #6464] DEBUG -- :  (0.3ms) ROLLBACK
289
+ D, [2013-09-15T15:49:53.528661 #6464] DEBUG -- :  (0.3ms) BEGIN
290
+ D, [2013-09-15T15:49:53.530820 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
291
+ D, [2013-09-15T15:49:53.532956 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
292
+ D, [2013-09-15T15:49:53.535165 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
293
+ D, [2013-09-15T15:49:53.537250 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
294
+ D, [2013-09-15T15:49:53.539462 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
295
+ D, [2013-09-15T15:49:53.541619 #6464] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
296
+ D, [2013-09-15T15:49:53.543816 #6464] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
297
+ D, [2013-09-15T15:49:53.549611 #6464] DEBUG -- : Location Load (1.6ms) 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:53.551103 #6464] DEBUG -- :  (0.4ms) ROLLBACK
303
+ D, [2013-09-15T15:49:53.552709 #6464] DEBUG -- :  (0.4ms) BEGIN
304
+ D, [2013-09-15T15:49:53.554817 #6464] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
305
+ D, [2013-09-15T15:49:53.556807 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
306
+ D, [2013-09-15T15:49:53.558866 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
307
+ D, [2013-09-15T15:49:53.560896 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
308
+ D, [2013-09-15T15:49:53.563172 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
309
+ D, [2013-09-15T15:49:53.565367 #6464] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
310
+ D, [2013-09-15T15:49:53.567626 #6464] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
311
+ D, [2013-09-15T15:49:53.572459 #6464] DEBUG -- : Location Load (1.6ms) 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:53.573693 #6464] DEBUG -- :  (0.3ms) ROLLBACK
317
+ D, [2013-09-15T15:49:53.575080 #6464] DEBUG -- :  (0.3ms) BEGIN
318
+ D, [2013-09-15T15:49:53.576980 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
319
+ D, [2013-09-15T15:49:53.578990 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
320
+ D, [2013-09-15T15:49:53.581139 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
321
+ D, [2013-09-15T15:49:53.583179 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
322
+ D, [2013-09-15T15:49:53.585325 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
323
+ D, [2013-09-15T15:49:53.587461 #6464] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
324
+ D, [2013-09-15T15:49:53.589619 #6464] DEBUG -- : MockAddress Load (0.9ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
325
+ D, [2013-09-15T15:49:53.593307 #6464] DEBUG -- : CustomLocation Load (1.2ms) 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:53.594653 #6464] DEBUG -- :  (0.4ms) ROLLBACK
330
+ D, [2013-09-15T15:49:53.596215 #6464] DEBUG -- :  (0.4ms) BEGIN
331
+ D, [2013-09-15T15:49:53.598327 #6464] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
332
+ D, [2013-09-15T15:49:53.600520 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
333
+ D, [2013-09-15T15:49:53.602792 #6464] DEBUG -- : CustomLocation Load (0.9ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
334
+ D, [2013-09-15T15:49:53.604910 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
335
+ D, [2013-09-15T15:49:53.607062 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
336
+ D, [2013-09-15T15:49:53.609229 #6464] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
337
+ D, [2013-09-15T15:49:53.611408 #6464] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
338
+ D, [2013-09-15T15:49:53.615860 #6464] DEBUG -- : CustomLocation Load (1.1ms) 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:53.617235 #6464] DEBUG -- :  (0.4ms) ROLLBACK
343
+ D, [2013-09-15T15:49:53.618491 #6464] DEBUG -- :  (0.3ms) BEGIN
344
+ D, [2013-09-15T15:49:53.620537 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
345
+ D, [2013-09-15T15:49:53.622834 #6464] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
346
+ D, [2013-09-15T15:49:53.624975 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
347
+ D, [2013-09-15T15:49:53.627133 #6464] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
348
+ D, [2013-09-15T15:49:53.629279 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
349
+ D, [2013-09-15T15:49:53.631523 #6464] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
350
+ D, [2013-09-15T15:49:53.633728 #6464] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
351
+ D, [2013-09-15T15:49:53.640219 #6464] DEBUG -- : Location Load (2.3ms) 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:53.644082 #6464] DEBUG -- :  (2.1ms) 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:53.645222 #6464] DEBUG -- :  (0.4ms) ROLLBACK
370
+ D, [2013-09-15T15:49:53.646777 #6464] DEBUG -- :  (0.4ms) BEGIN
371
+ D, [2013-09-15T15:49:53.648775 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
372
+ D, [2013-09-15T15:49:53.650862 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
373
+ D, [2013-09-15T15:49:53.653063 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
374
+ D, [2013-09-15T15:49:53.655175 #6464] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
375
+ D, [2013-09-15T15:49:53.657334 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
376
+ D, [2013-09-15T15:49:53.659566 #6464] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
377
+ D, [2013-09-15T15:49:53.661957 #6464] DEBUG -- : MockAddress Load (0.9ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
378
+ D, [2013-09-15T15:49:53.668694 #6464] DEBUG -- : Location Load (2.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:53.672458 #6464] DEBUG -- :  (2.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:53.673579 #6464] DEBUG -- :  (0.4ms) ROLLBACK
397
+ D, [2013-09-15T15:49:53.675209 #6464] DEBUG -- :  (0.4ms) BEGIN
398
+ D, [2013-09-15T15:49:53.677349 #6464] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
399
+ D, [2013-09-15T15:49:53.679468 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
400
+ D, [2013-09-15T15:49:53.681620 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
401
+ D, [2013-09-15T15:49:53.683938 #6464] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
402
+ D, [2013-09-15T15:49:53.686235 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
403
+ D, [2013-09-15T15:49:53.688412 #6464] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
404
+ D, [2013-09-15T15:49:53.690443 #6464] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
405
+ D, [2013-09-15T15:49:53.697282 #6464] DEBUG -- : Location Load (2.2ms) 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:53.700730 #6464] DEBUG -- :  (2.0ms) 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:53.701916 #6464] DEBUG -- :  (0.4ms) ROLLBACK
424
+ D, [2013-09-15T15:49:53.703300 #6464] DEBUG -- :  (0.3ms) BEGIN
425
+ D, [2013-09-15T15:49:53.705409 #6464] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
426
+ D, [2013-09-15T15:49:53.707525 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
427
+ D, [2013-09-15T15:49:53.709632 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
428
+ D, [2013-09-15T15:49:53.711807 #6464] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
429
+ D, [2013-09-15T15:49:53.714052 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
430
+ D, [2013-09-15T15:49:53.716431 #6464] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
431
+ D, [2013-09-15T15:49:53.718607 #6464] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
432
+ D, [2013-09-15T15:49:53.752991 #6464] DEBUG -- : Location Load (1.4ms) 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:53.754830 #6464] DEBUG -- :  (1.2ms) 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:53.755374 #6464] DEBUG -- :  (0.3ms) ROLLBACK
451
+ D, [2013-09-15T15:49:53.756329 #6464] DEBUG -- :  (0.3ms) BEGIN
452
+ D, [2013-09-15T15:49:53.758742 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
453
+ D, [2013-09-15T15:49:53.760879 #6464] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
454
+ D, [2013-09-15T15:49:53.763234 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
455
+ D, [2013-09-15T15:49:53.765508 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
456
+ D, [2013-09-15T15:49:53.766823 #6464] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
457
+ D, [2013-09-15T15:49:53.768867 #6464] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
458
+ D, [2013-09-15T15:49:53.770737 #6464] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
459
+ D, [2013-09-15T15:49:53.775556 #6464] DEBUG -- : Location Load (1.5ms) 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:53.778619 #6464] DEBUG -- :  (1.4ms) 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:53.779771 #6464] DEBUG -- :  (0.5ms) ROLLBACK
470
+ D, [2013-09-15T15:49:53.781279 #6464] DEBUG -- :  (0.4ms) BEGIN
471
+ D, [2013-09-15T15:49:53.783346 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
472
+ D, [2013-09-15T15:49:53.785351 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
473
+ D, [2013-09-15T15:49:53.787631 #6464] DEBUG -- : CustomLocation Load (0.9ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
474
+ D, [2013-09-15T15:49:53.789755 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
475
+ D, [2013-09-15T15:49:53.791852 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
476
+ D, [2013-09-15T15:49:53.793856 #6464] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
477
+ D, [2013-09-15T15:49:53.796070 #6464] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
478
+ D, [2013-09-15T15:49:53.801921 #6464] DEBUG -- : Location Load (1.5ms) 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:53.804828 #6464] DEBUG -- :  (1.4ms) 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:53.805952 #6464] DEBUG -- :  (0.4ms) ROLLBACK
489
+ D, [2013-09-15T15:49:53.807630 #6464] DEBUG -- :  (0.3ms) BEGIN
490
+ D, [2013-09-15T15:49:53.809715 #6464] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
491
+ D, [2013-09-15T15:49:53.811842 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
492
+ D, [2013-09-15T15:49:53.813983 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
493
+ D, [2013-09-15T15:49:53.816136 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
494
+ D, [2013-09-15T15:49:53.818338 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
495
+ D, [2013-09-15T15:49:53.820639 #6464] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
496
+ D, [2013-09-15T15:49:53.822817 #6464] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
497
+ D, [2013-09-15T15:49:53.827271 #6464] 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:53.829736 #6464] DEBUG -- :  (1.1ms) 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:53.830842 #6464] DEBUG -- :  (0.4ms) ROLLBACK
506
+ D, [2013-09-15T15:49:53.832386 #6464] DEBUG -- :  (0.4ms) BEGIN
507
+ D, [2013-09-15T15:49:53.834541 #6464] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
508
+ D, [2013-09-15T15:49:53.836665 #6464] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
509
+ D, [2013-09-15T15:49:53.838858 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
510
+ D, [2013-09-15T15:49:53.840960 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
511
+ D, [2013-09-15T15:49:53.843117 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
512
+ D, [2013-09-15T15:49:53.845245 #6464] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
513
+ D, [2013-09-15T15:49:53.847333 #6464] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
514
+ D, [2013-09-15T15:49:53.851803 #6464] DEBUG -- : CustomLocation Load (1.3ms) 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:53.854479 #6464] DEBUG -- :  (1.1ms) 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:53.855605 #6464] DEBUG -- :  (0.4ms) ROLLBACK
523
+ D, [2013-09-15T15:49:53.857270 #6464] DEBUG -- :  (0.4ms) BEGIN
524
+ D, [2013-09-15T15:49:53.859279 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
525
+ D, [2013-09-15T15:49:53.861377 #6464] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
526
+ D, [2013-09-15T15:49:53.863566 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
527
+ D, [2013-09-15T15:49:53.865670 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
528
+ D, [2013-09-15T15:49:53.867859 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
529
+ D, [2013-09-15T15:49:53.870016 #6464] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
530
+ D, [2013-09-15T15:49:53.872212 #6464] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
531
+ D, [2013-09-15T15:49:53.876816 #6464] DEBUG -- : CustomLocation Load (1.2ms) 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:53.879657 #6464] DEBUG -- :  (1.2ms) 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:53.880811 #6464] DEBUG -- :  (0.4ms) ROLLBACK
540
+ D, [2013-09-15T15:49:53.882347 #6464] DEBUG -- :  (0.4ms) BEGIN
541
+ D, [2013-09-15T15:49:53.884545 #6464] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
542
+ D, [2013-09-15T15:49:53.886615 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
543
+ D, [2013-09-15T15:49:53.888621 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
544
+ D, [2013-09-15T15:49:53.890647 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
545
+ D, [2013-09-15T15:49:53.892567 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
546
+ D, [2013-09-15T15:49:53.894532 #6464] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
547
+ D, [2013-09-15T15:49:53.896472 #6464] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
548
+ D, [2013-09-15T15:49:53.902114 #6464] DEBUG -- : Location Load (1.5ms) 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:53.904995 #6464] DEBUG -- :  (1.3ms) 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:53.906096 #6464] DEBUG -- :  (0.3ms) ROLLBACK
559
+ D, [2013-09-15T15:49:53.907367 #6464] DEBUG -- :  (0.3ms) BEGIN
560
+ D, [2013-09-15T15:49:53.909369 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
561
+ D, [2013-09-15T15:49:53.911519 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
562
+ D, [2013-09-15T15:49:53.913633 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
563
+ D, [2013-09-15T15:49:53.915821 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
564
+ D, [2013-09-15T15:49:53.917948 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
565
+ D, [2013-09-15T15:49:53.920111 #6464] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
566
+ D, [2013-09-15T15:49:53.922094 #6464] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
567
+ D, [2013-09-15T15:49:53.926225 #6464] DEBUG -- : Location Load (1.0ms) 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:53.928847 #6464] 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:53.929967 #6464] DEBUG -- :  (0.4ms) ROLLBACK
576
+ D, [2013-09-15T15:49:53.931512 #6464] DEBUG -- :  (0.4ms) BEGIN
577
+ D, [2013-09-15T15:49:53.933556 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
578
+ D, [2013-09-15T15:49:53.935632 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
579
+ D, [2013-09-15T15:49:53.937692 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
580
+ D, [2013-09-15T15:49:53.939720 #6464] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
581
+ D, [2013-09-15T15:49:53.941725 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
582
+ D, [2013-09-15T15:49:53.943777 #6464] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
583
+ D, [2013-09-15T15:49:53.945769 #6464] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
584
+ D, [2013-09-15T15:49:53.951246 #6464] DEBUG -- : Location Load (1.4ms) 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:53.954158 #6464] DEBUG -- :  (1.4ms) 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:53.955366 #6464] DEBUG -- :  (0.3ms) ROLLBACK
595
+ D, [2013-09-15T15:49:53.956646 #6464] DEBUG -- :  (0.3ms) BEGIN
596
+ D, [2013-09-15T15:49:53.958612 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
597
+ D, [2013-09-15T15:49:53.960495 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
598
+ D, [2013-09-15T15:49:53.962531 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
599
+ D, [2013-09-15T15:49:53.964415 #6464] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
600
+ D, [2013-09-15T15:49:53.966319 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
601
+ D, [2013-09-15T15:49:53.968344 #6464] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
602
+ D, [2013-09-15T15:49:53.970351 #6464] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
603
+ D, [2013-09-15T15:49:53.976204 #6464] DEBUG -- : Location Load (1.5ms) 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:53.978933 #6464] DEBUG -- :  (1.4ms) 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:53.979957 #6464] DEBUG -- :  (0.3ms) ROLLBACK
614
+ D, [2013-09-15T15:49:53.981299 #6464] DEBUG -- :  (0.3ms) BEGIN
615
+ D, [2013-09-15T15:49:53.983303 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
616
+ D, [2013-09-15T15:49:53.985237 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
617
+ D, [2013-09-15T15:49:53.987256 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
618
+ D, [2013-09-15T15:49:53.989125 #6464] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
619
+ D, [2013-09-15T15:49:53.991073 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
620
+ D, [2013-09-15T15:49:53.993097 #6464] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
621
+ D, [2013-09-15T15:49:53.995091 #6464] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
622
+ D, [2013-09-15T15:49:53.997352 #6464] DEBUG -- :  (0.6ms) SELECT COUNT(*) FROM `mock_people`
623
+ D, [2013-09-15T15:49:53.998802 #6464] DEBUG -- :  (0.6ms) SELECT COUNT(*) FROM `mock_people`
624
+ D, [2013-09-15T15:49:53.999713 #6464] DEBUG -- :  (0.3ms) ROLLBACK
625
+ D, [2013-09-15T15:49:54.000879 #6464] DEBUG -- :  (0.2ms) BEGIN
626
+ D, [2013-09-15T15:49:54.002835 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
627
+ D, [2013-09-15T15:49:54.004749 #6464] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
628
+ D, [2013-09-15T15:49:54.006774 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
629
+ D, [2013-09-15T15:49:54.008630 #6464] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
630
+ D, [2013-09-15T15:49:54.010554 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
631
+ D, [2013-09-15T15:49:54.012601 #6464] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
632
+ D, [2013-09-15T15:49:54.014849 #6464] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
633
+ D, [2013-09-15T15:49:54.020359 #6464] DEBUG -- : Location Load (1.4ms) 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:54.023305 #6464] DEBUG -- :  (1.4ms) 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:54.024408 #6464] DEBUG -- :  (0.4ms) ROLLBACK
644
+ D, [2013-09-15T15:49:54.025948 #6464] DEBUG -- :  (0.4ms) BEGIN
645
+ D, [2013-09-15T15:49:54.027996 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
646
+ D, [2013-09-15T15:49:54.029987 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
647
+ D, [2013-09-15T15:49:54.032225 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
648
+ D, [2013-09-15T15:49:54.034530 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
649
+ D, [2013-09-15T15:49:54.036671 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
650
+ D, [2013-09-15T15:49:54.038849 #6464] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
651
+ D, [2013-09-15T15:49:54.040999 #6464] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
652
+ D, [2013-09-15T15:49:54.043445 #6464] DEBUG -- : Location Load (1.1ms) 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:54.045785 #6464] DEBUG -- :  (0.9ms) 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:54.046832 #6464] DEBUG -- :  (0.4ms) ROLLBACK
655
+ D, [2013-09-15T15:49:54.048407 #6464] DEBUG -- :  (0.4ms) BEGIN
656
+ D, [2013-09-15T15:49:54.050469 #6464] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
657
+ D, [2013-09-15T15:49:54.052537 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
658
+ D, [2013-09-15T15:49:54.054876 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
659
+ D, [2013-09-15T15:49:54.056875 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
660
+ D, [2013-09-15T15:49:54.059271 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
661
+ D, [2013-09-15T15:49:54.061466 #6464] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
662
+ D, [2013-09-15T15:49:54.063754 #6464] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
663
+ D, [2013-09-15T15:49:54.071735 #6464] DEBUG -- : Location Load (2.0ms) 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:54.074500 #6464] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 4 LIMIT 1
669
+ D, [2013-09-15T15:49:54.076075 #6464] DEBUG -- :  (0.4ms) ROLLBACK
670
+ D, [2013-09-15T15:49:54.077759 #6464] DEBUG -- :  (0.4ms) BEGIN
671
+ D, [2013-09-15T15:49:54.080012 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
672
+ D, [2013-09-15T15:49:54.082148 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
673
+ D, [2013-09-15T15:49:54.084370 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
674
+ D, [2013-09-15T15:49:54.086363 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
675
+ D, [2013-09-15T15:49:54.088535 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
676
+ D, [2013-09-15T15:49:54.090880 #6464] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
677
+ D, [2013-09-15T15:49:54.093343 #6464] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
678
+ D, [2013-09-15T15:49:54.096193 #6464] DEBUG -- : Location Load (1.1ms) 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:54.097579 #6464] DEBUG -- :  (0.4ms) ROLLBACK
680
+ D, [2013-09-15T15:49:54.099104 #6464] DEBUG -- :  (0.4ms) BEGIN
681
+ D, [2013-09-15T15:49:54.101160 #6464] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
682
+ D, [2013-09-15T15:49:54.103214 #6464] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
683
+ D, [2013-09-15T15:49:54.105354 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
684
+ D, [2013-09-15T15:49:54.107492 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
685
+ D, [2013-09-15T15:49:54.109617 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
686
+ D, [2013-09-15T15:49:54.111760 #6464] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
687
+ D, [2013-09-15T15:49:54.113717 #6464] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
688
+ D, [2013-09-15T15:49:54.116309 #6464] DEBUG -- : Location Load (1.0ms) 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:54.117516 #6464] DEBUG -- :  (0.4ms) ROLLBACK
690
+ D, [2013-09-15T15:49:54.118737 #6464] DEBUG -- :  (0.3ms) BEGIN
691
+ D, [2013-09-15T15:49:54.120711 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
692
+ D, [2013-09-15T15:49:54.123368 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
693
+ D, [2013-09-15T15:49:54.125582 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
694
+ D, [2013-09-15T15:49:54.127759 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
695
+ D, [2013-09-15T15:49:54.129985 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
696
+ D, [2013-09-15T15:49:54.132114 #6464] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
697
+ D, [2013-09-15T15:49:54.134082 #6464] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
698
+ D, [2013-09-15T15:49:54.136478 #6464] DEBUG -- : Location Load (1.1ms) 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:54.137614 #6464] DEBUG -- :  (0.3ms) ROLLBACK
700
+ D, [2013-09-15T15:49:54.138937 #6464] DEBUG -- :  (0.3ms) BEGIN
701
+ D, [2013-09-15T15:49:54.140772 #6464] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
702
+ D, [2013-09-15T15:49:54.142646 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
703
+ D, [2013-09-15T15:49:54.144593 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
704
+ D, [2013-09-15T15:49:54.146634 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
705
+ D, [2013-09-15T15:49:54.148646 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
706
+ D, [2013-09-15T15:49:54.150881 #6464] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
707
+ D, [2013-09-15T15:49:54.153529 #6464] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
708
+ D, [2013-09-15T15:49:54.155854 #6464] DEBUG -- : Location Load (0.9ms) 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:54.158119 #6464] DEBUG -- :  (0.9ms) 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:54.159149 #6464] DEBUG -- :  (0.3ms) ROLLBACK
711
+ D, [2013-09-15T15:49:54.160477 #6464] DEBUG -- :  (0.3ms) BEGIN
712
+ D, [2013-09-15T15:49:54.162337 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
713
+ D, [2013-09-15T15:49:54.164538 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
714
+ D, [2013-09-15T15:49:54.166774 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
715
+ D, [2013-09-15T15:49:54.168795 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
716
+ D, [2013-09-15T15:49:54.170859 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
717
+ D, [2013-09-15T15:49:54.173021 #6464] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
718
+ D, [2013-09-15T15:49:54.175214 #6464] DEBUG -- : MockAddress Load (0.9ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
719
+ D, [2013-09-15T15:49:54.180115 #6464] DEBUG -- : Location Load (1.6ms) 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:54.183464 #6464] DEBUG -- :  (1.7ms) 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:54.184617 #6464] DEBUG -- :  (0.4ms) ROLLBACK
730
+ D, [2013-09-15T15:49:54.186153 #6464] DEBUG -- :  (0.4ms) BEGIN
731
+ D, [2013-09-15T15:49:54.188381 #6464] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
732
+ D, [2013-09-15T15:49:54.190555 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
733
+ D, [2013-09-15T15:49:54.192770 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
734
+ D, [2013-09-15T15:49:54.194754 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
735
+ D, [2013-09-15T15:49:54.196758 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
736
+ D, [2013-09-15T15:49:54.198801 #6464] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
737
+ D, [2013-09-15T15:49:54.200760 #6464] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
738
+ D, [2013-09-15T15:49:54.204023 #6464] DEBUG -- : CustomLocation Load (1.1ms) 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:54.206548 #6464] DEBUG -- :  (1.0ms) 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:54.207513 #6464] DEBUG -- :  (0.3ms) ROLLBACK
747
+ D, [2013-09-15T15:49:54.208847 #6464] DEBUG -- :  (0.3ms) BEGIN
748
+ D, [2013-09-15T15:49:54.211365 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
749
+ D, [2013-09-15T15:49:54.213548 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
750
+ D, [2013-09-15T15:49:54.215917 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
751
+ D, [2013-09-15T15:49:54.217950 #6464] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
752
+ D, [2013-09-15T15:49:54.220066 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
753
+ D, [2013-09-15T15:49:54.222046 #6464] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
754
+ D, [2013-09-15T15:49:54.224077 #6464] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
755
+ D, [2013-09-15T15:49:54.228422 #6464] DEBUG -- : CustomLocation Load (1.2ms) 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:54.231089 #6464] DEBUG -- :  (1.1ms) 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:54.232143 #6464] DEBUG -- :  (0.4ms) ROLLBACK
764
+ D, [2013-09-15T15:49:54.233463 #6464] DEBUG -- :  (0.3ms) BEGIN
765
+ D, [2013-09-15T15:49:54.235585 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
766
+ D, [2013-09-15T15:49:54.237692 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
767
+ D, [2013-09-15T15:49:54.240180 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
768
+ D, [2013-09-15T15:49:54.242822 #6464] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
769
+ D, [2013-09-15T15:49:54.245511 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
770
+ D, [2013-09-15T15:49:54.247757 #6464] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
771
+ D, [2013-09-15T15:49:54.249812 #6464] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
772
+ D, [2013-09-15T15:49:54.251968 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE (company_id = 1)
773
+ D, [2013-09-15T15:49:54.295451 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` IN (1)
774
+ D, [2013-09-15T15:49:54.296352 #6464] DEBUG -- :  (0.3ms) ROLLBACK
775
+ D, [2013-09-15T15:49:54.297082 #6464] DEBUG -- :  (0.2ms) BEGIN
776
+ D, [2013-09-15T15:49:54.298110 #6464] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
777
+ D, [2013-09-15T15:49:54.299055 #6464] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
778
+ D, [2013-09-15T15:49:54.300003 #6464] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
779
+ D, [2013-09-15T15:49:54.300894 #6464] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
780
+ D, [2013-09-15T15:49:54.301772 #6464] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
781
+ D, [2013-09-15T15:49:54.302697 #6464] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
782
+ D, [2013-09-15T15:49:54.303718 #6464] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
783
+ D, [2013-09-15T15:49:54.306300 #6464] DEBUG -- : Location Load (1.1ms) 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:54.308513 #6464] DEBUG -- :  (0.3ms) ROLLBACK
789
+ D, [2013-09-15T15:49:54.309296 #6464] DEBUG -- :  (0.2ms) BEGIN
790
+ D, [2013-09-15T15:49:54.310432 #6464] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
791
+ D, [2013-09-15T15:49:54.311415 #6464] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
792
+ D, [2013-09-15T15:49:54.312365 #6464] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
793
+ D, [2013-09-15T15:49:54.313245 #6464] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
794
+ D, [2013-09-15T15:49:54.314090 #6464] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
795
+ D, [2013-09-15T15:49:54.315074 #6464] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
796
+ D, [2013-09-15T15:49:54.315998 #6464] DEBUG -- : MockAddress Load (0.5ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
797
+ D, [2013-09-15T15:49:54.318330 #6464] DEBUG -- : Location Load (0.9ms) 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:54.319703 #6464] DEBUG -- :  (0.9ms) 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:54.320354 #6464] DEBUG -- :  (0.3ms) ROLLBACK
808
+ D, [2013-09-15T15:49:54.321193 #6464] DEBUG -- :  (0.3ms) BEGIN
809
+ D, [2013-09-15T15:49:54.322292 #6464] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
810
+ D, [2013-09-15T15:49:54.323219 #6464] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
811
+ D, [2013-09-15T15:49:54.324304 #6464] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
812
+ D, [2013-09-15T15:49:54.325284 #6464] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
813
+ D, [2013-09-15T15:49:54.326395 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
814
+ D, [2013-09-15T15:49:54.327420 #6464] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
815
+ D, [2013-09-15T15:49:54.328441 #6464] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
816
+ D, [2013-09-15T15:49:54.331190 #6464] DEBUG -- : Location Load (1.1ms) 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:54.333525 #6464] DEBUG -- :  (0.4ms) ROLLBACK
822
+ D, [2013-09-15T15:49:54.335233 #6464] DEBUG -- :  (0.4ms) BEGIN
823
+ D, [2013-09-15T15:49:54.337671 #6464] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
824
+ D, [2013-09-15T15:49:54.339946 #6464] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
825
+ D, [2013-09-15T15:49:54.342205 #6464] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
826
+ D, [2013-09-15T15:49:54.344290 #6464] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
827
+ D, [2013-09-15T15:49:54.346281 #6464] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
828
+ D, [2013-09-15T15:49:54.348508 #6464] DEBUG -- : MockOrganization Load (0.6ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
829
+ D, [2013-09-15T15:49:54.350490 #6464] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
830
+ D, [2013-09-15T15:49:54.356091 #6464] DEBUG -- : Location Load (1.2ms) 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:54.357990 #6464] DEBUG -- :  (0.4ms) ROLLBACK
836
+ D, [2013-09-15T15:49:54.359526 #6464] DEBUG -- :  (0.3ms) BEGIN
837
+ D, [2013-09-15T15:49:54.362160 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
838
+ D, [2013-09-15T15:49:54.364328 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
839
+ D, [2013-09-15T15:49:54.366542 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
840
+ D, [2013-09-15T15:49:54.368510 #6464] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
841
+ D, [2013-09-15T15:49:54.370427 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
842
+ D, [2013-09-15T15:49:54.372669 #6464] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
843
+ D, [2013-09-15T15:49:54.375037 #6464] DEBUG -- : MockAddress Load (0.9ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
844
+ D, [2013-09-15T15:49:54.381276 #6464] DEBUG -- : Location Load (1.6ms) 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:54.384274 #6464] DEBUG -- :  (1.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:54.385622 #6464] DEBUG -- :  (0.4ms) ROLLBACK
855
+ D, [2013-09-15T15:49:54.387171 #6464] DEBUG -- :  (0.3ms) BEGIN
856
+ D, [2013-09-15T15:49:54.389926 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
857
+ D, [2013-09-15T15:49:54.392359 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
858
+ D, [2013-09-15T15:49:54.394587 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
859
+ D, [2013-09-15T15:49:54.396550 #6464] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
860
+ D, [2013-09-15T15:49:54.398805 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
861
+ D, [2013-09-15T15:49:54.401098 #6464] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
862
+ D, [2013-09-15T15:49:54.403392 #6464] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
863
+ D, [2013-09-15T15:49:54.409485 #6464] DEBUG -- : Location Load (1.5ms) 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:54.412909 #6464] DEBUG -- :  (1.5ms) 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:54.414318 #6464] DEBUG -- :  (0.4ms) ROLLBACK
874
+ D, [2013-09-15T15:49:54.415876 #6464] DEBUG -- :  (0.3ms) BEGIN
875
+ D, [2013-09-15T15:49:54.418455 #6464] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
876
+ D, [2013-09-15T15:49:54.420991 #6464] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
877
+ D, [2013-09-15T15:49:54.423425 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
878
+ D, [2013-09-15T15:49:54.425610 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
879
+ D, [2013-09-15T15:49:54.427738 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
880
+ D, [2013-09-15T15:49:54.429871 #6464] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
881
+ D, [2013-09-15T15:49:54.432272 #6464] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
882
+ D, [2013-09-15T15:49:54.438835 #6464] DEBUG -- : Location Load (1.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:54.441926 #6464] DEBUG -- :  (1.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:54.443431 #6464] DEBUG -- :  (0.4ms) ROLLBACK
893
+ D, [2013-09-15T15:49:54.444938 #6464] DEBUG -- :  (0.3ms) BEGIN
894
+ D, [2013-09-15T15:49:54.447420 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
895
+ D, [2013-09-15T15:49:54.449815 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
896
+ D, [2013-09-15T15:49:54.452063 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
897
+ D, [2013-09-15T15:49:54.454327 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
898
+ D, [2013-09-15T15:49:54.456490 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
899
+ D, [2013-09-15T15:49:54.458779 #6464] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
900
+ D, [2013-09-15T15:49:54.461092 #6464] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
901
+ D, [2013-09-15T15:49:54.467424 #6464] DEBUG -- : Location Load (1.6ms) 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:54.470742 #6464] DEBUG -- :  (1.4ms) 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:54.472120 #6464] DEBUG -- :  (0.4ms) ROLLBACK
912
+ D, [2013-09-15T15:49:54.473891 #6464] DEBUG -- :  (0.4ms) BEGIN
913
+ D, [2013-09-15T15:49:54.476476 #6464] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
914
+ D, [2013-09-15T15:49:54.478872 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
915
+ D, [2013-09-15T15:49:54.481251 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
916
+ D, [2013-09-15T15:49:54.483438 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
917
+ D, [2013-09-15T15:49:54.485493 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
918
+ D, [2013-09-15T15:49:54.487718 #6464] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
919
+ D, [2013-09-15T15:49:54.489829 #6464] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
920
+ D, [2013-09-15T15:49:54.492665 #6464] DEBUG -- :  (0.4ms) ROLLBACK
921
+ D, [2013-09-15T15:49:54.494226 #6464] DEBUG -- :  (0.3ms) BEGIN
922
+ D, [2013-09-15T15:49:54.496593 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
923
+ D, [2013-09-15T15:49:54.498732 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
924
+ D, [2013-09-15T15:49:54.500870 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
925
+ D, [2013-09-15T15:49:54.502981 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
926
+ D, [2013-09-15T15:49:54.505062 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
927
+ D, [2013-09-15T15:49:54.507264 #6464] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
928
+ D, [2013-09-15T15:49:54.509475 #6464] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
929
+ D, [2013-09-15T15:49:54.515434 #6464] DEBUG -- : Location Load (1.6ms) 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:54.518580 #6464] DEBUG -- :  (1.3ms) 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:54.519787 #6464] DEBUG -- :  (0.4ms) ROLLBACK
940
+ D, [2013-09-15T15:49:54.521331 #6464] DEBUG -- :  (0.4ms) BEGIN
941
+ D, [2013-09-15T15:49:54.523509 #6464] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
942
+ D, [2013-09-15T15:49:54.525563 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
943
+ D, [2013-09-15T15:49:54.527811 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
944
+ D, [2013-09-15T15:49:54.529901 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
945
+ D, [2013-09-15T15:49:54.531988 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
946
+ D, [2013-09-15T15:49:54.533984 #6464] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
947
+ D, [2013-09-15T15:49:54.536137 #6464] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
948
+ D, [2013-09-15T15:49:54.574708 #6464] DEBUG -- : Location Load (1.3ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`company_id` = 1 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
953
+ D, [2013-09-15T15:49:54.576734 #6464] DEBUG -- :  (0.3ms) ROLLBACK
954
+ D, [2013-09-15T15:49:54.577495 #6464] DEBUG -- :  (0.2ms) BEGIN
955
+ D, [2013-09-15T15:49:54.578538 #6464] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
956
+ D, [2013-09-15T15:49:54.579487 #6464] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
957
+ D, [2013-09-15T15:49:54.580417 #6464] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
958
+ D, [2013-09-15T15:49:54.581381 #6464] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
959
+ D, [2013-09-15T15:49:54.582316 #6464] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
960
+ D, [2013-09-15T15:49:54.583286 #6464] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
961
+ D, [2013-09-15T15:49:54.584215 #6464] DEBUG -- : MockAddress Load (0.5ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
962
+ D, [2013-09-15T15:49:54.587378 #6464] DEBUG -- : Location Load (1.1ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`company_id` = 1 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))
967
+ D, [2013-09-15T15:49:54.588869 #6464] DEBUG -- :  (0.9ms) SELECT COUNT(*) FROM `locations` WHERE `locations`.`company_id` = 1 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))
972
+ D, [2013-09-15T15:49:54.589479 #6464] DEBUG -- :  (0.4ms) ROLLBACK
973
+ D, [2013-09-15T15:49:54.590340 #6464] DEBUG -- :  (0.3ms) BEGIN
974
+ D, [2013-09-15T15:49:54.591252 #6464] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
975
+ D, [2013-09-15T15:49:54.592153 #6464] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
976
+ D, [2013-09-15T15:49:54.593075 #6464] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
977
+ D, [2013-09-15T15:49:54.593963 #6464] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
978
+ D, [2013-09-15T15:49:54.594860 #6464] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
979
+ D, [2013-09-15T15:49:54.595785 #6464] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
980
+ D, [2013-09-15T15:49:54.596723 #6464] DEBUG -- : MockAddress Load (0.5ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
981
+ D, [2013-09-15T15:49:54.599954 #6464] DEBUG -- : Location Load (1.1ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`company_id` = 1 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
986
+ D, [2013-09-15T15:49:54.600756 #6464] DEBUG -- :  (0.3ms) ROLLBACK
987
+ D, [2013-09-15T15:49:54.601576 #6464] DEBUG -- :  (0.3ms) BEGIN
988
+ D, [2013-09-15T15:49:54.602616 #6464] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
989
+ D, [2013-09-15T15:49:54.603542 #6464] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
990
+ D, [2013-09-15T15:49:54.604737 #6464] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
991
+ D, [2013-09-15T15:49:54.607106 #6464] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
992
+ D, [2013-09-15T15:49:54.608087 #6464] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
993
+ D, [2013-09-15T15:49:54.609270 #6464] DEBUG -- : MockOrganization Load (0.6ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
994
+ D, [2013-09-15T15:49:54.611395 #6464] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
995
+ D, [2013-09-15T15:49:54.618931 #6464] DEBUG -- : Location Load (1.2ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`company_id` = 1 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
1000
+ D, [2013-09-15T15:49:54.620555 #6464] DEBUG -- :  (0.4ms) ROLLBACK
1001
+ D, [2013-09-15T15:49:54.621930 #6464] DEBUG -- :  (0.2ms) BEGIN
1002
+ D, [2013-09-15T15:49:54.622967 #6464] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1003
+ D, [2013-09-15T15:49:54.623914 #6464] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1004
+ D, [2013-09-15T15:49:54.624832 #6464] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1005
+ D, [2013-09-15T15:49:54.625624 #6464] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1006
+ D, [2013-09-15T15:49:54.626692 #6464] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1007
+ D, [2013-09-15T15:49:54.628618 #6464] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1008
+ D, [2013-09-15T15:49:54.630568 #6464] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1009
+ D, [2013-09-15T15:49:54.638186 #6464] DEBUG -- : Location Load (1.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`company_id` = 1 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')
1014
+ D, [2013-09-15T15:49:54.641781 #6464] DEBUG -- :  (1.5ms) SELECT COUNT(*) FROM `locations` WHERE `locations`.`company_id` = 1 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')
1019
+ D, [2013-09-15T15:49:54.643129 #6464] DEBUG -- :  (0.5ms) ROLLBACK
1020
+ D, [2013-09-15T15:49:54.645020 #6464] DEBUG -- :  (0.4ms) BEGIN
1021
+ D, [2013-09-15T15:49:54.647272 #6464] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1022
+ D, [2013-09-15T15:49:54.649385 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1023
+ D, [2013-09-15T15:49:54.651660 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1024
+ D, [2013-09-15T15:49:54.653818 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1025
+ D, [2013-09-15T15:49:54.655954 #6464] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1026
+ D, [2013-09-15T15:49:54.658159 #6464] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1027
+ D, [2013-09-15T15:49:54.660538 #6464] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1028
+ D, [2013-09-15T15:49:54.667478 #6464] DEBUG -- : Location Load (1.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`company_id` = 1 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))
1033
+ D, [2013-09-15T15:49:54.671421 #6464] DEBUG -- :  (1.6ms) SELECT COUNT(*) FROM `locations` WHERE `locations`.`company_id` = 1 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))
1038
+ D, [2013-09-15T15:49:54.672574 #6464] DEBUG -- :  (0.4ms) ROLLBACK
1039
+ D, [2013-09-15T15:49:54.674115 #6464] DEBUG -- :  (0.4ms) BEGIN
1040
+ D, [2013-09-15T15:49:54.676255 #6464] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1041
+ D, [2013-09-15T15:49:54.678306 #6464] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1042
+ D, [2013-09-15T15:49:54.680596 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1043
+ D, [2013-09-15T15:49:54.682675 #6464] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1044
+ D, [2013-09-15T15:49:54.684772 #6464] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1045
+ D, [2013-09-15T15:49:54.686955 #6464] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1046
+ D, [2013-09-15T15:49:54.689223 #6464] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1047
+ D, [2013-09-15T15:49:54.695820 #6464] DEBUG -- : Location Load (1.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`company_id` = 1 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))
1052
+ D, [2013-09-15T15:49:54.699337 #6464] DEBUG -- :  (1.6ms) SELECT COUNT(*) FROM `locations` WHERE `locations`.`company_id` = 1 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))
1057
+ D, [2013-09-15T15:49:54.700573 #6464] DEBUG -- :  (0.4ms) ROLLBACK
1058
+ D, [2013-09-15T15:59:40.759281 #7068] DEBUG -- :  (7.6ms) DROP TABLE `companies`
1059
+ D, [2013-09-15T15:59:40.791749 #7068] DEBUG -- :  (31.5ms) CREATE TABLE `companies` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB
1060
+ D, [2013-09-15T15:59:40.800882 #7068] DEBUG -- :  (6.8ms) DROP TABLE `locations`
1061
+ D, [2013-09-15T15:59:40.829991 #7068] DEBUG -- :  (28.1ms) 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
1062
+ D, [2013-09-15T15:59:40.839037 #7068] DEBUG -- :  (6.8ms) DROP TABLE `custom_locations`
1063
+ D, [2013-09-15T15:59:40.874013 #7068] DEBUG -- :  (33.9ms) 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
1064
+ D, [2013-09-15T15:59:40.885024 #7068] DEBUG -- :  (8.7ms) DROP TABLE `stores`
1065
+ D, [2013-09-15T15:59:40.935241 #7068] DEBUG -- :  (49.4ms) 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
1066
+ D, [2013-09-15T15:59:40.946853 #7068] DEBUG -- :  (9.6ms) DROP TABLE `mock_organizations`
1067
+ D, [2013-09-15T15:59:40.997103 #7068] DEBUG -- :  (49.6ms) CREATE TABLE `mock_organizations` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB
1068
+ D, [2013-09-15T15:59:41.014691 #7068] DEBUG -- :  (15.2ms) DROP TABLE `mock_addresses`
1069
+ D, [2013-09-15T15:59:41.080798 #7068] DEBUG -- :  (65.4ms) 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
1070
+ D, [2013-09-15T15:59:41.096544 #7068] DEBUG -- :  (14.4ms) DROP TABLE `mock_houses`
1071
+ D, [2013-09-15T15:59:41.150220 #7068] DEBUG -- :  (53.3ms) 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
1072
+ D, [2013-09-15T15:59:41.163417 #7068] DEBUG -- :  (11.4ms) DROP TABLE `mock_families`
1073
+ D, [2013-09-15T15:59:41.213922 #7068] DEBUG -- :  (49.7ms) CREATE TABLE `mock_families` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `mock_house_id` int(11)) ENGINE=InnoDB
1074
+ D, [2013-09-15T15:59:41.226379 #7068] DEBUG -- :  (10.3ms) DROP TABLE `mock_people`
1075
+ D, [2013-09-15T15:59:41.290255 #7068] DEBUG -- :  (63.1ms) CREATE TABLE `mock_people` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `mock_family_id` int(11)) ENGINE=InnoDB
1076
+ D, [2013-09-15T15:59:41.296609 #7068] DEBUG -- :  (0.7ms) SELECT version FROM `schema_migrations`
1077
+ D, [2013-09-15T15:59:41.849926 #7068] DEBUG -- :  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
1078
+ D, [2013-09-15T15:59:41.851690 #7068] DEBUG -- :  (0.3ms) SET FOREIGN_KEY_CHECKS = 0
1079
+ D, [2013-09-15T15:59:41.860138 #7068] DEBUG -- :  (0.2ms) BEGIN
1080
+ D, [2013-09-15T15:59:41.864919 #7068] DEBUG -- : Fixture Delete (0.3ms) DELETE FROM `mock_families`
1081
+ D, [2013-09-15T15:59:41.865906 #7068] DEBUG -- : Fixture Insert (0.3ms) INSERT INTO `mock_families` (`id`, `mock_house_id`) VALUES (964944192, 185830233)
1082
+ D, [2013-09-15T15:59:41.870958 #7068] DEBUG -- : Fixture Delete (0.3ms) DELETE FROM `companies`
1083
+ D, [2013-09-15T15:59:41.871796 #7068] DEBUG -- : Fixture Insert (0.3ms) INSERT INTO `companies` (`id`, `name`) VALUES (1, 'Starbucks')
1084
+ D, [2013-09-15T15:59:41.872553 #7068] DEBUG -- : Fixture Insert (0.3ms) INSERT INTO `companies` (`id`, `name`) VALUES (2, 'Barnes & Noble')
1085
+ D, [2013-09-15T15:59:41.873808 #7068] DEBUG -- : Fixture Delete (0.4ms) DELETE FROM `stores`
1086
+ D, [2013-09-15T15:59:41.881693 #7068] DEBUG -- : Fixture Delete (0.6ms) DELETE FROM `mock_addresses`
1087
+ D, [2013-09-15T15:59:41.883594 #7068] DEBUG -- : Fixture Insert (1.1ms) 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)
1088
+ D, [2013-09-15T15:59:41.885079 #7068] DEBUG -- : Fixture Insert (0.8ms) 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)
1089
+ D, [2013-09-15T15:59:41.893149 #7068] DEBUG -- : Fixture Delete (0.5ms) DELETE FROM `mock_people`
1090
+ D, [2013-09-15T15:59:41.894302 #7068] DEBUG -- : Fixture Insert (0.5ms) INSERT INTO `mock_people` (`id`, `mock_family_id`) VALUES (254095803, 964944192)
1091
+ D, [2013-09-15T15:59:41.895378 #7068] DEBUG -- : Fixture Insert (0.5ms) INSERT INTO `mock_people` (`id`, `mock_family_id`) VALUES (450002714, 964944192)
1092
+ D, [2013-09-15T15:59:41.905124 #7068] DEBUG -- : Fixture Delete (0.4ms) DELETE FROM `custom_locations`
1093
+ D, [2013-09-15T15:59:41.906583 #7068] 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)
1094
+ D, [2013-09-15T15:59:41.907735 #7068] DEBUG -- : Fixture Insert (0.6ms) 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)
1095
+ D, [2013-09-15T15:59:41.908903 #7068] DEBUG -- : Fixture Insert (0.6ms) 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)
1096
+ D, [2013-09-15T15:59:41.910178 #7068] 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)
1097
+ D, [2013-09-15T15:59:41.911594 #7068] DEBUG -- : Fixture Insert (0.8ms) 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)
1098
+ D, [2013-09-15T15:59:41.912950 #7068] DEBUG -- : Fixture Insert (0.8ms) 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)
1099
+ D, [2013-09-15T15:59:41.920756 #7068] DEBUG -- : Fixture Delete (0.4ms) DELETE FROM `mock_houses`
1100
+ D, [2013-09-15T15:59:41.922036 #7068] DEBUG -- : Fixture Insert (0.7ms) INSERT INTO `mock_houses` (`address`, `lat`, `lng`, `id`) VALUES ('106 N Denton Tap Rd', 32.969527, -96.990159, 966034833)
1101
+ D, [2013-09-15T15:59:41.923329 #7068] DEBUG -- : Fixture Insert (0.7ms) INSERT INTO `mock_houses` (`address`, `lat`, `lng`, `id`) VALUES ('5904 N Macarthur Blvd', 32.895155, -96.958444, 185830233)
1102
+ D, [2013-09-15T15:59:41.931864 #7068] DEBUG -- : Fixture Delete (0.4ms) DELETE FROM `locations`
1103
+ D, [2013-09-15T15:59:41.933137 #7068] DEBUG -- : Fixture Insert (0.7ms) 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)
1104
+ D, [2013-09-15T15:59:41.934244 #7068] 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)
1105
+ D, [2013-09-15T15:59:41.935568 #7068] 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)
1106
+ D, [2013-09-15T15:59:41.936857 #7068] DEBUG -- : Fixture Insert (0.7ms) 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)
1107
+ D, [2013-09-15T15:59:41.938195 #7068] 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)
1108
+ D, [2013-09-15T15:59:41.939372 #7068] DEBUG -- : Fixture Insert (0.6ms) 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)
1109
+ D, [2013-09-15T15:59:41.946201 #7068] DEBUG -- : Fixture Delete (0.4ms) DELETE FROM `mock_organizations`
1110
+ D, [2013-09-15T15:59:41.947371 #7068] DEBUG -- : Fixture Insert (0.6ms) INSERT INTO `mock_organizations` (`name`, `id`) VALUES ('Starbucks', 378604642)
1111
+ D, [2013-09-15T15:59:41.948445 #7068] DEBUG -- : Fixture Insert (0.5ms) INSERT INTO `mock_organizations` (`name`, `id`) VALUES ('Barnes & Noble', 1064917858)
1112
+ D, [2013-09-15T15:59:41.959437 #7068] DEBUG -- :  (10.4ms) COMMIT
1113
+ D, [2013-09-15T15:59:41.960715 #7068] DEBUG -- :  (0.5ms) SET FOREIGN_KEY_CHECKS = 1
1114
+ D, [2013-09-15T15:59:41.961679 #7068] DEBUG -- :  (0.3ms) BEGIN
1115
+ D, [2013-09-15T15:59:41.966357 #7068] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1116
+ D, [2013-09-15T15:59:41.980380 #7068] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1117
+ D, [2013-09-15T15:59:41.993884 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1118
+ D, [2013-09-15T15:59:42.006398 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1119
+ D, [2013-09-15T15:59:42.007541 #7068] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1120
+ D, [2013-09-15T15:59:42.008527 #7068] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1121
+ D, [2013-09-15T15:59:42.012961 #7068] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1122
+ D, [2013-09-15T15:59:42.049600 #7068] DEBUG -- :  (0.3ms) ROLLBACK
1123
+ D, [2013-09-15T15:59:42.050534 #7068] DEBUG -- :  (0.2ms) BEGIN
1124
+ D, [2013-09-15T15:59:42.051759 #7068] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1125
+ D, [2013-09-15T15:59:42.052732 #7068] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1126
+ D, [2013-09-15T15:59:42.053683 #7068] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1127
+ D, [2013-09-15T15:59:42.054572 #7068] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1128
+ D, [2013-09-15T15:59:42.055437 #7068] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1129
+ D, [2013-09-15T15:59:42.056338 #7068] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1130
+ D, [2013-09-15T15:59:42.057269 #7068] DEBUG -- : MockAddress Load (0.5ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1131
+ D, [2013-09-15T15:59:42.070305 #7068] DEBUG -- :  (0.3ms) SAVEPOINT active_record_1
1132
+ D, [2013-09-15T15:59:42.081931 #7068] DEBUG -- : SQL (1.7ms) INSERT INTO `stores` (`address`, `lat`, `lng`) VALUES ('Irving, TX', 32.918593, -96.958444)
1133
+ D, [2013-09-15T15:59:42.082731 #7068] DEBUG -- :  (0.3ms) RELEASE SAVEPOINT active_record_1
1134
+ D, [2013-09-15T15:59:42.088917 #7068] DEBUG -- :  (5.5ms) ROLLBACK
1135
+ D, [2013-09-15T15:59:42.090790 #7068] DEBUG -- :  (0.3ms) BEGIN
1136
+ D, [2013-09-15T15:59:42.093961 #7068] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1137
+ D, [2013-09-15T15:59:42.096219 #7068] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1138
+ D, [2013-09-15T15:59:42.098245 #7068] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1139
+ D, [2013-09-15T15:59:42.099945 #7068] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1140
+ D, [2013-09-15T15:59:42.102018 #7068] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1141
+ D, [2013-09-15T15:59:42.104552 #7068] DEBUG -- : MockOrganization Load (0.6ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1142
+ D, [2013-09-15T15:59:42.106992 #7068] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1143
+ D, [2013-09-15T15:59:42.109999 #7068] DEBUG -- :  (0.4ms) SAVEPOINT active_record_1
1144
+ D, [2013-09-15T15:59:42.111458 #7068] DEBUG -- :  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
1145
+ D, [2013-09-15T15:59:42.112812 #7068] DEBUG -- :  (0.4ms) ROLLBACK
1146
+ D, [2013-09-15T15:59:42.114488 #7068] DEBUG -- :  (0.3ms) BEGIN
1147
+ D, [2013-09-15T15:59:42.117094 #7068] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1148
+ D, [2013-09-15T15:59:42.119533 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1149
+ D, [2013-09-15T15:59:42.121832 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1150
+ D, [2013-09-15T15:59:42.123935 #7068] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1151
+ D, [2013-09-15T15:59:42.125884 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1152
+ D, [2013-09-15T15:59:42.128029 #7068] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1153
+ D, [2013-09-15T15:59:42.130130 #7068] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1154
+ D, [2013-09-15T15:59:42.136883 #7068] DEBUG -- :  (0.4ms) ROLLBACK
1155
+ D, [2013-09-15T15:59:42.138504 #7068] DEBUG -- :  (0.3ms) BEGIN
1156
+ D, [2013-09-15T15:59:42.140917 #7068] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1157
+ D, [2013-09-15T15:59:42.143224 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1158
+ D, [2013-09-15T15:59:42.145492 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1159
+ D, [2013-09-15T15:59:42.147678 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1160
+ D, [2013-09-15T15:59:42.149843 #7068] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1161
+ D, [2013-09-15T15:59:42.152096 #7068] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1162
+ D, [2013-09-15T15:59:42.154225 #7068] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1163
+ D, [2013-09-15T15:59:42.157310 #7068] DEBUG -- :  (0.5ms) ROLLBACK
1164
+ D, [2013-09-15T15:59:42.158999 #7068] DEBUG -- :  (0.3ms) BEGIN
1165
+ D, [2013-09-15T15:59:42.161387 #7068] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1166
+ D, [2013-09-15T15:59:42.163622 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1167
+ D, [2013-09-15T15:59:42.165762 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1168
+ D, [2013-09-15T15:59:42.167804 #7068] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1169
+ D, [2013-09-15T15:59:42.169727 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1170
+ D, [2013-09-15T15:59:42.171839 #7068] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1171
+ D, [2013-09-15T15:59:42.174007 #7068] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1172
+ D, [2013-09-15T15:59:42.181134 #7068] DEBUG -- :  (0.5ms) ROLLBACK
1173
+ D, [2013-09-15T15:59:42.182575 #7068] DEBUG -- :  (0.3ms) BEGIN
1174
+ D, [2013-09-15T15:59:42.184699 #7068] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1175
+ D, [2013-09-15T15:59:42.186786 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1176
+ D, [2013-09-15T15:59:42.188823 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1177
+ D, [2013-09-15T15:59:42.190775 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1178
+ D, [2013-09-15T15:59:42.192702 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1179
+ D, [2013-09-15T15:59:42.194699 #7068] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1180
+ D, [2013-09-15T15:59:42.196662 #7068] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1181
+ D, [2013-09-15T15:59:42.200658 #7068] DEBUG -- :  (0.4ms) ROLLBACK
1182
+ D, [2013-09-15T15:59:42.202158 #7068] DEBUG -- :  (0.3ms) BEGIN
1183
+ D, [2013-09-15T15:59:42.204697 #7068] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1184
+ D, [2013-09-15T15:59:42.206975 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1185
+ D, [2013-09-15T15:59:42.209719 #7068] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1186
+ D, [2013-09-15T15:59:42.212488 #7068] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1187
+ D, [2013-09-15T15:59:42.215296 #7068] DEBUG -- : CustomLocation Load (1.0ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1188
+ D, [2013-09-15T15:59:42.217958 #7068] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1189
+ D, [2013-09-15T15:59:42.220559 #7068] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1190
+ D, [2013-09-15T15:59:42.225358 #7068] DEBUG -- :  (0.6ms) ROLLBACK
1191
+ D, [2013-09-15T15:59:42.227249 #7068] DEBUG -- :  (0.4ms) BEGIN
1192
+ D, [2013-09-15T15:59:42.230438 #7068] DEBUG -- : Company Load (1.0ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1193
+ D, [2013-09-15T15:59:42.234270 #7068] DEBUG -- : Location Load (1.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1194
+ D, [2013-09-15T15:59:42.237014 #7068] DEBUG -- : CustomLocation Load (0.9ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1195
+ D, [2013-09-15T15:59:42.239370 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1196
+ D, [2013-09-15T15:59:42.241447 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1197
+ D, [2013-09-15T15:59:42.243707 #7068] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1198
+ D, [2013-09-15T15:59:42.246166 #7068] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1199
+ D, [2013-09-15T15:59:42.253110 #7068] DEBUG -- :  (0.4ms) ROLLBACK
1200
+ D, [2013-09-15T15:59:42.254493 #7068] DEBUG -- :  (0.3ms) BEGIN
1201
+ D, [2013-09-15T15:59:42.256610 #7068] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1202
+ D, [2013-09-15T15:59:42.258819 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1203
+ D, [2013-09-15T15:59:42.260992 #7068] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1204
+ D, [2013-09-15T15:59:42.263451 #7068] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1205
+ D, [2013-09-15T15:59:42.266185 #7068] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1206
+ D, [2013-09-15T15:59:42.268893 #7068] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1207
+ D, [2013-09-15T15:59:42.271659 #7068] DEBUG -- : MockAddress Load (0.9ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1208
+ D, [2013-09-15T15:59:42.278512 #7068] DEBUG -- :  (0.5ms) ROLLBACK
1209
+ D, [2013-09-15T15:59:42.280012 #7068] DEBUG -- :  (0.2ms) BEGIN
1210
+ D, [2013-09-15T15:59:42.282196 #7068] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1211
+ D, [2013-09-15T15:59:42.284536 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1212
+ D, [2013-09-15T15:59:42.287386 #7068] DEBUG -- : CustomLocation Load (0.9ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1213
+ D, [2013-09-15T15:59:42.289790 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1214
+ D, [2013-09-15T15:59:42.292289 #7068] DEBUG -- : CustomLocation Load (0.9ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1215
+ D, [2013-09-15T15:59:42.295316 #7068] DEBUG -- : MockOrganization Load (1.1ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1216
+ D, [2013-09-15T15:59:42.298017 #7068] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1217
+ D, [2013-09-15T15:59:42.304934 #7068] DEBUG -- :  (0.7ms) ROLLBACK
1218
+ D, [2013-09-15T15:59:42.306664 #7068] DEBUG -- :  (0.4ms) BEGIN
1219
+ D, [2013-09-15T15:59:42.309220 #7068] DEBUG -- : Company Load (0.9ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1220
+ D, [2013-09-15T15:59:42.311683 #7068] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1221
+ D, [2013-09-15T15:59:42.314281 #7068] DEBUG -- : CustomLocation Load (0.9ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1222
+ D, [2013-09-15T15:59:42.316897 #7068] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1223
+ D, [2013-09-15T15:59:42.319269 #7068] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1224
+ D, [2013-09-15T15:59:42.321401 #7068] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1225
+ D, [2013-09-15T15:59:42.324029 #7068] DEBUG -- : MockAddress Load (1.0ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1226
+ D, [2013-09-15T15:59:42.331559 #7068] DEBUG -- :  (0.2ms) ROLLBACK
1227
+ D, [2013-09-15T15:59:42.332014 #7068] DEBUG -- :  (0.1ms) BEGIN
1228
+ D, [2013-09-15T15:59:42.333256 #7068] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1229
+ D, [2013-09-15T15:59:42.334484 #7068] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1230
+ D, [2013-09-15T15:59:42.335794 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1231
+ D, [2013-09-15T15:59:42.336958 #7068] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1232
+ D, [2013-09-15T15:59:42.338079 #7068] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1233
+ D, [2013-09-15T15:59:42.363653 #7068] DEBUG -- : MockOrganization Load (4.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1234
+ D, [2013-09-15T15:59:42.366776 #7068] DEBUG -- : MockAddress Load (1.0ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1235
+ D, [2013-09-15T15:59:42.374110 #7068] DEBUG -- :  (0.4ms) ROLLBACK
1236
+ D, [2013-09-15T15:59:42.375801 #7068] DEBUG -- :  (0.2ms) BEGIN
1237
+ D, [2013-09-15T15:59:42.377940 #7068] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1238
+ D, [2013-09-15T15:59:42.379039 #7068] DEBUG -- : Location Load (0.2ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1239
+ D, [2013-09-15T15:59:42.379773 #7068] DEBUG -- : CustomLocation Load (0.3ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1240
+ D, [2013-09-15T15:59:42.380393 #7068] DEBUG -- : Location Load (0.2ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1241
+ D, [2013-09-15T15:59:42.381286 #7068] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1242
+ D, [2013-09-15T15:59:42.382250 #7068] DEBUG -- : MockOrganization Load (0.3ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1243
+ D, [2013-09-15T15:59:42.383223 #7068] DEBUG -- : MockAddress Load (0.3ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1244
+ D, [2013-09-15T15:59:42.385779 #7068] DEBUG -- :  (0.2ms) ROLLBACK
1245
+ D, [2013-09-15T15:59:42.386223 #7068] DEBUG -- :  (0.1ms) BEGIN
1246
+ D, [2013-09-15T15:59:42.387021 #7068] DEBUG -- : Company Load (0.3ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1247
+ D, [2013-09-15T15:59:42.388002 #7068] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1248
+ D, [2013-09-15T15:59:42.389154 #7068] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1249
+ D, [2013-09-15T15:59:42.390475 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1250
+ D, [2013-09-15T15:59:42.391732 #7068] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1251
+ D, [2013-09-15T15:59:42.393004 #7068] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1252
+ D, [2013-09-15T15:59:42.394120 #7068] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1253
+ D, [2013-09-15T15:59:42.396193 #7068] DEBUG -- :  (0.3ms) ROLLBACK
1254
+ D, [2013-09-15T15:59:42.396908 #7068] DEBUG -- :  (0.2ms) BEGIN
1255
+ D, [2013-09-15T15:59:42.398040 #7068] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1256
+ D, [2013-09-15T15:59:42.399242 #7068] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1257
+ D, [2013-09-15T15:59:42.400374 #7068] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1258
+ D, [2013-09-15T15:59:42.401412 #7068] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1259
+ D, [2013-09-15T15:59:42.402689 #7068] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1260
+ D, [2013-09-15T15:59:42.404713 #7068] DEBUG -- : MockOrganization Load (0.6ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1261
+ D, [2013-09-15T15:59:42.405705 #7068] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1262
+ D, [2013-09-15T15:59:42.408679 #7068] DEBUG -- :  (0.4ms) ROLLBACK
1263
+ D, [2013-09-15T15:59:42.409633 #7068] DEBUG -- :  (0.3ms) BEGIN
1264
+ D, [2013-09-15T15:59:42.411101 #7068] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1265
+ D, [2013-09-15T15:59:42.412347 #7068] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1266
+ D, [2013-09-15T15:59:42.413565 #7068] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1267
+ D, [2013-09-15T15:59:42.414657 #7068] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1268
+ D, [2013-09-15T15:59:42.415726 #7068] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1269
+ D, [2013-09-15T15:59:42.416778 #7068] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1270
+ D, [2013-09-15T15:59:42.418005 #7068] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1271
+ D, [2013-09-15T15:59:42.422914 #7068] DEBUG -- :  (0.6ms) ROLLBACK
1272
+ D, [2013-09-15T15:59:42.424750 #7068] DEBUG -- :  (0.3ms) BEGIN
1273
+ D, [2013-09-15T15:59:42.427737 #7068] DEBUG -- : Company Load (1.0ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1274
+ D, [2013-09-15T15:59:42.430884 #7068] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1275
+ D, [2013-09-15T15:59:42.433387 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1276
+ D, [2013-09-15T15:59:42.435408 #7068] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1277
+ D, [2013-09-15T15:59:42.437482 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1278
+ D, [2013-09-15T15:59:42.440262 #7068] DEBUG -- : MockOrganization Load (0.9ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1279
+ D, [2013-09-15T15:59:42.443306 #7068] DEBUG -- : MockAddress Load (0.9ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1280
+ D, [2013-09-15T15:59:42.449986 #7068] DEBUG -- :  (0.5ms) ROLLBACK
1281
+ D, [2013-09-15T15:59:42.452143 #7068] DEBUG -- :  (0.3ms) BEGIN
1282
+ D, [2013-09-15T15:59:42.454726 #7068] DEBUG -- : Company Load (1.0ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1283
+ D, [2013-09-15T15:59:42.457506 #7068] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1284
+ D, [2013-09-15T15:59:42.460331 #7068] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1285
+ D, [2013-09-15T15:59:42.461670 #7068] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1286
+ D, [2013-09-15T15:59:42.464589 #7068] DEBUG -- : CustomLocation Load (1.0ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1287
+ D, [2013-09-15T15:59:42.466987 #7068] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1288
+ D, [2013-09-15T15:59:42.469058 #7068] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1289
+ D, [2013-09-15T15:59:42.475676 #7068] DEBUG -- :  (0.5ms) ROLLBACK
1290
+ D, [2013-09-15T15:59:42.477013 #7068] DEBUG -- :  (0.3ms) BEGIN
1291
+ D, [2013-09-15T15:59:42.479290 #7068] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1292
+ D, [2013-09-15T15:59:42.481479 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1293
+ D, [2013-09-15T15:59:42.484252 #7068] DEBUG -- : CustomLocation Load (0.9ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1294
+ D, [2013-09-15T15:59:42.487075 #7068] DEBUG -- : Location Load (1.1ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1295
+ D, [2013-09-15T15:59:42.490020 #7068] DEBUG -- : CustomLocation Load (1.0ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1296
+ D, [2013-09-15T15:59:42.493197 #7068] DEBUG -- : MockOrganization Load (0.9ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1297
+ D, [2013-09-15T15:59:42.496089 #7068] DEBUG -- : MockAddress Load (0.9ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1298
+ D, [2013-09-15T15:59:42.501890 #7068] DEBUG -- :  (0.4ms) ROLLBACK
1299
+ D, [2013-09-15T15:59:42.503608 #7068] DEBUG -- :  (0.4ms) BEGIN
1300
+ D, [2013-09-15T15:59:42.506524 #7068] DEBUG -- : Company Load (1.1ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1301
+ D, [2013-09-15T15:59:42.509020 #7068] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1302
+ D, [2013-09-15T15:59:42.511224 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1303
+ D, [2013-09-15T15:59:42.514031 #7068] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1304
+ D, [2013-09-15T15:59:42.517002 #7068] DEBUG -- : CustomLocation Load (1.1ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1305
+ D, [2013-09-15T15:59:42.519918 #7068] DEBUG -- : MockOrganization Load (1.0ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1306
+ D, [2013-09-15T15:59:42.522689 #7068] DEBUG -- : MockAddress Load (0.9ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1307
+ D, [2013-09-15T15:59:42.529710 #7068] DEBUG -- :  (0.5ms) ROLLBACK
1308
+ D, [2013-09-15T15:59:42.531225 #7068] DEBUG -- :  (0.3ms) BEGIN
1309
+ D, [2013-09-15T15:59:42.534080 #7068] DEBUG -- : Company Load (1.0ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1310
+ D, [2013-09-15T15:59:42.536848 #7068] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1311
+ D, [2013-09-15T15:59:42.539196 #7068] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1312
+ D, [2013-09-15T15:59:42.541165 #7068] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1313
+ D, [2013-09-15T15:59:42.543973 #7068] DEBUG -- : CustomLocation Load (0.9ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1314
+ D, [2013-09-15T15:59:42.546898 #7068] DEBUG -- : MockOrganization Load (1.1ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1315
+ D, [2013-09-15T15:59:42.549830 #7068] DEBUG -- : MockAddress Load (1.1ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1316
+ D, [2013-09-15T15:59:42.557383 #7068] DEBUG -- :  (0.6ms) ROLLBACK
1317
+ D, [2013-09-15T15:59:42.558895 #7068] DEBUG -- :  (0.3ms) BEGIN
1318
+ D, [2013-09-15T15:59:42.561085 #7068] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1319
+ D, [2013-09-15T15:59:42.563911 #7068] DEBUG -- : Location Load (1.1ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1320
+ D, [2013-09-15T15:59:42.566691 #7068] DEBUG -- : CustomLocation Load (1.0ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1321
+ D, [2013-09-15T15:59:42.568777 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1322
+ D, [2013-09-15T15:59:42.570855 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1323
+ D, [2013-09-15T15:59:42.573046 #7068] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1324
+ D, [2013-09-15T15:59:42.575936 #7068] DEBUG -- : MockAddress Load (0.9ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1325
+ D, [2013-09-15T15:59:42.583941 #7068] DEBUG -- :  (0.5ms) ROLLBACK
1326
+ D, [2013-09-15T15:59:42.585553 #7068] DEBUG -- :  (0.3ms) BEGIN
1327
+ D, [2013-09-15T15:59:42.587962 #7068] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1328
+ D, [2013-09-15T15:59:42.590676 #7068] DEBUG -- : Location Load (1.0ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1329
+ D, [2013-09-15T15:59:42.593560 #7068] DEBUG -- : CustomLocation Load (1.0ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1330
+ D, [2013-09-15T15:59:42.595841 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1331
+ D, [2013-09-15T15:59:42.597877 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1332
+ D, [2013-09-15T15:59:42.600581 #7068] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1333
+ D, [2013-09-15T15:59:42.602885 #7068] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1334
+ D, [2013-09-15T15:59:42.608127 #7068] DEBUG -- :  (0.2ms) ROLLBACK
1335
+ D, [2013-09-15T15:59:42.609180 #7068] DEBUG -- :  (0.3ms) BEGIN
1336
+ D, [2013-09-15T15:59:42.611794 #7068] DEBUG -- : Company Load (1.0ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1337
+ D, [2013-09-15T15:59:42.614563 #7068] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1338
+ D, [2013-09-15T15:59:42.617230 #7068] DEBUG -- : CustomLocation Load (0.9ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1339
+ D, [2013-09-15T15:59:42.619629 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1340
+ D, [2013-09-15T15:59:42.622270 #7068] DEBUG -- : CustomLocation Load (1.0ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1341
+ D, [2013-09-15T15:59:42.624968 #7068] DEBUG -- : MockOrganization Load (0.9ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1342
+ D, [2013-09-15T15:59:42.627360 #7068] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1343
+ D, [2013-09-15T15:59:42.658526 #7068] DEBUG -- :  (0.4ms) ROLLBACK
1344
+ D, [2013-09-15T15:59:42.659357 #7068] DEBUG -- :  (0.2ms) BEGIN
1345
+ D, [2013-09-15T15:59:42.661277 #7068] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1346
+ D, [2013-09-15T15:59:42.663324 #7068] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1347
+ D, [2013-09-15T15:59:42.665907 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1348
+ D, [2013-09-15T15:59:42.668556 #7068] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1349
+ D, [2013-09-15T15:59:42.671481 #7068] DEBUG -- : CustomLocation Load (1.0ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1350
+ D, [2013-09-15T15:59:42.674049 #7068] DEBUG -- : MockOrganization Load (0.6ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1351
+ D, [2013-09-15T15:59:42.676542 #7068] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1352
+ D, [2013-09-15T15:59:42.679781 #7068] DEBUG -- :  (0.1ms) ROLLBACK
1353
+ D, [2013-09-15T15:59:42.680410 #7068] DEBUG -- :  (0.2ms) BEGIN
1354
+ D, [2013-09-15T15:59:42.681110 #7068] DEBUG -- : Company Load (0.3ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1355
+ D, [2013-09-15T15:59:42.681741 #7068] DEBUG -- : Location Load (0.2ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1356
+ D, [2013-09-15T15:59:42.682636 #7068] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1357
+ D, [2013-09-15T15:59:42.683952 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1358
+ D, [2013-09-15T15:59:42.685282 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1359
+ D, [2013-09-15T15:59:42.686782 #7068] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1360
+ D, [2013-09-15T15:59:42.688846 #7068] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1361
+ D, [2013-09-15T15:59:42.693962 #7068] DEBUG -- :  (0.2ms) ROLLBACK
1362
+ D, [2013-09-15T15:59:42.694930 #7068] DEBUG -- :  (0.4ms) BEGIN
1363
+ D, [2013-09-15T15:59:42.697285 #7068] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1364
+ D, [2013-09-15T15:59:42.700016 #7068] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1365
+ D, [2013-09-15T15:59:42.702578 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1366
+ D, [2013-09-15T15:59:42.704870 #7068] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1367
+ D, [2013-09-15T15:59:42.707558 #7068] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1368
+ D, [2013-09-15T15:59:42.709700 #7068] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1369
+ D, [2013-09-15T15:59:42.711711 #7068] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1370
+ D, [2013-09-15T15:59:42.718882 #7068] DEBUG -- :  (0.4ms) ROLLBACK
1371
+ D, [2013-09-15T15:59:42.720225 #7068] DEBUG -- :  (0.3ms) BEGIN
1372
+ D, [2013-09-15T15:59:42.722447 #7068] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1373
+ D, [2013-09-15T15:59:42.725021 #7068] DEBUG -- : Location Load (1.0ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1374
+ D, [2013-09-15T15:59:42.727793 #7068] DEBUG -- : CustomLocation Load (1.0ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1375
+ D, [2013-09-15T15:59:42.731118 #7068] DEBUG -- : Location Load (1.1ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1376
+ D, [2013-09-15T15:59:42.733993 #7068] DEBUG -- : CustomLocation Load (0.9ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1377
+ D, [2013-09-15T15:59:42.736849 #7068] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1378
+ D, [2013-09-15T15:59:42.739190 #7068] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1379
+ D, [2013-09-15T15:59:42.746683 #7068] DEBUG -- :  (0.6ms) ROLLBACK
1380
+ D, [2013-09-15T15:59:42.748269 #7068] DEBUG -- :  (0.3ms) BEGIN
1381
+ D, [2013-09-15T15:59:42.750648 #7068] DEBUG -- : Company Load (1.0ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1382
+ D, [2013-09-15T15:59:42.752891 #7068] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1383
+ D, [2013-09-15T15:59:42.755121 #7068] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1384
+ D, [2013-09-15T15:59:42.757746 #7068] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1385
+ D, [2013-09-15T15:59:42.761201 #7068] DEBUG -- : CustomLocation Load (1.0ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1386
+ D, [2013-09-15T15:59:42.764374 #7068] DEBUG -- : MockOrganization Load (1.0ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1387
+ D, [2013-09-15T15:59:42.767102 #7068] DEBUG -- : MockAddress Load (0.9ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1388
+ D, [2013-09-15T15:59:42.775227 #7068] DEBUG -- :  (0.7ms) ROLLBACK
1389
+ D, [2013-09-15T15:59:42.776728 #7068] DEBUG -- :  (0.3ms) BEGIN
1390
+ D, [2013-09-15T15:59:42.779081 #7068] DEBUG -- : Company Load (0.9ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1391
+ D, [2013-09-15T15:59:42.781515 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1392
+ D, [2013-09-15T15:59:42.783829 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1393
+ D, [2013-09-15T15:59:42.786485 #7068] DEBUG -- : Location Load (1.0ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1394
+ D, [2013-09-15T15:59:42.789345 #7068] DEBUG -- : CustomLocation Load (1.0ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1395
+ D, [2013-09-15T15:59:42.792447 #7068] DEBUG -- : MockOrganization Load (1.0ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1396
+ D, [2013-09-15T15:59:42.795312 #7068] DEBUG -- : MockAddress Load (0.9ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1397
+ D, [2013-09-15T15:59:42.802478 #7068] DEBUG -- :  (0.4ms) ROLLBACK
1398
+ D, [2013-09-15T15:59:42.804261 #7068] DEBUG -- :  (0.4ms) BEGIN
1399
+ D, [2013-09-15T15:59:42.806983 #7068] DEBUG -- : Company Load (1.0ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1400
+ D, [2013-09-15T15:59:42.809358 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1401
+ D, [2013-09-15T15:59:42.811823 #7068] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1402
+ D, [2013-09-15T15:59:42.814089 #7068] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1403
+ D, [2013-09-15T15:59:42.816803 #7068] DEBUG -- : CustomLocation Load (0.9ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1404
+ D, [2013-09-15T15:59:42.819840 #7068] DEBUG -- : MockOrganization Load (1.1ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1405
+ D, [2013-09-15T15:59:42.823324 #7068] DEBUG -- : MockAddress Load (1.1ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1406
+ D, [2013-09-15T15:59:42.831056 #7068] DEBUG -- :  (0.6ms) ROLLBACK
1407
+ D, [2013-09-15T15:59:42.832545 #7068] DEBUG -- :  (0.4ms) BEGIN
1408
+ D, [2013-09-15T15:59:42.835446 #7068] DEBUG -- : Company Load (1.2ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1409
+ D, [2013-09-15T15:59:42.838266 #7068] DEBUG -- : Location Load (1.0ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1410
+ D, [2013-09-15T15:59:42.840540 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1411
+ D, [2013-09-15T15:59:42.842534 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1412
+ D, [2013-09-15T15:59:42.844536 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1413
+ D, [2013-09-15T15:59:42.847142 #7068] DEBUG -- : MockOrganization Load (0.9ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1414
+ D, [2013-09-15T15:59:42.849958 #7068] DEBUG -- : MockAddress Load (1.0ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1415
+ D, [2013-09-15T15:59:42.857120 #7068] DEBUG -- :  (0.5ms) ROLLBACK
1416
+ D, [2013-09-15T15:59:42.858594 #7068] DEBUG -- :  (0.3ms) BEGIN
1417
+ D, [2013-09-15T15:59:42.859704 #7068] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1418
+ D, [2013-09-15T15:59:42.860652 #7068] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1419
+ D, [2013-09-15T15:59:42.861447 #7068] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1420
+ D, [2013-09-15T15:59:42.862325 #7068] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1421
+ D, [2013-09-15T15:59:42.863539 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1422
+ D, [2013-09-15T15:59:42.864922 #7068] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1423
+ D, [2013-09-15T15:59:42.866677 #7068] DEBUG -- : MockAddress Load (0.9ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1424
+ D, [2013-09-15T15:59:42.873851 #7068] DEBUG -- :  (0.4ms) ROLLBACK
1425
+ D, [2013-09-15T15:59:42.875195 #7068] DEBUG -- :  (0.2ms) BEGIN
1426
+ D, [2013-09-15T15:59:42.877465 #7068] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1427
+ D, [2013-09-15T15:59:42.879714 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1428
+ D, [2013-09-15T15:59:42.882706 #7068] DEBUG -- : CustomLocation Load (1.0ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1429
+ D, [2013-09-15T15:59:42.885407 #7068] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1430
+ D, [2013-09-15T15:59:42.887671 #7068] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1431
+ D, [2013-09-15T15:59:42.889591 #7068] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1432
+ D, [2013-09-15T15:59:42.891995 #7068] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1433
+ D, [2013-09-15T15:59:42.895108 #7068] DEBUG -- :  (0.9ms) SELECT COUNT(*) FROM `mock_people`
1434
+ D, [2013-09-15T15:59:42.896817 #7068] DEBUG -- :  (0.5ms) SELECT COUNT(*) FROM `mock_people`
1435
+ D, [2013-09-15T15:59:42.897821 #7068] DEBUG -- :  (0.3ms) ROLLBACK
1436
+ D, [2013-09-15T15:59:42.899387 #7068] DEBUG -- :  (0.4ms) BEGIN
1437
+ D, [2013-09-15T15:59:42.901553 #7068] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1438
+ D, [2013-09-15T15:59:42.903802 #7068] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1439
+ D, [2013-09-15T15:59:42.906134 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1440
+ D, [2013-09-15T15:59:42.908315 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1441
+ D, [2013-09-15T15:59:42.910380 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1442
+ D, [2013-09-15T15:59:42.912482 #7068] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1443
+ D, [2013-09-15T15:59:42.914639 #7068] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1444
+ D, [2013-09-15T15:59:42.921288 #7068] DEBUG -- :  (0.5ms) ROLLBACK
1445
+ D, [2013-09-15T15:59:42.922627 #7068] DEBUG -- :  (0.3ms) BEGIN
1446
+ D, [2013-09-15T15:59:42.924667 #7068] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1447
+ D, [2013-09-15T15:59:42.926698 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1448
+ D, [2013-09-15T15:59:42.928839 #7068] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1449
+ D, [2013-09-15T15:59:42.931004 #7068] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1450
+ D, [2013-09-15T15:59:42.933147 #7068] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1451
+ D, [2013-09-15T15:59:42.935300 #7068] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1452
+ D, [2013-09-15T15:59:42.937489 #7068] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1453
+ D, [2013-09-15T15:59:42.940631 #7068] DEBUG -- : Location Load (1.1ms) SELECT `locations`.* FROM `locations` WHERE (locations.lat>32.91663 AND locations.lat<32.96302 AND locations.lng>-96.982841 AND locations.lng<-96.919495)
1454
+ D, [2013-09-15T15:59:42.943586 #7068] DEBUG -- :  (1.3ms) SELECT COUNT(*) FROM `locations` WHERE (locations.lat>32.91663 AND locations.lat<32.96302 AND locations.lng>-96.982841 AND locations.lng<-96.919495)
1455
+ D, [2013-09-15T15:59:42.944919 #7068] DEBUG -- :  (0.5ms) ROLLBACK
1456
+ D, [2013-09-15T15:59:42.946617 #7068] DEBUG -- :  (0.4ms) BEGIN
1457
+ D, [2013-09-15T15:59:42.948967 #7068] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1458
+ D, [2013-09-15T15:59:42.951106 #7068] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1459
+ D, [2013-09-15T15:59:42.953871 #7068] DEBUG -- : CustomLocation Load (1.0ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1460
+ D, [2013-09-15T15:59:42.956650 #7068] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1461
+ D, [2013-09-15T15:59:42.959080 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1462
+ D, [2013-09-15T15:59:42.961102 #7068] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1463
+ D, [2013-09-15T15:59:42.963314 #7068] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1464
+ D, [2013-09-15T15:59:42.970957 #7068] DEBUG -- :  (0.5ms) ROLLBACK
1465
+ D, [2013-09-15T15:59:42.972658 #7068] DEBUG -- :  (0.3ms) BEGIN
1466
+ D, [2013-09-15T15:59:42.975275 #7068] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1467
+ D, [2013-09-15T15:59:42.977449 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1468
+ D, [2013-09-15T15:59:42.979778 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1469
+ D, [2013-09-15T15:59:42.981772 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1470
+ D, [2013-09-15T15:59:42.983742 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1471
+ D, [2013-09-15T15:59:42.985920 #7068] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1472
+ D, [2013-09-15T15:59:42.988228 #7068] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1473
+ D, [2013-09-15T15:59:42.991391 #7068] DEBUG -- : Location Load (1.1ms) 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)
1474
+ D, [2013-09-15T15:59:42.992964 #7068] DEBUG -- :  (0.4ms) ROLLBACK
1475
+ D, [2013-09-15T15:59:42.994602 #7068] DEBUG -- :  (0.3ms) BEGIN
1476
+ D, [2013-09-15T15:59:42.997608 #7068] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1477
+ D, [2013-09-15T15:59:43.000059 #7068] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1478
+ D, [2013-09-15T15:59:43.003203 #7068] DEBUG -- : CustomLocation Load (1.1ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1479
+ D, [2013-09-15T15:59:43.006686 #7068] DEBUG -- : Location Load (1.0ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1480
+ D, [2013-09-15T15:59:43.009357 #7068] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1481
+ D, [2013-09-15T15:59:43.012068 #7068] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1482
+ D, [2013-09-15T15:59:43.014768 #7068] DEBUG -- : MockAddress Load (0.9ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1483
+ D, [2013-09-15T15:59:43.043643 #7068] 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)
1484
+ D, [2013-09-15T15:59:43.044324 #7068] DEBUG -- :  (0.3ms) ROLLBACK
1485
+ D, [2013-09-15T15:59:43.045054 #7068] DEBUG -- :  (0.3ms) BEGIN
1486
+ D, [2013-09-15T15:59:43.046161 #7068] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1487
+ D, [2013-09-15T15:59:43.047284 #7068] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1488
+ D, [2013-09-15T15:59:43.049613 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1489
+ D, [2013-09-15T15:59:43.051681 #7068] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1490
+ D, [2013-09-15T15:59:43.053670 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1491
+ D, [2013-09-15T15:59:43.055126 #7068] DEBUG -- : MockOrganization Load (0.2ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1492
+ D, [2013-09-15T15:59:43.057175 #7068] DEBUG -- : MockAddress Load (0.5ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1493
+ D, [2013-09-15T15:59:43.059677 #7068] 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) AND (id !=1)
1494
+ D, [2013-09-15T15:59:43.060944 #7068] DEBUG -- :  (0.4ms) ROLLBACK
1495
+ D, [2013-09-15T15:59:43.062485 #7068] DEBUG -- :  (0.4ms) BEGIN
1496
+ D, [2013-09-15T15:59:43.064365 #7068] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1497
+ D, [2013-09-15T15:59:43.066332 #7068] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1498
+ D, [2013-09-15T15:59:43.068280 #7068] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1499
+ D, [2013-09-15T15:59:43.070211 #7068] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1500
+ D, [2013-09-15T15:59:43.071472 #7068] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1501
+ D, [2013-09-15T15:59:43.072989 #7068] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1502
+ D, [2013-09-15T15:59:43.074154 #7068] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1503
+ D, [2013-09-15T15:59:43.075885 #7068] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` WHERE (locations.lat>32.91663 AND locations.lat<32.96302 AND locations.lng>-96.982841 AND locations.lng<-96.919495)
1504
+ D, [2013-09-15T15:59:43.078091 #7068] DEBUG -- :  (0.9ms) SELECT COUNT(*) FROM `locations` WHERE (locations.lat>32.91663 AND locations.lat<32.96302 AND locations.lng>-96.982841 AND locations.lng<-96.919495)
1505
+ D, [2013-09-15T15:59:43.079330 #7068] DEBUG -- :  (0.4ms) ROLLBACK
1506
+ D, [2013-09-15T15:59:43.080951 #7068] DEBUG -- :  (0.4ms) BEGIN
1507
+ D, [2013-09-15T15:59:43.083018 #7068] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1508
+ D, [2013-09-15T15:59:43.085152 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1509
+ D, [2013-09-15T15:59:43.087493 #7068] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1510
+ D, [2013-09-15T15:59:43.089478 #7068] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1511
+ D, [2013-09-15T15:59:43.091580 #7068] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1512
+ D, [2013-09-15T15:59:43.093759 #7068] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1513
+ D, [2013-09-15T15:59:43.095980 #7068] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1514
+ D, [2013-09-15T15:59:43.101571 #7068] DEBUG -- :  (0.4ms) ROLLBACK
1515
+ D, [2013-09-15T15:59:43.102946 #7068] DEBUG -- :  (0.3ms) BEGIN
1516
+ D, [2013-09-15T15:59:43.105012 #7068] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1517
+ D, [2013-09-15T15:59:43.107995 #7068] DEBUG -- : Location Load (1.1ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1518
+ D, [2013-09-15T15:59:43.110979 #7068] DEBUG -- : CustomLocation Load (1.0ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1519
+ D, [2013-09-15T15:59:43.113862 #7068] DEBUG -- : Location Load (1.0ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1520
+ D, [2013-09-15T15:59:43.116581 #7068] DEBUG -- : CustomLocation Load (0.9ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1521
+ D, [2013-09-15T15:59:43.119118 #7068] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1522
+ D, [2013-09-15T15:59:43.121762 #7068] DEBUG -- : MockAddress Load (0.9ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1523
+ D, [2013-09-15T15:59:43.128302 #7068] DEBUG -- :  (0.5ms) ROLLBACK
1524
+ D, [2013-09-15T15:59:43.129701 #7068] DEBUG -- :  (0.3ms) BEGIN
1525
+ D, [2013-09-15T15:59:43.131927 #7068] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1526
+ D, [2013-09-15T15:59:43.133964 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1527
+ D, [2013-09-15T15:59:43.136268 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1528
+ D, [2013-09-15T15:59:43.139701 #7068] DEBUG -- : Location Load (1.1ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1529
+ D, [2013-09-15T15:59:43.142673 #7068] DEBUG -- : CustomLocation Load (1.0ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1530
+ D, [2013-09-15T15:59:43.145794 #7068] DEBUG -- : MockOrganization Load (1.1ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1531
+ D, [2013-09-15T15:59:43.148615 #7068] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1532
+ D, [2013-09-15T15:59:43.155769 #7068] DEBUG -- :  (0.5ms) ROLLBACK
1533
+ D, [2013-09-15T15:59:43.157386 #7068] DEBUG -- :  (0.3ms) BEGIN
1534
+ D, [2013-09-15T15:59:43.160292 #7068] DEBUG -- : Company Load (0.9ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1535
+ D, [2013-09-15T15:59:43.162664 #7068] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1536
+ D, [2013-09-15T15:59:43.165219 #7068] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1537
+ D, [2013-09-15T15:59:43.167418 #7068] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1538
+ D, [2013-09-15T15:59:43.169914 #7068] DEBUG -- : CustomLocation Load (0.9ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1539
+ D, [2013-09-15T15:59:43.172899 #7068] DEBUG -- : MockOrganization Load (1.1ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1540
+ D, [2013-09-15T15:59:43.176023 #7068] DEBUG -- : MockAddress Load (1.1ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1541
+ D, [2013-09-15T15:59:43.178779 #7068] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` WHERE (company_id = 1)
1542
+ D, [2013-09-15T15:59:43.216878 #7068] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` IN (1)
1543
+ D, [2013-09-15T15:59:43.217944 #7068] DEBUG -- :  (0.3ms) ROLLBACK
1544
+ D, [2013-09-15T15:59:43.218815 #7068] DEBUG -- :  (0.3ms) BEGIN
1545
+ D, [2013-09-15T15:59:43.219951 #7068] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1546
+ D, [2013-09-15T15:59:43.220973 #7068] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1547
+ D, [2013-09-15T15:59:43.221990 #7068] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1548
+ D, [2013-09-15T15:59:43.222959 #7068] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1549
+ D, [2013-09-15T15:59:43.223926 #7068] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1550
+ D, [2013-09-15T15:59:43.224925 #7068] DEBUG -- : MockOrganization Load (0.6ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1551
+ D, [2013-09-15T15:59:43.225960 #7068] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1552
+ D, [2013-09-15T15:59:43.228455 #7068] DEBUG -- :  (0.3ms) ROLLBACK
1553
+ D, [2013-09-15T15:59:43.229541 #7068] DEBUG -- :  (0.3ms) BEGIN
1554
+ D, [2013-09-15T15:59:43.231990 #7068] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1555
+ D, [2013-09-15T15:59:43.234250 #7068] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1556
+ D, [2013-09-15T15:59:43.236591 #7068] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1557
+ D, [2013-09-15T15:59:43.238332 #7068] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1558
+ D, [2013-09-15T15:59:43.240230 #7068] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1559
+ D, [2013-09-15T15:59:43.242102 #7068] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1560
+ D, [2013-09-15T15:59:43.243165 #7068] DEBUG -- : MockAddress Load (0.3ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1561
+ D, [2013-09-15T15:59:43.245581 #7068] DEBUG -- :  (0.2ms) ROLLBACK
1562
+ D, [2013-09-15T15:59:43.246144 #7068] DEBUG -- :  (0.1ms) BEGIN
1563
+ D, [2013-09-15T15:59:43.247184 #7068] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1564
+ D, [2013-09-15T15:59:43.248352 #7068] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1565
+ D, [2013-09-15T15:59:43.249549 #7068] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1566
+ D, [2013-09-15T15:59:43.250690 #7068] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1567
+ D, [2013-09-15T15:59:43.252048 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1568
+ D, [2013-09-15T15:59:43.253308 #7068] DEBUG -- : MockOrganization Load (0.6ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1569
+ D, [2013-09-15T15:59:43.254364 #7068] DEBUG -- : MockAddress Load (0.5ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1570
+ D, [2013-09-15T15:59:43.257013 #7068] DEBUG -- :  (0.3ms) ROLLBACK
1571
+ D, [2013-09-15T15:59:43.258022 #7068] DEBUG -- :  (0.3ms) BEGIN
1572
+ D, [2013-09-15T15:59:43.261252 #7068] DEBUG -- : Company Load (1.0ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1573
+ D, [2013-09-15T15:59:43.264276 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1574
+ D, [2013-09-15T15:59:43.266667 #7068] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1575
+ D, [2013-09-15T15:59:43.268453 #7068] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1576
+ D, [2013-09-15T15:59:43.270209 #7068] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1577
+ D, [2013-09-15T15:59:43.272146 #7068] DEBUG -- : MockOrganization Load (0.6ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1578
+ D, [2013-09-15T15:59:43.273189 #7068] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1579
+ D, [2013-09-15T15:59:43.277506 #7068] DEBUG -- :  (0.4ms) ROLLBACK
1580
+ D, [2013-09-15T15:59:43.278669 #7068] DEBUG -- :  (0.1ms) BEGIN
1581
+ D, [2013-09-15T15:59:43.280146 #7068] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1582
+ D, [2013-09-15T15:59:43.281253 #7068] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1583
+ D, [2013-09-15T15:59:43.282597 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1584
+ D, [2013-09-15T15:59:43.283959 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1585
+ D, [2013-09-15T15:59:43.285283 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1586
+ D, [2013-09-15T15:59:43.286608 #7068] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1587
+ D, [2013-09-15T15:59:43.287747 #7068] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1588
+ D, [2013-09-15T15:59:43.290289 #7068] DEBUG -- :  (0.3ms) ROLLBACK
1589
+ D, [2013-09-15T15:59:43.291307 #7068] DEBUG -- :  (0.3ms) BEGIN
1590
+ D, [2013-09-15T15:59:43.293981 #7068] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1591
+ D, [2013-09-15T15:59:43.296852 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1592
+ D, [2013-09-15T15:59:43.299363 #7068] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1593
+ D, [2013-09-15T15:59:43.301178 #7068] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1594
+ D, [2013-09-15T15:59:43.302691 #7068] DEBUG -- : CustomLocation Load (0.3ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1595
+ D, [2013-09-15T15:59:43.303318 #7068] DEBUG -- : MockOrganization Load (0.2ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1596
+ D, [2013-09-15T15:59:43.304072 #7068] DEBUG -- : MockAddress Load (0.3ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1597
+ D, [2013-09-15T15:59:43.310445 #7068] DEBUG -- :  (0.2ms) ROLLBACK
1598
+ D, [2013-09-15T15:59:43.310956 #7068] DEBUG -- :  (0.1ms) BEGIN
1599
+ D, [2013-09-15T15:59:43.311903 #7068] DEBUG -- : Company Load (0.3ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1600
+ D, [2013-09-15T15:59:43.313091 #7068] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1601
+ D, [2013-09-15T15:59:43.314816 #7068] DEBUG -- : CustomLocation Load (0.9ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1602
+ D, [2013-09-15T15:59:43.317326 #7068] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1603
+ D, [2013-09-15T15:59:43.319552 #7068] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1604
+ D, [2013-09-15T15:59:43.321754 #7068] DEBUG -- : MockOrganization Load (0.6ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1605
+ D, [2013-09-15T15:59:43.323680 #7068] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1606
+ D, [2013-09-15T15:59:43.328266 #7068] DEBUG -- :  (0.2ms) ROLLBACK
1607
+ D, [2013-09-15T15:59:43.328972 #7068] DEBUG -- :  (0.1ms) BEGIN
1608
+ D, [2013-09-15T15:59:43.329943 #7068] DEBUG -- : Company Load (0.3ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1609
+ D, [2013-09-15T15:59:43.330693 #7068] DEBUG -- : Location Load (0.3ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1610
+ D, [2013-09-15T15:59:43.331468 #7068] DEBUG -- : CustomLocation Load (0.3ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1611
+ D, [2013-09-15T15:59:43.332138 #7068] DEBUG -- : Location Load (0.2ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1612
+ D, [2013-09-15T15:59:43.332824 #7068] DEBUG -- : CustomLocation Load (0.3ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1613
+ D, [2013-09-15T15:59:43.333554 #7068] DEBUG -- : MockOrganization Load (0.3ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1614
+ D, [2013-09-15T15:59:43.334290 #7068] DEBUG -- : MockAddress Load (0.3ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1615
+ D, [2013-09-15T15:59:43.336651 #7068] DEBUG -- :  (0.2ms) ROLLBACK
1616
+ D, [2013-09-15T15:59:43.337255 #7068] DEBUG -- :  (0.1ms) BEGIN
1617
+ D, [2013-09-15T15:59:43.338226 #7068] DEBUG -- : Company Load (0.3ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1618
+ D, [2013-09-15T15:59:43.338996 #7068] DEBUG -- : Location Load (0.2ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1619
+ D, [2013-09-15T15:59:43.340657 #7068] DEBUG -- : CustomLocation Load (0.3ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1620
+ D, [2013-09-15T15:59:43.342882 #7068] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1621
+ D, [2013-09-15T15:59:43.345128 #7068] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1622
+ D, [2013-09-15T15:59:43.346197 #7068] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1623
+ D, [2013-09-15T15:59:43.347272 #7068] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1624
+ D, [2013-09-15T15:59:43.348549 #7068] DEBUG -- :  (0.2ms) ROLLBACK
1625
+ D, [2013-09-15T15:59:43.349259 #7068] DEBUG -- :  (0.3ms) BEGIN
1626
+ D, [2013-09-15T15:59:43.350842 #7068] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1627
+ D, [2013-09-15T15:59:43.353171 #7068] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1628
+ D, [2013-09-15T15:59:43.355526 #7068] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1629
+ D, [2013-09-15T15:59:43.358232 #7068] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1630
+ D, [2013-09-15T15:59:43.360686 #7068] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1631
+ D, [2013-09-15T15:59:43.362590 #7068] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1632
+ D, [2013-09-15T15:59:43.363361 #7068] DEBUG -- : MockAddress Load (0.2ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1633
+ D, [2013-09-15T15:59:43.385736 #7068] DEBUG -- :  (0.3ms) ROLLBACK
1634
+ D, [2013-09-15T15:59:43.386476 #7068] DEBUG -- :  (0.1ms) BEGIN
1635
+ D, [2013-09-15T15:59:43.387622 #7068] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1636
+ D, [2013-09-15T15:59:43.388557 #7068] DEBUG -- : Location Load (0.3ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1637
+ D, [2013-09-15T15:59:43.389472 #7068] DEBUG -- : CustomLocation Load (0.3ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1638
+ D, [2013-09-15T15:59:43.390325 #7068] DEBUG -- : Location Load (0.3ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1639
+ D, [2013-09-15T15:59:43.390981 #7068] DEBUG -- : CustomLocation Load (0.2ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1640
+ D, [2013-09-15T15:59:43.391621 #7068] DEBUG -- : MockOrganization Load (0.2ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1641
+ D, [2013-09-15T15:59:43.392252 #7068] DEBUG -- : MockAddress Load (0.2ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1642
+ D, [2013-09-15T15:59:43.402954 #7068] DEBUG -- :  (0.2ms) ROLLBACK
1643
+ D, [2013-09-15T15:59:43.403499 #7068] DEBUG -- :  (0.1ms) BEGIN
1644
+ D, [2013-09-15T15:59:43.404496 #7068] DEBUG -- : Company Load (0.3ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1645
+ D, [2013-09-15T15:59:43.406570 #7068] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1646
+ D, [2013-09-15T15:59:43.408423 #7068] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1647
+ D, [2013-09-15T15:59:43.409107 #7068] DEBUG -- : Location Load (0.2ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1648
+ D, [2013-09-15T15:59:43.409741 #7068] DEBUG -- : CustomLocation Load (0.2ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1649
+ D, [2013-09-15T15:59:43.410479 #7068] DEBUG -- : MockOrganization Load (0.3ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1650
+ D, [2013-09-15T15:59:43.412645 #7068] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1651
+ D, [2013-09-15T15:59:43.421462 #7068] DEBUG -- :  (0.3ms) ROLLBACK
1652
+ D, [2013-09-15T15:59:43.423069 #7068] DEBUG -- :  (0.3ms) BEGIN
1653
+ D, [2013-09-15T15:59:43.425612 #7068] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1654
+ D, [2013-09-15T15:59:43.427572 #7068] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1655
+ D, [2013-09-15T15:59:43.429839 #7068] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1656
+ D, [2013-09-15T15:59:43.432024 #7068] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1657
+ D, [2013-09-15T15:59:43.433289 #7068] DEBUG -- : CustomLocation Load (0.2ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1658
+ D, [2013-09-15T15:59:43.434258 #7068] DEBUG -- : MockOrganization Load (0.3ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1659
+ D, [2013-09-15T15:59:43.437163 #7068] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1660
+ D, [2013-09-15T15:59:43.465246 #7068] DEBUG -- :  (0.4ms) ROLLBACK
1661
+ D, [2013-09-15T15:59:43.466235 #7068] DEBUG -- :  (0.3ms) BEGIN
1662
+ D, [2013-09-15T15:59:43.467774 #7068] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1663
+ D, [2013-09-15T15:59:43.469069 #7068] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1664
+ D, [2013-09-15T15:59:43.470524 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1665
+ D, [2013-09-15T15:59:43.472845 #7068] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1666
+ D, [2013-09-15T15:59:43.474999 #7068] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1667
+ D, [2013-09-15T15:59:43.478062 #7068] DEBUG -- : MockOrganization Load (1.2ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1668
+ D, [2013-09-15T15:59:43.480863 #7068] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1669
+ D, [2013-09-15T15:59:43.489907 #7068] DEBUG -- :  (0.3ms) ROLLBACK
1670
+ D, [2013-09-15T15:59:43.491615 #7068] DEBUG -- :  (0.3ms) BEGIN
1671
+ D, [2013-09-15T15:59:43.493669 #7068] DEBUG -- : Company Load (0.3ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1672
+ D, [2013-09-15T15:59:43.495015 #7068] DEBUG -- : Location Load (0.3ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1673
+ D, [2013-09-15T15:59:43.498297 #7068] DEBUG -- : CustomLocation Load (1.2ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1674
+ D, [2013-09-15T15:59:43.501186 #7068] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1675
+ D, [2013-09-15T15:59:43.503789 #7068] DEBUG -- : CustomLocation Load (0.9ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1676
+ D, [2013-09-15T15:59:43.506224 #7068] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1677
+ D, [2013-09-15T15:59:43.508589 #7068] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1678
+ D, [2013-09-15T15:59:43.518819 #7068] DEBUG -- :  (0.6ms) ROLLBACK
1679
+ D, [2013-09-15T15:59:43.520617 #7068] DEBUG -- :  (0.4ms) BEGIN
1680
+ D, [2013-09-15T15:59:43.523709 #7068] DEBUG -- : Company Load (0.8ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1681
+ D, [2013-09-15T15:59:43.525198 #7068] DEBUG -- : Location Load (0.2ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1682
+ D, [2013-09-15T15:59:43.527000 #7068] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1683
+ D, [2013-09-15T15:59:43.528940 #7068] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1684
+ D, [2013-09-15T15:59:43.531770 #7068] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1685
+ D, [2013-09-15T15:59:43.534641 #7068] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1686
+ D, [2013-09-15T15:59:43.537220 #7068] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1687
+ D, [2013-09-15T15:59:43.543764 #7068] DEBUG -- :  (0.2ms) ROLLBACK
1688
+ D, [2013-09-15T15:59:43.544391 #7068] DEBUG -- :  (0.1ms) BEGIN
1689
+ D, [2013-09-15T15:59:43.545179 #7068] DEBUG -- : Company Load (0.3ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1690
+ D, [2013-09-15T15:59:43.545800 #7068] DEBUG -- : Location Load (0.2ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1691
+ D, [2013-09-15T15:59:43.546402 #7068] DEBUG -- : CustomLocation Load (0.2ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1692
+ D, [2013-09-15T15:59:43.546976 #7068] DEBUG -- : Location Load (0.2ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1693
+ D, [2013-09-15T15:59:43.547584 #7068] DEBUG -- : CustomLocation Load (0.2ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1694
+ D, [2013-09-15T15:59:43.548150 #7068] DEBUG -- : MockOrganization Load (0.2ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1695
+ D, [2013-09-15T15:59:43.548699 #7068] DEBUG -- : MockAddress Load (0.2ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1696
+ D, [2013-09-15T15:59:43.551019 #7068] DEBUG -- :  (0.1ms) ROLLBACK
1697
+ D, [2013-09-15T16:00:46.026972 #7165] DEBUG -- :  (6.4ms) DROP TABLE `companies`
1698
+ D, [2013-09-15T16:00:46.053125 #7165] DEBUG -- :  (25.8ms) CREATE TABLE `companies` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB
1699
+ D, [2013-09-15T16:00:46.069019 #7165] DEBUG -- :  (14.2ms) DROP TABLE `locations`
1700
+ D, [2013-09-15T16:00:46.125983 #7165] DEBUG -- :  (55.9ms) 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
1701
+ D, [2013-09-15T16:00:46.137745 #7165] DEBUG -- :  (9.5ms) DROP TABLE `custom_locations`
1702
+ D, [2013-09-15T16:00:46.190080 #7165] DEBUG -- :  (51.2ms) 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
1703
+ D, [2013-09-15T16:00:46.199300 #7165] DEBUG -- :  (7.2ms) DROP TABLE `stores`
1704
+ D, [2013-09-15T16:00:46.255659 #7165] DEBUG -- :  (55.6ms) 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
1705
+ D, [2013-09-15T16:00:46.272031 #7165] DEBUG -- :  (14.3ms) DROP TABLE `mock_organizations`
1706
+ D, [2013-09-15T16:00:46.332585 #7165] DEBUG -- :  (59.8ms) CREATE TABLE `mock_organizations` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB
1707
+ D, [2013-09-15T16:00:46.344616 #7165] DEBUG -- :  (10.0ms) DROP TABLE `mock_addresses`
1708
+ D, [2013-09-15T16:00:46.408284 #7165] DEBUG -- :  (62.8ms) 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
1709
+ D, [2013-09-15T16:00:46.421381 #7165] DEBUG -- :  (11.8ms) DROP TABLE `mock_houses`
1710
+ D, [2013-09-15T16:00:46.489189 #7165] DEBUG -- :  (67.4ms) 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
1711
+ D, [2013-09-15T16:00:46.501956 #7165] DEBUG -- :  (11.2ms) DROP TABLE `mock_families`
1712
+ D, [2013-09-15T16:00:46.561946 #7165] DEBUG -- :  (59.5ms) CREATE TABLE `mock_families` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `mock_house_id` int(11)) ENGINE=InnoDB
1713
+ D, [2013-09-15T16:00:46.579310 #7165] DEBUG -- :  (15.9ms) DROP TABLE `mock_people`
1714
+ D, [2013-09-15T16:00:46.639739 #7165] DEBUG -- :  (60.0ms) CREATE TABLE `mock_people` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `mock_family_id` int(11)) ENGINE=InnoDB
1715
+ D, [2013-09-15T16:00:46.646758 #7165] DEBUG -- :  (0.4ms) SELECT version FROM `schema_migrations`
1716
+ D, [2013-09-15T16:00:47.206276 #7165] DEBUG -- :  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS
1717
+ D, [2013-09-15T16:00:47.207727 #7165] DEBUG -- :  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
1718
+ D, [2013-09-15T16:00:47.216044 #7165] DEBUG -- :  (0.3ms) BEGIN
1719
+ D, [2013-09-15T16:00:47.221379 #7165] DEBUG -- : Fixture Delete (0.4ms) DELETE FROM `mock_families`
1720
+ D, [2013-09-15T16:00:47.222036 #7165] DEBUG -- : Fixture Insert (0.5ms) INSERT INTO `mock_families` (`id`, `mock_house_id`) VALUES (964944192, 185830233)
1721
+ D, [2013-09-15T16:00:47.226326 #7165] DEBUG -- : Fixture Delete (0.3ms) DELETE FROM `companies`
1722
+ D, [2013-09-15T16:00:47.227104 #7165] DEBUG -- : Fixture Insert (0.5ms) INSERT INTO `companies` (`id`, `name`) VALUES (1, 'Starbucks')
1723
+ D, [2013-09-15T16:00:47.227876 #7165] DEBUG -- : Fixture Insert (0.5ms) INSERT INTO `companies` (`id`, `name`) VALUES (2, 'Barnes & Noble')
1724
+ D, [2013-09-15T16:00:47.229185 #7165] DEBUG -- : Fixture Delete (0.7ms) DELETE FROM `stores`
1725
+ D, [2013-09-15T16:00:47.237026 #7165] DEBUG -- : Fixture Delete (0.4ms) DELETE FROM `mock_addresses`
1726
+ D, [2013-09-15T16:00:47.238471 #7165] DEBUG -- : Fixture Insert (0.7ms) 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)
1727
+ D, [2013-09-15T16:00:47.239782 #7165] DEBUG -- : Fixture Insert (0.7ms) 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)
1728
+ D, [2013-09-15T16:00:47.246459 #7165] DEBUG -- : Fixture Delete (0.5ms) DELETE FROM `mock_people`
1729
+ D, [2013-09-15T16:00:47.247618 #7165] DEBUG -- : Fixture Insert (0.5ms) INSERT INTO `mock_people` (`id`, `mock_family_id`) VALUES (254095803, 964944192)
1730
+ D, [2013-09-15T16:00:47.248554 #7165] DEBUG -- : Fixture Insert (0.5ms) INSERT INTO `mock_people` (`id`, `mock_family_id`) VALUES (450002714, 964944192)
1731
+ D, [2013-09-15T16:00:47.256540 #7165] DEBUG -- : Fixture Delete (0.4ms) DELETE FROM `custom_locations`
1732
+ D, [2013-09-15T16:00:47.257781 #7165] DEBUG -- : Fixture Insert (0.6ms) 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)
1733
+ D, [2013-09-15T16:00:47.258999 #7165] 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)
1734
+ D, [2013-09-15T16:00:47.260275 #7165] 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)
1735
+ D, [2013-09-15T16:00:47.261512 #7165] DEBUG -- : Fixture Insert (0.6ms) 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)
1736
+ D, [2013-09-15T16:00:47.262797 #7165] 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)
1737
+ D, [2013-09-15T16:00:47.264143 #7165] DEBUG -- : Fixture Insert (0.7ms) 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)
1738
+ D, [2013-09-15T16:00:47.271581 #7165] DEBUG -- : Fixture Delete (0.5ms) DELETE FROM `mock_houses`
1739
+ D, [2013-09-15T16:00:47.272829 #7165] DEBUG -- : Fixture Insert (0.7ms) INSERT INTO `mock_houses` (`address`, `lat`, `lng`, `id`) VALUES ('106 N Denton Tap Rd', 32.969527, -96.990159, 966034833)
1740
+ D, [2013-09-15T16:00:47.274003 #7165] DEBUG -- : Fixture Insert (0.6ms) INSERT INTO `mock_houses` (`address`, `lat`, `lng`, `id`) VALUES ('5904 N Macarthur Blvd', 32.895155, -96.958444, 185830233)
1741
+ D, [2013-09-15T16:00:47.282775 #7165] DEBUG -- : Fixture Delete (0.5ms) DELETE FROM `locations`
1742
+ D, [2013-09-15T16:00:47.284081 #7165] DEBUG -- : Fixture Insert (0.7ms) 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)
1743
+ D, [2013-09-15T16:00:47.285182 #7165] DEBUG -- : Fixture Insert (0.5ms) 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)
1744
+ D, [2013-09-15T16:00:47.286182 #7165] DEBUG -- : Fixture Insert (0.6ms) 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)
1745
+ D, [2013-09-15T16:00:47.287582 #7165] DEBUG -- : Fixture Insert (0.7ms) 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)
1746
+ D, [2013-09-15T16:00:47.289045 #7165] DEBUG -- : Fixture Insert (0.7ms) 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)
1747
+ D, [2013-09-15T16:00:47.290272 #7165] DEBUG -- : Fixture Insert (0.6ms) 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)
1748
+ D, [2013-09-15T16:00:47.297086 #7165] DEBUG -- : Fixture Delete (0.5ms) DELETE FROM `mock_organizations`
1749
+ D, [2013-09-15T16:00:47.298200 #7165] DEBUG -- : Fixture Insert (0.5ms) INSERT INTO `mock_organizations` (`name`, `id`) VALUES ('Starbucks', 378604642)
1750
+ D, [2013-09-15T16:00:47.299283 #7165] DEBUG -- : Fixture Insert (0.5ms) INSERT INTO `mock_organizations` (`name`, `id`) VALUES ('Barnes & Noble', 1064917858)
1751
+ D, [2013-09-15T16:00:47.306250 #7165] DEBUG -- :  (6.5ms) COMMIT
1752
+ D, [2013-09-15T16:00:47.307580 #7165] DEBUG -- :  (0.5ms) SET FOREIGN_KEY_CHECKS = 1
1753
+ D, [2013-09-15T16:00:47.308624 #7165] DEBUG -- :  (0.3ms) BEGIN
1754
+ D, [2013-09-15T16:00:47.313376 #7165] DEBUG -- : Company Load (0.9ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1755
+ D, [2013-09-15T16:00:47.324279 #7165] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1756
+ D, [2013-09-15T16:00:47.336321 #7165] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1757
+ D, [2013-09-15T16:00:47.348796 #7165] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1758
+ D, [2013-09-15T16:00:47.349881 #7165] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1759
+ D, [2013-09-15T16:00:47.350923 #7165] DEBUG -- : MockOrganization Load (0.6ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1760
+ D, [2013-09-15T16:00:47.355329 #7165] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1761
+ D, [2013-09-15T16:00:47.391595 #7165] DEBUG -- : Location Load (1.1ms) SELECT `locations`.* FROM `locations` WHERE ((
1762
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
1763
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
1764
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
1765
+ <= 5)) AND (city = 'Coppell')
1766
+ D, [2013-09-15T16:00:47.393095 #7165] DEBUG -- :  (0.9ms) SELECT COUNT(*) FROM `locations` WHERE ((
1767
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
1768
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
1769
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
1770
+ <= 5)) AND (city = 'Coppell')
1771
+ D, [2013-09-15T16:00:47.393771 #7165] DEBUG -- :  (0.3ms) ROLLBACK
1772
+ D, [2013-09-15T16:00:47.394608 #7165] DEBUG -- :  (0.2ms) BEGIN
1773
+ D, [2013-09-15T16:00:47.395788 #7165] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1774
+ D, [2013-09-15T16:00:47.396736 #7165] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1775
+ D, [2013-09-15T16:00:47.397722 #7165] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1776
+ D, [2013-09-15T16:00:47.398769 #7165] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1777
+ D, [2013-09-15T16:00:47.399718 #7165] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1778
+ D, [2013-09-15T16:00:47.400701 #7165] DEBUG -- : MockOrganization Load (0.6ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1779
+ D, [2013-09-15T16:00:47.401734 #7165] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1780
+ D, [2013-09-15T16:00:47.414546 #7165] DEBUG -- :  (0.3ms) SAVEPOINT active_record_1
1781
+ D, [2013-09-15T16:00:47.421146 #7165] DEBUG -- : SQL (1.4ms) INSERT INTO `stores` (`address`, `lat`, `lng`) VALUES ('Irving, TX', 32.918593, -96.958444)
1782
+ D, [2013-09-15T16:00:47.421702 #7165] DEBUG -- :  (0.2ms) RELEASE SAVEPOINT active_record_1
1783
+ D, [2013-09-15T16:00:47.437435 #7165] DEBUG -- :  (15.3ms) ROLLBACK
1784
+ D, [2013-09-15T16:00:47.438687 #7165] DEBUG -- :  (0.4ms) BEGIN
1785
+ D, [2013-09-15T16:00:47.441509 #7165] DEBUG -- : Company Load (0.9ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1786
+ D, [2013-09-15T16:00:47.443949 #7165] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1787
+ D, [2013-09-15T16:00:47.446474 #7165] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1788
+ D, [2013-09-15T16:00:47.448968 #7165] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1789
+ D, [2013-09-15T16:00:47.451293 #7165] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1790
+ D, [2013-09-15T16:00:47.453573 #7165] DEBUG -- : MockOrganization Load (0.8ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1791
+ D, [2013-09-15T16:00:47.455986 #7165] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1792
+ D, [2013-09-15T16:00:47.459148 #7165] DEBUG -- :  (0.4ms) SAVEPOINT active_record_1
1793
+ D, [2013-09-15T16:00:47.460599 #7165] DEBUG -- :  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1
1794
+ D, [2013-09-15T16:00:47.461938 #7165] DEBUG -- :  (0.4ms) ROLLBACK
1795
+ D, [2013-09-15T16:00:47.463663 #7165] DEBUG -- :  (0.3ms) BEGIN
1796
+ D, [2013-09-15T16:00:47.466176 #7165] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1797
+ D, [2013-09-15T16:00:47.468434 #7165] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1798
+ D, [2013-09-15T16:00:47.470631 #7165] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1799
+ D, [2013-09-15T16:00:47.472657 #7165] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1800
+ D, [2013-09-15T16:00:47.474593 #7165] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1801
+ D, [2013-09-15T16:00:47.476616 #7165] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1802
+ D, [2013-09-15T16:00:47.479374 #7165] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1803
+ D, [2013-09-15T16:00:47.485935 #7165] DEBUG -- :  (0.4ms) ROLLBACK
1804
+ D, [2013-09-15T16:00:47.487627 #7165] DEBUG -- :  (0.3ms) BEGIN
1805
+ D, [2013-09-15T16:00:47.490184 #7165] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1806
+ D, [2013-09-15T16:00:47.492491 #7165] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1807
+ D, [2013-09-15T16:00:47.495370 #7165] DEBUG -- : CustomLocation Load (0.9ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1808
+ D, [2013-09-15T16:00:47.498371 #7165] DEBUG -- : Location Load (1.0ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1809
+ D, [2013-09-15T16:00:47.501086 #7165] DEBUG -- : CustomLocation Load (0.9ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1810
+ D, [2013-09-15T16:00:47.504882 #7165] DEBUG -- : MockOrganization Load (1.2ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1811
+ D, [2013-09-15T16:00:47.509238 #7165] DEBUG -- : MockAddress Load (1.1ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1812
+ D, [2013-09-15T16:00:47.513038 #7165] DEBUG -- :  (0.5ms) ROLLBACK
1813
+ D, [2013-09-15T16:00:47.514825 #7165] DEBUG -- :  (0.3ms) BEGIN
1814
+ D, [2013-09-15T16:00:47.517687 #7165] DEBUG -- : Company Load (0.9ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1815
+ D, [2013-09-15T16:00:47.520073 #7165] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1816
+ D, [2013-09-15T16:00:47.522457 #7165] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1817
+ D, [2013-09-15T16:00:47.524646 #7165] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1818
+ D, [2013-09-15T16:00:47.526737 #7165] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1819
+ D, [2013-09-15T16:00:47.528966 #7165] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1820
+ D, [2013-09-15T16:00:47.531142 #7165] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1821
+ D, [2013-09-15T16:00:47.537346 #7165] DEBUG -- : Location Load (1.8ms) SELECT `locations`.* FROM `locations` ORDER BY
1822
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
1823
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
1824
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
1825
+ asc
1826
+ D, [2013-09-15T16:00:47.541094 #7165] DEBUG -- :  (0.5ms) ROLLBACK
1827
+ D, [2013-09-15T16:00:47.542264 #7165] DEBUG -- :  (0.3ms) BEGIN
1828
+ D, [2013-09-15T16:00:47.544996 #7165] DEBUG -- : Company Load (1.0ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1829
+ D, [2013-09-15T16:00:47.547728 #7165] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1830
+ D, [2013-09-15T16:00:47.549979 #7165] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1831
+ D, [2013-09-15T16:00:47.551211 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1832
+ D, [2013-09-15T16:00:47.551955 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1833
+ D, [2013-09-15T16:00:47.552714 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1834
+ D, [2013-09-15T16:00:47.553486 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1835
+ D, [2013-09-15T16:00:47.554833 #7165] DEBUG -- :  (0.2ms) ROLLBACK
1836
+ D, [2013-09-15T16:00:47.555373 #7165] DEBUG -- :  (0.1ms) BEGIN
1837
+ D, [2013-09-15T16:00:47.556311 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1838
+ D, [2013-09-15T16:00:47.557123 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1839
+ D, [2013-09-15T16:00:47.557959 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1840
+ D, [2013-09-15T16:00:47.558818 #7165] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1841
+ D, [2013-09-15T16:00:47.559558 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1842
+ D, [2013-09-15T16:00:47.560350 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1843
+ D, [2013-09-15T16:00:47.561144 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1844
+ D, [2013-09-15T16:00:47.562331 #7165] DEBUG -- :  (0.2ms) ROLLBACK
1845
+ D, [2013-09-15T16:00:47.562823 #7165] DEBUG -- :  (0.1ms) BEGIN
1846
+ D, [2013-09-15T16:00:47.563716 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1847
+ D, [2013-09-15T16:00:47.564538 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1848
+ D, [2013-09-15T16:00:47.565286 #7165] DEBUG -- : CustomLocation Load (0.3ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1849
+ D, [2013-09-15T16:00:47.566083 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1850
+ D, [2013-09-15T16:00:47.566870 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1851
+ D, [2013-09-15T16:00:47.567775 #7165] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1852
+ D, [2013-09-15T16:00:47.569156 #7165] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1853
+ D, [2013-09-15T16:00:47.571991 #7165] DEBUG -- : Location Load (1.2ms) SELECT `locations`.* FROM `locations` WHERE ((
1854
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
1855
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
1856
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
1857
+ > 3.95))
1858
+ D, [2013-09-15T16:00:47.573732 #7165] DEBUG -- :  (1.1ms) SELECT COUNT(*) FROM `locations` WHERE ((
1859
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
1860
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
1861
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
1862
+ > 3.95))
1863
+ D, [2013-09-15T16:00:47.574351 #7165] DEBUG -- :  (0.3ms) ROLLBACK
1864
+ D, [2013-09-15T16:00:47.574913 #7165] DEBUG -- :  (0.1ms) BEGIN
1865
+ D, [2013-09-15T16:00:47.576095 #7165] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1866
+ D, [2013-09-15T16:00:47.577137 #7165] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1867
+ D, [2013-09-15T16:00:47.578143 #7165] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1868
+ D, [2013-09-15T16:00:47.579574 #7165] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1869
+ D, [2013-09-15T16:00:47.580877 #7165] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1870
+ D, [2013-09-15T16:00:47.582084 #7165] DEBUG -- : MockOrganization Load (0.6ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1871
+ D, [2013-09-15T16:00:47.583327 #7165] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1872
+ D, [2013-09-15T16:00:47.585592 #7165] DEBUG -- : Location Load (1.1ms) SELECT `locations`.* FROM `locations` WHERE ((
1873
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
1874
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
1875
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
1876
+ > 3.95))
1877
+ D, [2013-09-15T16:00:47.587214 #7165] DEBUG -- :  (1.1ms) SELECT COUNT(*) FROM `locations` WHERE ((
1878
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
1879
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
1880
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
1881
+ > 3.95))
1882
+ D, [2013-09-15T16:00:47.587669 #7165] DEBUG -- :  (0.2ms) ROLLBACK
1883
+ D, [2013-09-15T16:00:47.588112 #7165] DEBUG -- :  (0.1ms) BEGIN
1884
+ D, [2013-09-15T16:00:47.589204 #7165] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1885
+ D, [2013-09-15T16:00:47.590199 #7165] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1886
+ D, [2013-09-15T16:00:47.591106 #7165] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1887
+ D, [2013-09-15T16:00:47.591973 #7165] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1888
+ D, [2013-09-15T16:00:47.592825 #7165] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1889
+ D, [2013-09-15T16:00:47.593694 #7165] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1890
+ D, [2013-09-15T16:00:47.594673 #7165] DEBUG -- : MockAddress Load (0.6ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1891
+ D, [2013-09-15T16:00:47.596477 #7165] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE ((
1892
+ SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
1893
+ POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
1894
+ > 3.95))
1895
+ D, [2013-09-15T16:00:47.597411 #7165] DEBUG -- :  (0.6ms) SELECT COUNT(*) FROM `custom_locations` WHERE ((
1896
+ SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
1897
+ POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
1898
+ > 3.95))
1899
+ D, [2013-09-15T16:00:47.597880 #7165] DEBUG -- :  (0.3ms) ROLLBACK
1900
+ D, [2013-09-15T16:00:47.598319 #7165] DEBUG -- :  (0.1ms) BEGIN
1901
+ D, [2013-09-15T16:00:47.599143 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1902
+ D, [2013-09-15T16:00:47.600022 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1903
+ D, [2013-09-15T16:00:47.602088 #7165] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1904
+ D, [2013-09-15T16:00:47.604251 #7165] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1905
+ D, [2013-09-15T16:00:47.606217 #7165] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1906
+ D, [2013-09-15T16:00:47.608199 #7165] DEBUG -- : MockOrganization Load (0.6ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1907
+ D, [2013-09-15T16:00:47.610150 #7165] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1908
+ D, [2013-09-15T16:00:47.614304 #7165] DEBUG -- : CustomLocation Load (1.1ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE ((
1909
+ SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
1910
+ POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
1911
+ > 3.95))
1912
+ D, [2013-09-15T16:00:47.616078 #7165] DEBUG -- :  (0.7ms) SELECT COUNT(*) FROM `custom_locations` WHERE ((
1913
+ SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
1914
+ POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
1915
+ > 3.95))
1916
+ D, [2013-09-15T16:00:47.617043 #7165] DEBUG -- :  (0.3ms) ROLLBACK
1917
+ D, [2013-09-15T16:00:47.618366 #7165] DEBUG -- :  (0.3ms) BEGIN
1918
+ D, [2013-09-15T16:00:47.620299 #7165] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1919
+ D, [2013-09-15T16:00:47.622265 #7165] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1920
+ D, [2013-09-15T16:00:47.624277 #7165] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1921
+ D, [2013-09-15T16:00:47.626114 #7165] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1922
+ D, [2013-09-15T16:00:47.628062 #7165] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1923
+ D, [2013-09-15T16:00:47.630061 #7165] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1924
+ D, [2013-09-15T16:00:47.632254 #7165] DEBUG -- : MockAddress Load (0.5ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1925
+ D, [2013-09-15T16:00:47.637820 #7165] DEBUG -- : Location Load (1.4ms) SELECT `locations`.* FROM `locations` WHERE ((
1926
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
1927
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
1928
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
1929
+ > 3.95))
1930
+ D, [2013-09-15T16:00:47.640379 #7165] DEBUG -- :  (1.2ms) SELECT COUNT(*) FROM `locations` WHERE ((
1931
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
1932
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
1933
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
1934
+ > 3.95))
1935
+ D, [2013-09-15T16:00:47.641364 #7165] DEBUG -- :  (0.3ms) ROLLBACK
1936
+ D, [2013-09-15T16:00:47.642710 #7165] DEBUG -- :  (0.3ms) BEGIN
1937
+ D, [2013-09-15T16:00:47.644617 #7165] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1938
+ D, [2013-09-15T16:00:47.646613 #7165] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1939
+ D, [2013-09-15T16:00:47.648589 #7165] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1940
+ D, [2013-09-15T16:00:47.650097 #7165] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1941
+ D, [2013-09-15T16:00:47.652042 #7165] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1942
+ D, [2013-09-15T16:00:47.653956 #7165] DEBUG -- : MockOrganization Load (0.6ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1943
+ D, [2013-09-15T16:00:47.655934 #7165] DEBUG -- : MockAddress Load (0.7ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1944
+ D, [2013-09-15T16:00:47.660574 #7165] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` ORDER BY
1945
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
1946
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
1947
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
1948
+ asc
1949
+ D, [2013-09-15T16:00:47.662256 #7165] DEBUG -- :  (0.3ms) ROLLBACK
1950
+ D, [2013-09-15T16:00:47.662869 #7165] DEBUG -- :  (0.1ms) BEGIN
1951
+ D, [2013-09-15T16:00:47.665421 #7165] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1952
+ D, [2013-09-15T16:00:47.667782 #7165] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1953
+ D, [2013-09-15T16:00:47.669932 #7165] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1954
+ D, [2013-09-15T16:00:47.671208 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1955
+ D, [2013-09-15T16:00:47.671944 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1956
+ D, [2013-09-15T16:00:47.672707 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1957
+ D, [2013-09-15T16:00:47.673574 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1958
+ D, [2013-09-15T16:00:47.675444 #7165] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` ORDER BY
1959
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
1960
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
1961
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
1962
+ asc
1963
+ D, [2013-09-15T16:00:47.676051 #7165] DEBUG -- :  (0.2ms) ROLLBACK
1964
+ D, [2013-09-15T16:00:47.676457 #7165] DEBUG -- :  (0.1ms) BEGIN
1965
+ D, [2013-09-15T16:00:47.677255 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1966
+ D, [2013-09-15T16:00:47.677994 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1967
+ D, [2013-09-15T16:00:47.678790 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1968
+ D, [2013-09-15T16:00:47.679553 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1969
+ D, [2013-09-15T16:00:47.680304 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1970
+ D, [2013-09-15T16:00:47.681050 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1971
+ D, [2013-09-15T16:00:47.681827 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1972
+ D, [2013-09-15T16:00:47.683124 #7165] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` ORDER BY
1973
+ SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
1974
+ POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
1975
+ asc
1976
+ D, [2013-09-15T16:00:47.683771 #7165] DEBUG -- :  (0.2ms) ROLLBACK
1977
+ D, [2013-09-15T16:00:47.684302 #7165] DEBUG -- :  (0.2ms) BEGIN
1978
+ D, [2013-09-15T16:00:47.685193 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1979
+ D, [2013-09-15T16:00:47.685985 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1980
+ D, [2013-09-15T16:00:47.686796 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1981
+ D, [2013-09-15T16:00:47.687537 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1982
+ D, [2013-09-15T16:00:47.688262 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1983
+ D, [2013-09-15T16:00:47.688999 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1984
+ D, [2013-09-15T16:00:47.689779 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1985
+ D, [2013-09-15T16:00:47.691398 #7165] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` ORDER BY
1986
+ SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
1987
+ POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
1988
+ asc
1989
+ D, [2013-09-15T16:00:47.692016 #7165] DEBUG -- :  (0.2ms) ROLLBACK
1990
+ D, [2013-09-15T16:00:47.692429 #7165] DEBUG -- :  (0.1ms) BEGIN
1991
+ D, [2013-09-15T16:00:47.693303 #7165] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
1992
+ D, [2013-09-15T16:00:47.694123 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
1993
+ D, [2013-09-15T16:00:47.694966 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
1994
+ D, [2013-09-15T16:00:47.695716 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
1995
+ D, [2013-09-15T16:00:47.696470 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
1996
+ D, [2013-09-15T16:00:47.697229 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
1997
+ D, [2013-09-15T16:00:47.697984 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
1998
+ D, [2013-09-15T16:00:47.700057 #7165] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` ORDER BY
1999
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2000
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2001
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2002
+ asc LIMIT 1
2003
+ D, [2013-09-15T16:00:47.700524 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2004
+ D, [2013-09-15T16:00:47.700948 #7165] DEBUG -- :  (0.1ms) BEGIN
2005
+ D, [2013-09-15T16:00:47.701764 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2006
+ D, [2013-09-15T16:00:47.702530 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2007
+ D, [2013-09-15T16:00:47.703314 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2008
+ D, [2013-09-15T16:00:47.704052 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2009
+ D, [2013-09-15T16:00:47.704805 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2010
+ D, [2013-09-15T16:00:47.705534 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2011
+ D, [2013-09-15T16:00:47.706311 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2012
+ D, [2013-09-15T16:00:47.708074 #7165] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` ORDER BY
2013
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2014
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2015
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2016
+ asc LIMIT 1
2017
+ D, [2013-09-15T16:00:47.708504 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2018
+ D, [2013-09-15T16:00:47.708892 #7165] DEBUG -- :  (0.1ms) BEGIN
2019
+ D, [2013-09-15T16:00:47.709635 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2020
+ D, [2013-09-15T16:00:47.710425 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2021
+ D, [2013-09-15T16:00:47.711238 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2022
+ D, [2013-09-15T16:00:47.711969 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2023
+ D, [2013-09-15T16:00:47.712703 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2024
+ D, [2013-09-15T16:00:47.713427 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2025
+ D, [2013-09-15T16:00:47.714170 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2026
+ D, [2013-09-15T16:00:47.715463 #7165] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` ORDER BY
2027
+ SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
2028
+ POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
2029
+ asc LIMIT 1
2030
+ D, [2013-09-15T16:00:47.715880 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2031
+ D, [2013-09-15T16:00:47.716269 #7165] DEBUG -- :  (0.1ms) BEGIN
2032
+ D, [2013-09-15T16:00:47.717002 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2033
+ D, [2013-09-15T16:00:47.717757 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2034
+ D, [2013-09-15T16:00:47.718529 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2035
+ D, [2013-09-15T16:00:47.719257 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2036
+ D, [2013-09-15T16:00:47.719984 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2037
+ D, [2013-09-15T16:00:47.720707 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2038
+ D, [2013-09-15T16:00:47.721480 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2039
+ D, [2013-09-15T16:00:47.723152 #7165] DEBUG -- : CustomLocation Load (0.8ms) SELECT `custom_locations`.* FROM `custom_locations` ORDER BY
2040
+ SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
2041
+ POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
2042
+ asc LIMIT 1
2043
+ D, [2013-09-15T16:00:47.723669 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2044
+ D, [2013-09-15T16:00:47.724153 #7165] DEBUG -- :  (0.1ms) BEGIN
2045
+ D, [2013-09-15T16:00:47.725081 #7165] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2046
+ D, [2013-09-15T16:00:47.725911 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2047
+ D, [2013-09-15T16:00:47.726758 #7165] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2048
+ D, [2013-09-15T16:00:47.727514 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2049
+ D, [2013-09-15T16:00:47.728307 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2050
+ D, [2013-09-15T16:00:47.729134 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2051
+ D, [2013-09-15T16:00:47.729902 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2052
+ D, [2013-09-15T16:00:47.732318 #7165] DEBUG -- : Location Load (1.2ms) SELECT `locations`.* FROM `locations` WHERE ((
2053
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2054
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2055
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2056
+ >= 0 AND
2057
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2058
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2059
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2060
+ <= 10))
2061
+ D, [2013-09-15T16:00:47.733912 #7165] DEBUG -- :  (1.1ms) SELECT COUNT(*) FROM `locations` WHERE ((
2062
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2063
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2064
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2065
+ >= 0 AND
2066
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2067
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2068
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2069
+ <= 10))
2070
+ D, [2013-09-15T16:00:47.734333 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2071
+ D, [2013-09-15T16:00:47.734783 #7165] DEBUG -- :  (0.1ms) BEGIN
2072
+ D, [2013-09-15T16:00:47.735589 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2073
+ D, [2013-09-15T16:00:47.736380 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2074
+ D, [2013-09-15T16:00:47.737170 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2075
+ D, [2013-09-15T16:00:47.737942 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2076
+ D, [2013-09-15T16:00:47.738777 #7165] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2077
+ D, [2013-09-15T16:00:47.739512 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2078
+ D, [2013-09-15T16:00:47.740292 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2079
+ D, [2013-09-15T16:00:47.765487 #7165] DEBUG -- : Location Load (1.7ms) SELECT `locations`.* FROM `locations` WHERE ((
2080
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2081
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2082
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2083
+ >= 0 AND
2084
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2085
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2086
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2087
+ < 10))
2088
+ D, [2013-09-15T16:00:47.767523 #7165] DEBUG -- :  (1.2ms) SELECT COUNT(*) FROM `locations` WHERE ((
2089
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2090
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2091
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2092
+ >= 0 AND
2093
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2094
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2095
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2096
+ < 10))
2097
+ D, [2013-09-15T16:00:47.767978 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2098
+ D, [2013-09-15T16:00:47.768483 #7165] DEBUG -- :  (0.1ms) BEGIN
2099
+ D, [2013-09-15T16:00:47.769588 #7165] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2100
+ D, [2013-09-15T16:00:47.771492 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2101
+ D, [2013-09-15T16:00:47.773451 #7165] DEBUG -- : CustomLocation Load (0.5ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2102
+ D, [2013-09-15T16:00:47.775328 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2103
+ D, [2013-09-15T16:00:47.777054 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2104
+ D, [2013-09-15T16:00:47.778929 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2105
+ D, [2013-09-15T16:00:47.780825 #7165] DEBUG -- : MockAddress Load (0.5ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2106
+ D, [2013-09-15T16:00:47.787125 #7165] DEBUG -- : Location Load (1.6ms) SELECT `locations`.* FROM `locations` WHERE ((
2107
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2108
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2109
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2110
+ >= 0 AND
2111
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2112
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2113
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2114
+ <= 10)) AND (city = 'Coppell')
2115
+ D, [2013-09-15T16:00:47.790116 #7165] DEBUG -- :  (1.5ms) SELECT COUNT(*) FROM `locations` WHERE ((
2116
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2117
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2118
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2119
+ >= 0 AND
2120
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2121
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2122
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2123
+ <= 10)) AND (city = 'Coppell')
2124
+ D, [2013-09-15T16:00:47.790740 #7165] DEBUG -- :  (0.1ms) ROLLBACK
2125
+ D, [2013-09-15T16:00:47.791138 #7165] DEBUG -- :  (0.1ms) BEGIN
2126
+ D, [2013-09-15T16:00:47.791776 #7165] DEBUG -- : Company Load (0.2ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2127
+ D, [2013-09-15T16:00:47.792379 #7165] DEBUG -- : Location Load (0.2ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2128
+ D, [2013-09-15T16:00:47.792947 #7165] DEBUG -- : CustomLocation Load (0.2ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2129
+ D, [2013-09-15T16:00:47.793486 #7165] DEBUG -- : Location Load (0.2ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2130
+ D, [2013-09-15T16:00:47.794006 #7165] DEBUG -- : CustomLocation Load (0.2ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2131
+ D, [2013-09-15T16:00:47.794583 #7165] DEBUG -- : MockOrganization Load (0.2ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2132
+ D, [2013-09-15T16:00:47.795293 #7165] DEBUG -- : MockAddress Load (0.3ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2133
+ D, [2013-09-15T16:00:47.799281 #7165] DEBUG -- : Location Load (1.1ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`city` = 'Coppell' AND ((
2134
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2135
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2136
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2137
+ >= 0 AND
2138
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2139
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2140
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2141
+ <= 10))
2142
+ D, [2013-09-15T16:00:47.800759 #7165] DEBUG -- :  (0.9ms) SELECT COUNT(*) FROM `locations` WHERE `locations`.`city` = 'Coppell' AND ((
2143
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2144
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2145
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2146
+ >= 0 AND
2147
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2148
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2149
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2150
+ <= 10))
2151
+ D, [2013-09-15T16:00:47.801169 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2152
+ D, [2013-09-15T16:00:47.801654 #7165] DEBUG -- :  (0.1ms) BEGIN
2153
+ D, [2013-09-15T16:00:47.802491 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2154
+ D, [2013-09-15T16:00:47.803208 #7165] DEBUG -- : Location Load (0.3ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2155
+ D, [2013-09-15T16:00:47.803950 #7165] DEBUG -- : CustomLocation Load (0.3ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2156
+ D, [2013-09-15T16:00:47.804697 #7165] DEBUG -- : Location Load (0.3ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2157
+ D, [2013-09-15T16:00:47.805374 #7165] DEBUG -- : CustomLocation Load (0.3ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2158
+ D, [2013-09-15T16:00:47.806070 #7165] DEBUG -- : MockOrganization Load (0.3ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2159
+ D, [2013-09-15T16:00:47.806812 #7165] DEBUG -- : MockAddress Load (0.3ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2160
+ D, [2013-09-15T16:00:47.808442 #7165] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE ((
2161
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2162
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2163
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2164
+ <= 3.97))
2165
+ D, [2013-09-15T16:00:47.809503 #7165] DEBUG -- :  (0.6ms) SELECT COUNT(*) FROM `locations` WHERE ((
2166
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2167
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2168
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2169
+ <= 3.97))
2170
+ D, [2013-09-15T16:00:47.809855 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2171
+ D, [2013-09-15T16:00:47.810284 #7165] DEBUG -- :  (0.1ms) BEGIN
2172
+ D, [2013-09-15T16:00:47.810973 #7165] DEBUG -- : Company Load (0.3ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2173
+ D, [2013-09-15T16:00:47.811653 #7165] DEBUG -- : Location Load (0.3ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2174
+ D, [2013-09-15T16:00:47.812375 #7165] DEBUG -- : CustomLocation Load (0.3ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2175
+ D, [2013-09-15T16:00:47.813053 #7165] DEBUG -- : Location Load (0.3ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2176
+ D, [2013-09-15T16:00:47.813742 #7165] DEBUG -- : CustomLocation Load (0.3ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2177
+ D, [2013-09-15T16:00:47.814440 #7165] DEBUG -- : MockOrganization Load (0.3ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2178
+ D, [2013-09-15T16:00:47.815186 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2179
+ D, [2013-09-15T16:00:47.817229 #7165] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE ((
2180
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2181
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2182
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2183
+ <= 5)) AND (city = 'Coppell')
2184
+ D, [2013-09-15T16:00:47.818271 #7165] DEBUG -- :  (0.6ms) SELECT COUNT(*) FROM `locations` WHERE ((
2185
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2186
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2187
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2188
+ <= 5)) AND (city = 'Coppell')
2189
+ D, [2013-09-15T16:00:47.818669 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2190
+ D, [2013-09-15T16:00:47.819088 #7165] DEBUG -- :  (0.1ms) BEGIN
2191
+ D, [2013-09-15T16:00:47.819833 #7165] DEBUG -- : Company Load (0.3ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2192
+ D, [2013-09-15T16:00:47.820573 #7165] DEBUG -- : Location Load (0.3ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2193
+ D, [2013-09-15T16:00:47.821305 #7165] DEBUG -- : CustomLocation Load (0.3ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2194
+ D, [2013-09-15T16:00:47.821995 #7165] DEBUG -- : Location Load (0.3ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2195
+ D, [2013-09-15T16:00:47.822785 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2196
+ D, [2013-09-15T16:00:47.823578 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2197
+ D, [2013-09-15T16:00:47.824370 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2198
+ D, [2013-09-15T16:00:47.825960 #7165] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE ((
2199
+ SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
2200
+ POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
2201
+ <= 5)) AND (city = 'Coppell')
2202
+ D, [2013-09-15T16:00:47.826982 #7165] DEBUG -- :  (0.7ms) SELECT COUNT(*) FROM `custom_locations` WHERE ((
2203
+ SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
2204
+ POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
2205
+ <= 5)) AND (city = 'Coppell')
2206
+ D, [2013-09-15T16:00:47.827362 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2207
+ D, [2013-09-15T16:00:47.827886 #7165] DEBUG -- :  (0.2ms) BEGIN
2208
+ D, [2013-09-15T16:00:47.828703 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2209
+ D, [2013-09-15T16:00:47.829506 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2210
+ D, [2013-09-15T16:00:47.830263 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2211
+ D, [2013-09-15T16:00:47.831021 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2212
+ D, [2013-09-15T16:00:47.831752 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2213
+ D, [2013-09-15T16:00:47.832538 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2214
+ D, [2013-09-15T16:00:47.833378 #7165] DEBUG -- : MockAddress Load (0.5ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2215
+ D, [2013-09-15T16:00:47.834978 #7165] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE ((
2216
+ SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
2217
+ POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
2218
+ <= 3.97))
2219
+ D, [2013-09-15T16:00:47.835990 #7165] DEBUG -- :  (0.6ms) SELECT COUNT(*) FROM `custom_locations` WHERE ((
2220
+ SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
2221
+ POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
2222
+ <= 3.97))
2223
+ D, [2013-09-15T16:00:47.836418 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2224
+ D, [2013-09-15T16:00:47.836829 #7165] DEBUG -- :  (0.1ms) BEGIN
2225
+ D, [2013-09-15T16:00:47.837656 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2226
+ D, [2013-09-15T16:00:47.838476 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2227
+ D, [2013-09-15T16:00:47.839249 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2228
+ D, [2013-09-15T16:00:47.839991 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2229
+ D, [2013-09-15T16:00:47.840736 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2230
+ D, [2013-09-15T16:00:47.841512 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2231
+ D, [2013-09-15T16:00:47.842272 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2232
+ D, [2013-09-15T16:00:47.843850 #7165] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE ((
2233
+ SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
2234
+ POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
2235
+ <= 3.97))
2236
+ D, [2013-09-15T16:00:47.844950 #7165] DEBUG -- :  (0.6ms) SELECT COUNT(*) FROM `custom_locations` WHERE ((
2237
+ SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
2238
+ POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
2239
+ <= 3.97))
2240
+ D, [2013-09-15T16:00:47.845359 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2241
+ D, [2013-09-15T16:00:47.845762 #7165] DEBUG -- :  (0.1ms) BEGIN
2242
+ D, [2013-09-15T16:00:47.846700 #7165] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2243
+ D, [2013-09-15T16:00:47.847522 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2244
+ D, [2013-09-15T16:00:47.848382 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2245
+ D, [2013-09-15T16:00:47.849165 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2246
+ D, [2013-09-15T16:00:47.849948 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2247
+ D, [2013-09-15T16:00:47.850779 #7165] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2248
+ D, [2013-09-15T16:00:47.851567 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2249
+ D, [2013-09-15T16:00:47.853624 #7165] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` WHERE ((
2250
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2251
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2252
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2253
+ <= 3.97))
2254
+ D, [2013-09-15T16:00:47.854870 #7165] DEBUG -- :  (0.8ms) SELECT COUNT(*) FROM `locations` WHERE ((
2255
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2256
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2257
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2258
+ <= 3.97))
2259
+ D, [2013-09-15T16:00:47.855295 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2260
+ D, [2013-09-15T16:00:47.855777 #7165] DEBUG -- :  (0.1ms) BEGIN
2261
+ D, [2013-09-15T16:00:47.856578 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2262
+ D, [2013-09-15T16:00:47.857361 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2263
+ D, [2013-09-15T16:00:47.858146 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2264
+ D, [2013-09-15T16:00:47.858972 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2265
+ D, [2013-09-15T16:00:47.859702 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2266
+ D, [2013-09-15T16:00:47.860484 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2267
+ D, [2013-09-15T16:00:47.861292 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2268
+ D, [2013-09-15T16:00:47.862816 #7165] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE ((
2269
+ SQRT(POW(69.1*(32.918593-locations.lat),2)+
2270
+ POW(48.20039936816744*(-96.958444-locations.lng),2))
2271
+ <= 6.387))
2272
+ D, [2013-09-15T16:00:47.863819 #7165] DEBUG -- :  (0.6ms) SELECT COUNT(*) FROM `locations` WHERE ((
2273
+ SQRT(POW(69.1*(32.918593-locations.lat),2)+
2274
+ POW(48.20039936816744*(-96.958444-locations.lng),2))
2275
+ <= 6.387))
2276
+ D, [2013-09-15T16:00:47.864221 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2277
+ D, [2013-09-15T16:00:47.864667 #7165] DEBUG -- :  (0.1ms) BEGIN
2278
+ D, [2013-09-15T16:00:47.865445 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2279
+ D, [2013-09-15T16:00:47.866217 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2280
+ D, [2013-09-15T16:00:47.866998 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2281
+ D, [2013-09-15T16:00:47.867763 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2282
+ D, [2013-09-15T16:00:47.868526 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2283
+ D, [2013-09-15T16:00:47.869295 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2284
+ D, [2013-09-15T16:00:47.870074 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2285
+ D, [2013-09-15T16:00:47.872069 #7165] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` WHERE ((
2286
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2287
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2288
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*6376.77271)
2289
+ <= 6.387))
2290
+ D, [2013-09-15T16:00:47.873226 #7165] DEBUG -- :  (0.7ms) SELECT COUNT(*) FROM `locations` WHERE ((
2291
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2292
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2293
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*6376.77271)
2294
+ <= 6.387))
2295
+ D, [2013-09-15T16:00:47.873610 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2296
+ D, [2013-09-15T16:00:47.874077 #7165] DEBUG -- :  (0.1ms) BEGIN
2297
+ D, [2013-09-15T16:00:47.874902 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2298
+ D, [2013-09-15T16:00:47.875667 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2299
+ D, [2013-09-15T16:00:47.876495 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2300
+ D, [2013-09-15T16:00:47.877409 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2301
+ D, [2013-09-15T16:00:47.878169 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2302
+ D, [2013-09-15T16:00:47.879039 #7165] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2303
+ D, [2013-09-15T16:00:47.879845 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2304
+ D, [2013-09-15T16:00:47.882001 #7165] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` WHERE ((
2305
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2306
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2307
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2308
+ <= 5)) AND (city = 'Coppell')
2309
+ D, [2013-09-15T16:00:47.883239 #7165] DEBUG -- :  (0.8ms) SELECT COUNT(*) FROM `locations` WHERE ((
2310
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2311
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2312
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2313
+ <= 5)) AND (city = 'Coppell')
2314
+ D, [2013-09-15T16:00:47.883663 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2315
+ D, [2013-09-15T16:00:47.884099 #7165] DEBUG -- :  (0.1ms) BEGIN
2316
+ D, [2013-09-15T16:00:47.884980 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2317
+ D, [2013-09-15T16:00:47.885809 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2318
+ D, [2013-09-15T16:00:47.886641 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2319
+ D, [2013-09-15T16:00:47.887431 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2320
+ D, [2013-09-15T16:00:47.888190 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2321
+ D, [2013-09-15T16:00:47.888929 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2322
+ D, [2013-09-15T16:00:47.889691 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2323
+ D, [2013-09-15T16:00:47.890504 #7165] DEBUG -- :  (0.4ms) SELECT COUNT(*) FROM `mock_people`
2324
+ D, [2013-09-15T16:00:47.891087 #7165] DEBUG -- :  (0.3ms) SELECT COUNT(*) FROM `mock_people`
2325
+ D, [2013-09-15T16:00:47.891458 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2326
+ D, [2013-09-15T16:00:47.891873 #7165] DEBUG -- :  (0.1ms) BEGIN
2327
+ D, [2013-09-15T16:00:47.892604 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2328
+ D, [2013-09-15T16:00:47.893351 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2329
+ D, [2013-09-15T16:00:47.894109 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2330
+ D, [2013-09-15T16:00:47.894902 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2331
+ D, [2013-09-15T16:00:47.895635 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2332
+ D, [2013-09-15T16:00:47.896364 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2333
+ D, [2013-09-15T16:00:47.897114 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2334
+ D, [2013-09-15T16:00:47.899116 #7165] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` WHERE ((
2335
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2336
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2337
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2338
+ <= 3.97))
2339
+ D, [2013-09-15T16:00:47.900311 #7165] DEBUG -- :  (0.7ms) SELECT COUNT(*) FROM `locations` WHERE ((
2340
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2341
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2342
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2343
+ <= 3.97))
2344
+ D, [2013-09-15T16:00:47.900679 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2345
+ D, [2013-09-15T16:00:47.901076 #7165] DEBUG -- :  (0.1ms) BEGIN
2346
+ D, [2013-09-15T16:00:47.901816 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2347
+ D, [2013-09-15T16:00:47.902584 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2348
+ D, [2013-09-15T16:00:47.903341 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2349
+ D, [2013-09-15T16:00:47.904068 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2350
+ D, [2013-09-15T16:00:47.904809 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2351
+ D, [2013-09-15T16:00:47.905548 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2352
+ D, [2013-09-15T16:00:47.906298 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2353
+ D, [2013-09-15T16:00:47.907235 #7165] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE (locations.lat>32.91663 AND locations.lat<32.96302 AND locations.lng>-96.982841 AND locations.lng<-96.919495)
2354
+ D, [2013-09-15T16:00:47.908158 #7165] DEBUG -- :  (0.5ms) SELECT COUNT(*) FROM `locations` WHERE (locations.lat>32.91663 AND locations.lat<32.96302 AND locations.lng>-96.982841 AND locations.lng<-96.919495)
2355
+ D, [2013-09-15T16:00:47.908555 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2356
+ D, [2013-09-15T16:00:47.908971 #7165] DEBUG -- :  (0.1ms) BEGIN
2357
+ D, [2013-09-15T16:00:47.909867 #7165] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2358
+ D, [2013-09-15T16:00:47.910728 #7165] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2359
+ D, [2013-09-15T16:00:47.911513 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2360
+ D, [2013-09-15T16:00:47.912305 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2361
+ D, [2013-09-15T16:00:47.913080 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2362
+ D, [2013-09-15T16:00:47.913861 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2363
+ D, [2013-09-15T16:00:47.914649 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2364
+ D, [2013-09-15T16:00:47.917732 #7165] DEBUG -- : Location Load (1.1ms) 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
2365
+ (ACOS(least(1,COS(0.5749084012807412)*COS(-1.6921170952541658)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2366
+ COS(0.5749084012807412)*SIN(-1.6921170952541658)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2367
+ SIN(0.5749084012807412)*SIN(RADIANS(locations.lat))))*3963.19)
2368
+ asc
2369
+ D, [2013-09-15T16:00:47.918759 #7165] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 4 LIMIT 1
2370
+ D, [2013-09-15T16:00:47.919286 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2371
+ D, [2013-09-15T16:00:47.919745 #7165] DEBUG -- :  (0.1ms) BEGIN
2372
+ D, [2013-09-15T16:00:47.920564 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2373
+ D, [2013-09-15T16:00:47.921352 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2374
+ D, [2013-09-15T16:00:47.922156 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2375
+ D, [2013-09-15T16:00:47.922963 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2376
+ D, [2013-09-15T16:00:47.923698 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2377
+ D, [2013-09-15T16:00:47.924454 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2378
+ D, [2013-09-15T16:00:47.925289 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2379
+ D, [2013-09-15T16:00:47.926383 #7165] 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) AND (id != 1)
2380
+ D, [2013-09-15T16:00:47.926812 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2381
+ D, [2013-09-15T16:00:47.927217 #7165] DEBUG -- :  (0.1ms) BEGIN
2382
+ D, [2013-09-15T16:00:47.927963 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2383
+ D, [2013-09-15T16:00:47.928726 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2384
+ D, [2013-09-15T16:00:47.929497 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2385
+ D, [2013-09-15T16:00:47.930245 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2386
+ D, [2013-09-15T16:00:47.931021 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2387
+ D, [2013-09-15T16:00:47.931774 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2388
+ D, [2013-09-15T16:00:47.932509 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2389
+ D, [2013-09-15T16:00:47.933441 #7165] DEBUG -- : Location Load (0.5ms) 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)
2390
+ D, [2013-09-15T16:00:47.933819 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2391
+ D, [2013-09-15T16:00:47.934211 #7165] DEBUG -- :  (0.1ms) BEGIN
2392
+ D, [2013-09-15T16:00:47.934967 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2393
+ D, [2013-09-15T16:00:47.935750 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2394
+ D, [2013-09-15T16:00:47.936492 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2395
+ D, [2013-09-15T16:00:47.937217 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2396
+ D, [2013-09-15T16:00:47.938020 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2397
+ D, [2013-09-15T16:00:47.938788 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2398
+ D, [2013-09-15T16:00:47.939579 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2399
+ D, [2013-09-15T16:00:47.940667 #7165] 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) AND (id !=1)
2400
+ D, [2013-09-15T16:00:47.941111 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2401
+ D, [2013-09-15T16:00:47.941555 #7165] DEBUG -- :  (0.1ms) BEGIN
2402
+ D, [2013-09-15T16:00:47.942346 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2403
+ D, [2013-09-15T16:00:47.943129 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2404
+ D, [2013-09-15T16:00:47.943928 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2405
+ D, [2013-09-15T16:00:47.944646 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2406
+ D, [2013-09-15T16:00:47.945383 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2407
+ D, [2013-09-15T16:00:47.946124 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2408
+ D, [2013-09-15T16:00:47.946918 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2409
+ D, [2013-09-15T16:00:47.947796 #7165] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE (locations.lat>32.91663 AND locations.lat<32.96302 AND locations.lng>-96.982841 AND locations.lng<-96.919495)
2410
+ D, [2013-09-15T16:00:47.948658 #7165] DEBUG -- :  (0.5ms) SELECT COUNT(*) FROM `locations` WHERE (locations.lat>32.91663 AND locations.lat<32.96302 AND locations.lng>-96.982841 AND locations.lng<-96.919495)
2411
+ D, [2013-09-15T16:00:47.949011 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2412
+ D, [2013-09-15T16:00:47.949389 #7165] DEBUG -- :  (0.1ms) BEGIN
2413
+ D, [2013-09-15T16:00:47.950192 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2414
+ D, [2013-09-15T16:00:47.950989 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2415
+ D, [2013-09-15T16:00:47.951768 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2416
+ D, [2013-09-15T16:00:47.952533 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2417
+ D, [2013-09-15T16:00:47.953280 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2418
+ D, [2013-09-15T16:00:47.954054 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2419
+ D, [2013-09-15T16:00:47.954820 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2420
+ D, [2013-09-15T16:00:47.956579 #7165] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` WHERE ((
2421
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2422
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2423
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2424
+ <= 3.97))
2425
+ D, [2013-09-15T16:00:47.957733 #7165] DEBUG -- :  (0.7ms) SELECT COUNT(*) FROM `locations` WHERE ((
2426
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2427
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2428
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2429
+ <= 3.97))
2430
+ D, [2013-09-15T16:00:47.958094 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2431
+ D, [2013-09-15T16:00:47.958521 #7165] DEBUG -- :  (0.1ms) BEGIN
2432
+ D, [2013-09-15T16:00:47.959267 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2433
+ D, [2013-09-15T16:00:47.960042 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2434
+ D, [2013-09-15T16:00:47.960820 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2435
+ D, [2013-09-15T16:00:47.961542 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2436
+ D, [2013-09-15T16:00:47.962296 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2437
+ D, [2013-09-15T16:00:47.963069 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2438
+ D, [2013-09-15T16:00:47.963847 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2439
+ D, [2013-09-15T16:00:47.965104 #7165] DEBUG -- : CustomLocation Load (0.6ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE ((
2440
+ SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
2441
+ POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
2442
+ <= 3.97))
2443
+ D, [2013-09-15T16:00:47.966069 #7165] DEBUG -- :  (0.6ms) SELECT COUNT(*) FROM `custom_locations` WHERE ((
2444
+ SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
2445
+ POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
2446
+ <= 3.97))
2447
+ D, [2013-09-15T16:00:47.966443 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2448
+ D, [2013-09-15T16:00:47.966853 #7165] DEBUG -- :  (0.1ms) BEGIN
2449
+ D, [2013-09-15T16:00:47.967630 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2450
+ D, [2013-09-15T16:00:47.968465 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2451
+ D, [2013-09-15T16:00:47.969299 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2452
+ D, [2013-09-15T16:00:47.970046 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2453
+ D, [2013-09-15T16:00:47.970871 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2454
+ D, [2013-09-15T16:00:47.971666 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2455
+ D, [2013-09-15T16:00:47.972474 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2456
+ D, [2013-09-15T16:00:47.974122 #7165] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE ((
2457
+ SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
2458
+ POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
2459
+ <= 3.97))
2460
+ D, [2013-09-15T16:00:47.975127 #7165] DEBUG -- :  (0.6ms) SELECT COUNT(*) FROM `custom_locations` WHERE ((
2461
+ SQRT(POW(111.18189999999998*(32.918593-custom_locations.latitude),2)+
2462
+ POW(77.5544425833814*(-96.958444-custom_locations.longitude),2))
2463
+ <= 3.97))
2464
+ D, [2013-09-15T16:00:47.975518 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2465
+ D, [2013-09-15T16:00:47.976048 #7165] DEBUG -- :  (0.2ms) BEGIN
2466
+ D, [2013-09-15T16:00:47.976826 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2467
+ D, [2013-09-15T16:00:47.977592 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2468
+ D, [2013-09-15T16:00:47.978360 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2469
+ D, [2013-09-15T16:00:47.979099 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2470
+ D, [2013-09-15T16:00:47.979825 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2471
+ D, [2013-09-15T16:00:47.980555 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2472
+ D, [2013-09-15T16:00:47.981303 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2473
+ D, [2013-09-15T16:00:47.982143 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE (company_id = 1)
2474
+ D, [2013-09-15T16:00:48.012815 #7165] DEBUG -- : Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` IN (1)
2475
+ D, [2013-09-15T16:00:48.013669 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2476
+ D, [2013-09-15T16:00:48.014258 #7165] DEBUG -- :  (0.1ms) BEGIN
2477
+ D, [2013-09-15T16:00:48.015217 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2478
+ D, [2013-09-15T16:00:48.016043 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2479
+ D, [2013-09-15T16:00:48.016913 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2480
+ D, [2013-09-15T16:00:48.017732 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2481
+ D, [2013-09-15T16:00:48.018509 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2482
+ D, [2013-09-15T16:00:48.019316 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2483
+ D, [2013-09-15T16:00:48.020133 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2484
+ D, [2013-09-15T16:00:48.022482 #7165] DEBUG -- : Location Load (1.0ms) SELECT `locations`.* FROM `locations` ORDER BY
2485
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2486
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2487
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2488
+ asc
2489
+ D, [2013-09-15T16:00:48.024493 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2490
+ D, [2013-09-15T16:00:48.024996 #7165] DEBUG -- :  (0.1ms) BEGIN
2491
+ D, [2013-09-15T16:00:48.025957 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2492
+ D, [2013-09-15T16:00:48.026809 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2493
+ D, [2013-09-15T16:00:48.027691 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2494
+ D, [2013-09-15T16:00:48.028478 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2495
+ D, [2013-09-15T16:00:48.029234 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2496
+ D, [2013-09-15T16:00:48.030108 #7165] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2497
+ D, [2013-09-15T16:00:48.030991 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2498
+ D, [2013-09-15T16:00:48.033413 #7165] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` WHERE ((
2499
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2500
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2501
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2502
+ > 3.95))
2503
+ D, [2013-09-15T16:00:48.034700 #7165] DEBUG -- :  (0.7ms) SELECT COUNT(*) FROM `locations` WHERE ((
2504
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2505
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2506
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2507
+ > 3.95))
2508
+ D, [2013-09-15T16:00:48.035228 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2509
+ D, [2013-09-15T16:00:48.035830 #7165] DEBUG -- :  (0.2ms) BEGIN
2510
+ D, [2013-09-15T16:00:48.036784 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2511
+ D, [2013-09-15T16:00:48.037654 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2512
+ D, [2013-09-15T16:00:48.038475 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2513
+ D, [2013-09-15T16:00:48.039236 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2514
+ D, [2013-09-15T16:00:48.039997 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2515
+ D, [2013-09-15T16:00:48.040753 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2516
+ D, [2013-09-15T16:00:48.041576 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2517
+ D, [2013-09-15T16:00:48.043847 #7165] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` ORDER BY
2518
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2519
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2520
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2521
+ asc
2522
+ D, [2013-09-15T16:00:48.044592 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2523
+ D, [2013-09-15T16:00:48.045055 #7165] DEBUG -- :  (0.1ms) BEGIN
2524
+ D, [2013-09-15T16:00:48.045981 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2525
+ D, [2013-09-15T16:00:48.046805 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2526
+ D, [2013-09-15T16:00:48.047633 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2527
+ D, [2013-09-15T16:00:48.048420 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2528
+ D, [2013-09-15T16:00:48.049153 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2529
+ D, [2013-09-15T16:00:48.049905 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2530
+ D, [2013-09-15T16:00:48.050732 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2531
+ D, [2013-09-15T16:00:48.052941 #7165] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` ORDER BY
2532
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2533
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2534
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2535
+ asc LIMIT 1
2536
+ D, [2013-09-15T16:00:48.053597 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2537
+ D, [2013-09-15T16:00:48.054124 #7165] DEBUG -- :  (0.2ms) BEGIN
2538
+ D, [2013-09-15T16:00:48.055067 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2539
+ D, [2013-09-15T16:00:48.055896 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2540
+ D, [2013-09-15T16:00:48.056703 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2541
+ D, [2013-09-15T16:00:48.057460 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2542
+ D, [2013-09-15T16:00:48.058208 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2543
+ D, [2013-09-15T16:00:48.058991 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2544
+ D, [2013-09-15T16:00:48.059875 #7165] DEBUG -- : MockAddress Load (0.5ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2545
+ D, [2013-09-15T16:00:48.062337 #7165] DEBUG -- : Location Load (1.0ms) SELECT `locations`.* FROM `locations` WHERE ((
2546
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2547
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2548
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2549
+ <= 5)) AND (city = 'Coppell')
2550
+ D, [2013-09-15T16:00:48.063655 #7165] DEBUG -- :  (0.8ms) SELECT COUNT(*) FROM `locations` WHERE ((
2551
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2552
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2553
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2554
+ <= 5)) AND (city = 'Coppell')
2555
+ D, [2013-09-15T16:00:48.064177 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2556
+ D, [2013-09-15T16:00:48.064672 #7165] DEBUG -- :  (0.1ms) BEGIN
2557
+ D, [2013-09-15T16:00:48.065625 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2558
+ D, [2013-09-15T16:00:48.066498 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2559
+ D, [2013-09-15T16:00:48.067383 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2560
+ D, [2013-09-15T16:00:48.068205 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2561
+ D, [2013-09-15T16:00:48.068969 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2562
+ D, [2013-09-15T16:00:48.069737 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2563
+ D, [2013-09-15T16:00:48.070547 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2564
+ D, [2013-09-15T16:00:48.072712 #7165] DEBUG -- : Location Load (0.8ms) SELECT `locations`.* FROM `locations` WHERE ((
2565
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2566
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2567
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2568
+ <= 3.97))
2569
+ D, [2013-09-15T16:00:48.074013 #7165] DEBUG -- :  (0.7ms) SELECT COUNT(*) FROM `locations` WHERE ((
2570
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2571
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2572
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2573
+ <= 3.97))
2574
+ D, [2013-09-15T16:00:48.074507 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2575
+ D, [2013-09-15T16:00:48.074994 #7165] DEBUG -- :  (0.1ms) BEGIN
2576
+ D, [2013-09-15T16:00:48.075898 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2577
+ D, [2013-09-15T16:00:48.076818 #7165] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2578
+ D, [2013-09-15T16:00:48.077625 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2579
+ D, [2013-09-15T16:00:48.078484 #7165] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2580
+ D, [2013-09-15T16:00:48.079227 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2581
+ D, [2013-09-15T16:00:48.079987 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2582
+ D, [2013-09-15T16:00:48.080786 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2583
+ D, [2013-09-15T16:00:48.083094 #7165] DEBUG -- : Location Load (1.0ms) SELECT `locations`.* FROM `locations` WHERE ((
2584
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2585
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2586
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2587
+ <= 5)) AND (city = 'Coppell')
2588
+ D, [2013-09-15T16:00:48.084328 #7165] DEBUG -- :  (0.8ms) SELECT COUNT(*) FROM `locations` WHERE ((
2589
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2590
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2591
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2592
+ <= 5)) AND (city = 'Coppell')
2593
+ D, [2013-09-15T16:00:48.084806 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2594
+ D, [2013-09-15T16:00:48.085268 #7165] DEBUG -- :  (0.1ms) BEGIN
2595
+ D, [2013-09-15T16:00:48.086187 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2596
+ D, [2013-09-15T16:00:48.087028 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2597
+ D, [2013-09-15T16:00:48.087855 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2598
+ D, [2013-09-15T16:00:48.088622 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2599
+ D, [2013-09-15T16:00:48.089361 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2600
+ D, [2013-09-15T16:00:48.090192 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2601
+ D, [2013-09-15T16:00:48.091089 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2602
+ D, [2013-09-15T16:00:48.093495 #7165] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` WHERE ((
2603
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2604
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2605
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2606
+ <= 3.97))
2607
+ D, [2013-09-15T16:00:48.094874 #7165] DEBUG -- :  (0.8ms) SELECT COUNT(*) FROM `locations` WHERE ((
2608
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2609
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2610
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2611
+ <= 3.97))
2612
+ D, [2013-09-15T16:00:48.095401 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2613
+ D, [2013-09-15T16:00:48.095949 #7165] DEBUG -- :  (0.2ms) BEGIN
2614
+ D, [2013-09-15T16:00:48.096910 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2615
+ D, [2013-09-15T16:00:48.097744 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2616
+ D, [2013-09-15T16:00:48.098589 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2617
+ D, [2013-09-15T16:00:48.099347 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2618
+ D, [2013-09-15T16:00:48.100078 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2619
+ D, [2013-09-15T16:00:48.100889 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2620
+ D, [2013-09-15T16:00:48.101724 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2621
+ D, [2013-09-15T16:00:48.102681 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2622
+ D, [2013-09-15T16:00:48.103149 #7165] DEBUG -- :  (0.1ms) BEGIN
2623
+ D, [2013-09-15T16:00:48.104062 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2624
+ D, [2013-09-15T16:00:48.104886 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2625
+ D, [2013-09-15T16:00:48.105718 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2626
+ D, [2013-09-15T16:00:48.106501 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2627
+ D, [2013-09-15T16:00:48.107238 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2628
+ D, [2013-09-15T16:00:48.108013 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2629
+ D, [2013-09-15T16:00:48.108826 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2630
+ D, [2013-09-15T16:00:48.111449 #7165] DEBUG -- : Location Load (1.3ms) SELECT `locations`.* FROM `locations` WHERE ((
2631
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2632
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2633
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*6376.77271)
2634
+ <= 3.9))
2635
+ D, [2013-09-15T16:00:48.114587 #7165] DEBUG -- :  (1.4ms) SELECT COUNT(*) FROM `locations` WHERE ((
2636
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2637
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2638
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*6376.77271)
2639
+ <= 3.9))
2640
+ D, [2013-09-15T16:00:48.115781 #7165] DEBUG -- :  (0.4ms) ROLLBACK
2641
+ D, [2013-09-15T16:00:48.117332 #7165] DEBUG -- :  (0.4ms) BEGIN
2642
+ D, [2013-09-15T16:00:48.119562 #7165] DEBUG -- : Company Load (0.7ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2643
+ D, [2013-09-15T16:00:48.121323 #7165] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2644
+ D, [2013-09-15T16:00:48.123404 #7165] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2645
+ D, [2013-09-15T16:00:48.125384 #7165] DEBUG -- : Location Load (0.7ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2646
+ D, [2013-09-15T16:00:48.127466 #7165] DEBUG -- : CustomLocation Load (0.7ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2647
+ D, [2013-09-15T16:00:48.129634 #7165] DEBUG -- : MockOrganization Load (0.7ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2648
+ D, [2013-09-15T16:00:48.131770 #7165] DEBUG -- : MockAddress Load (0.8ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2649
+ D, [2013-09-15T16:00:48.173750 #7165] DEBUG -- : Location Load (1.2ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`company_id` = 1 ORDER BY
2650
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2651
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2652
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2653
+ asc
2654
+ D, [2013-09-15T16:00:48.175746 #7165] DEBUG -- :  (0.3ms) ROLLBACK
2655
+ D, [2013-09-15T16:00:48.176440 #7165] DEBUG -- :  (0.2ms) BEGIN
2656
+ D, [2013-09-15T16:00:48.177466 #7165] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2657
+ D, [2013-09-15T16:00:48.178376 #7165] DEBUG -- : Location Load (0.5ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2658
+ D, [2013-09-15T16:00:48.179166 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2659
+ D, [2013-09-15T16:00:48.179993 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2660
+ D, [2013-09-15T16:00:48.180777 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2661
+ D, [2013-09-15T16:00:48.181573 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2662
+ D, [2013-09-15T16:00:48.182416 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2663
+ D, [2013-09-15T16:00:48.185311 #7165] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`company_id` = 1 AND ((
2664
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2665
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2666
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2667
+ > 3.95))
2668
+ D, [2013-09-15T16:00:48.186618 #7165] DEBUG -- :  (0.8ms) SELECT COUNT(*) FROM `locations` WHERE `locations`.`company_id` = 1 AND ((
2669
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2670
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2671
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2672
+ > 3.95))
2673
+ D, [2013-09-15T16:00:48.187058 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2674
+ D, [2013-09-15T16:00:48.187632 #7165] DEBUG -- :  (0.2ms) BEGIN
2675
+ D, [2013-09-15T16:00:48.188504 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2676
+ D, [2013-09-15T16:00:48.189310 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2677
+ D, [2013-09-15T16:00:48.190157 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2678
+ D, [2013-09-15T16:00:48.190924 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2679
+ D, [2013-09-15T16:00:48.191720 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2680
+ D, [2013-09-15T16:00:48.192484 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2681
+ D, [2013-09-15T16:00:48.193288 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2682
+ D, [2013-09-15T16:00:48.196200 #7165] DEBUG -- : Location Load (1.0ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`company_id` = 1 ORDER BY
2683
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2684
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2685
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2686
+ asc
2687
+ D, [2013-09-15T16:00:48.196855 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2688
+ D, [2013-09-15T16:00:48.197324 #7165] DEBUG -- :  (0.1ms) BEGIN
2689
+ D, [2013-09-15T16:00:48.198154 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2690
+ D, [2013-09-15T16:00:48.198953 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2691
+ D, [2013-09-15T16:00:48.199747 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2692
+ D, [2013-09-15T16:00:48.200557 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2693
+ D, [2013-09-15T16:00:48.201310 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2694
+ D, [2013-09-15T16:00:48.202072 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2695
+ D, [2013-09-15T16:00:48.203001 #7165] DEBUG -- : MockAddress Load (0.5ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2696
+ D, [2013-09-15T16:00:48.206187 #7165] DEBUG -- : Location Load (1.0ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`company_id` = 1 ORDER BY
2697
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2698
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2699
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2700
+ asc LIMIT 1
2701
+ D, [2013-09-15T16:00:48.206838 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2702
+ D, [2013-09-15T16:00:48.207328 #7165] DEBUG -- :  (0.1ms) BEGIN
2703
+ D, [2013-09-15T16:00:48.208194 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2704
+ D, [2013-09-15T16:00:48.208984 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2705
+ D, [2013-09-15T16:00:48.209774 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2706
+ D, [2013-09-15T16:00:48.210560 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2707
+ D, [2013-09-15T16:00:48.211320 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2708
+ D, [2013-09-15T16:00:48.212080 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2709
+ D, [2013-09-15T16:00:48.212878 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2710
+ D, [2013-09-15T16:00:48.215701 #7165] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`company_id` = 1 AND ((
2711
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2712
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2713
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2714
+ <= 5)) AND (city = 'Coppell')
2715
+ D, [2013-09-15T16:00:48.217031 #7165] DEBUG -- :  (0.8ms) SELECT COUNT(*) FROM `locations` WHERE `locations`.`company_id` = 1 AND ((
2716
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2717
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2718
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2719
+ <= 5)) AND (city = 'Coppell')
2720
+ D, [2013-09-15T16:00:48.217371 #7165] DEBUG -- :  (0.1ms) ROLLBACK
2721
+ D, [2013-09-15T16:00:48.217844 #7165] DEBUG -- :  (0.1ms) BEGIN
2722
+ D, [2013-09-15T16:00:48.218792 #7165] DEBUG -- : Company Load (0.5ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2723
+ D, [2013-09-15T16:00:48.219584 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2724
+ D, [2013-09-15T16:00:48.220403 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2725
+ D, [2013-09-15T16:00:48.221219 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2726
+ D, [2013-09-15T16:00:48.221981 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2727
+ D, [2013-09-15T16:00:48.222858 #7165] DEBUG -- : MockOrganization Load (0.5ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2728
+ D, [2013-09-15T16:00:48.223691 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2729
+ D, [2013-09-15T16:00:48.226028 #7165] DEBUG -- : Location Load (0.9ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`company_id` = 1 AND ((
2730
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2731
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2732
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2733
+ <= 3.97))
2734
+ D, [2013-09-15T16:00:48.227262 #7165] DEBUG -- :  (0.8ms) SELECT COUNT(*) FROM `locations` WHERE `locations`.`company_id` = 1 AND ((
2735
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2736
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2737
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2738
+ <= 3.97))
2739
+ D, [2013-09-15T16:00:48.227647 #7165] DEBUG -- :  (0.2ms) ROLLBACK
2740
+ D, [2013-09-15T16:00:48.228065 #7165] DEBUG -- :  (0.1ms) BEGIN
2741
+ D, [2013-09-15T16:00:48.228812 #7165] DEBUG -- : Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 1 LIMIT 1
2742
+ D, [2013-09-15T16:00:48.229565 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 1 LIMIT 1
2743
+ D, [2013-09-15T16:00:48.230323 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 1 LIMIT 1
2744
+ D, [2013-09-15T16:00:48.231070 #7165] DEBUG -- : Location Load (0.4ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`id` = 5 LIMIT 1
2745
+ D, [2013-09-15T16:00:48.231825 #7165] DEBUG -- : CustomLocation Load (0.4ms) SELECT `custom_locations`.* FROM `custom_locations` WHERE `custom_locations`.`id` = 5 LIMIT 1
2746
+ D, [2013-09-15T16:00:48.232562 #7165] DEBUG -- : MockOrganization Load (0.4ms) SELECT `mock_organizations`.* FROM `mock_organizations` WHERE `mock_organizations`.`id` = 1064917858 LIMIT 1
2747
+ D, [2013-09-15T16:00:48.233363 #7165] DEBUG -- : MockAddress Load (0.4ms) SELECT `mock_addresses`.* FROM `mock_addresses` WHERE `mock_addresses`.`id` = 206296981 LIMIT 1
2748
+ D, [2013-09-15T16:00:48.235815 #7165] DEBUG -- : Location Load (1.0ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`company_id` = 1 AND ((
2749
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2750
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2751
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2752
+ <= 3.97))
2753
+ D, [2013-09-15T16:00:48.237169 #7165] DEBUG -- :  (0.8ms) SELECT COUNT(*) FROM `locations` WHERE `locations`.`company_id` = 1 AND ((
2754
+ (ACOS(least(1,COS(0.5745378329739577)*COS(-1.692244085410541)*COS(RADIANS(locations.lat))*COS(RADIANS(locations.lng))+
2755
+ COS(0.5745378329739577)*SIN(-1.692244085410541)*COS(RADIANS(locations.lat))*SIN(RADIANS(locations.lng))+
2756
+ SIN(0.5745378329739577)*SIN(RADIANS(locations.lat))))*3963.19)
2757
+ <= 3.97))
2758
+ D, [2013-09-15T16:00:48.237593 #7165] DEBUG -- :  (0.2ms) ROLLBACK