Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.13526797294617
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT DISTINCT merch_region, merch_locality, merch_country, merch_id FROM merchants_local ORDER BY merch_region, merch_locality
[execution_time] => 0.051236867904663
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Brookyln%2C+NY%2C+US&radius=10&search_limit=15
[execution_time] => 8.9224989414215
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Brookyln' AND merch_region='NY'
[execution_time] => 0.0060501098632812
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/NY/cities/Brooklyn/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=facc1597122c15ed9396ee388a177581&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Brooklyn'
AND region = 'NY'
AND country = 'United States'
AND expires > '1369260795'
[execution_time] => 0.00045204162597656
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Brooklyn',
'NY',
'United States',
'1369264395',
'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
)
ON DUPLICATE KEY UPDATE expires = '1369264395', data = 'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
[execution_time] => 0.097110986709595
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Brooklyn'
AND region = 'NY'
AND country = 'United States'
AND expires > '1369260795'
[execution_time] => 0.0004730224609375
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Brooklyn',
'NY',
'United States',
'1369264395',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"50\", \"humidity\": \"74\", \"observation_time\": \"10:13 PM\", \"precipMM\": \"0.2\", \"pressure\": \"1012\", \"temp_C\": \"25\", \"temp_F\": \"77\", \"visibility\": \"6\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"170\", \"windspeedKmph\": \"9\", \"windspeedMiles\": \"6\" } ], \"request\": [ {\"query\": \"Brooklyn, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-22\", \"precipMM\": \"0.5\", \"tempMaxC\": \"24\", \"tempMaxF\": \"75\", \"tempMinC\": \"19\", \"tempMinF\": \"67\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"180\", \"winddirection\": \"S\", \"windspeedKmph\": \"21\", \"windspeedMiles\": \"13\" }, {\"date\": \"2013-05-23\", \"precipMM\": \"1.4\", \"tempMaxC\": \"22\", \"tempMaxF\": \"72\", \"tempMinC\": \"18\", \"tempMinF\": \"64\", \"weatherCode\": \"143\", \"weatherDesc\": [ {\"value\": \"Mist\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0006_mist.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"190\", \"winddirection\": \"S\", \"windspeedKmph\": \"26\", \"windspeedMiles\": \"16\" }, {\"date\": \"2013-05-24\", \"precipMM\": \"10.0\", \"tempMaxC\": \"21\", \"tempMaxF\": \"69\", \"tempMinC\": \"13\", \"tempMinF\": \"55\", \"weatherCode\": \"296\", \"weatherDesc\": [ {\"value\": \"Light rain\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0017_cloudy_with_light_rain.png\" } ], \"winddir16Point\": \"NNW\", \"winddirDegree\": \"340\", \"winddirection\": \"NNW\", \"windspeedKmph\": \"30\", \"windspeedMiles\": \"18\" }, {\"date\": \"2013-05-25\", \"precipMM\": \"2.1\", \"tempMaxC\": \"19\", \"tempMaxF\": \"66\", \"tempMinC\": \"7\", \"tempMinF\": \"45\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NNW\", \"winddirDegree\": \"339\", \"winddirection\": \"NNW\", \"windspeedKmph\": \"42\", \"windspeedMiles\": \"26\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1369264395', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"50\", \"humidity\": \"74\", \"observation_time\": \"10:13 PM\", \"precipMM\": \"0.2\", \"pressure\": \"1012\", \"temp_C\": \"25\", \"temp_F\": \"77\", \"visibility\": \"6\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"170\", \"windspeedKmph\": \"9\", \"windspeedMiles\": \"6\" } ], \"request\": [ {\"query\": \"Brooklyn, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-22\", \"precipMM\": \"0.5\", \"tempMaxC\": \"24\", \"tempMaxF\": \"75\", \"tempMinC\": \"19\", \"tempMinF\": \"67\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"180\", \"winddirection\": \"S\", \"windspeedKmph\": \"21\", \"windspeedMiles\": \"13\" }, {\"date\": \"2013-05-23\", \"precipMM\": \"1.4\", \"tempMaxC\": \"22\", \"tempMaxF\": \"72\", \"tempMinC\": \"18\", \"tempMinF\": \"64\", \"weatherCode\": \"143\", \"weatherDesc\": [ {\"value\": \"Mist\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0006_mist.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"190\", \"winddirection\": \"S\", \"windspeedKmph\": \"26\", \"windspeedMiles\": \"16\" }, {\"date\": \"2013-05-24\", \"precipMM\": \"10.0\", \"tempMaxC\": \"21\", \"tempMaxF\": \"69\", \"tempMinC\": \"13\", \"tempMinF\": \"55\", \"weatherCode\": \"296\", \"weatherDesc\": [ {\"value\": \"Light rain\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0017_cloudy_with_light_rain.png\" } ], \"winddir16Point\": \"NNW\", \"winddirDegree\": \"340\", \"winddirection\": \"NNW\", \"windspeedKmph\": \"30\", \"windspeedMiles\": \"18\" }, {\"date\": \"2013-05-25\", \"precipMM\": \"2.1\", \"tempMaxC\": \"19\", \"tempMaxF\": \"66\", \"tempMinC\": \"7\", \"tempMinF\": \"45\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NNW\", \"winddirDegree\": \"339\", \"winddirection\": \"NNW\", \"windspeedKmph\": \"42\", \"windspeedMiles\": \"26\" } ] }}'
[execution_time] => 0.13774299621582
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(40.692452) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-73.990356) ) + sin( radians(40.692452) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.021024942398071
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '337221' ORDER BY item_per_off
[execution_time] => 0.0085721015930176
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '335569' ORDER BY item_per_off
[execution_time] => 0.010588884353638
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '165180' ORDER BY item_per_off
[execution_time] => 0.010745048522949
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '257636' ORDER BY item_per_off
[execution_time] => 0.014356851577759
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '141699' ORDER BY item_per_off
[execution_time] => 0.010612964630127
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '167050' ORDER BY item_per_off
[execution_time] => 0.012454986572266
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '170057' ORDER BY item_per_off
[execution_time] => 0.01158595085144
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '195702' ORDER BY item_per_off
[execution_time] => 0.012562990188599
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '335222' ORDER BY item_per_off
[execution_time] => 0.011157035827637
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '138442' ORDER BY item_per_off
[execution_time] => 0.0094621181488037
)
[17] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '254359' ORDER BY item_per_off
[execution_time] => 0.010621070861816
)
[18] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '135250' ORDER BY item_per_off
[execution_time] => 0.012228965759277
)
[19] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '334324' ORDER BY item_per_off
[execution_time] => 0.011250019073486
)
[20] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '335221' ORDER BY item_per_off
[execution_time] => 0.0082871913909912
)
[21] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '157507' ORDER BY item_per_off
[execution_time] => 0.012929916381836
)
[22] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '144473' ORDER BY item_per_off
[execution_time] => 0.012573003768921
)
)
)
)