Array
(
[0] => Array
(
[0] => template
[1] => mar2013
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&show_merchant_name=beachtr_com&search_start=0&search_limit=25&search_sort=1&do_get=get_merchant_deals
[execution_time] => 0.21096110343933
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_id FROM merchants WHERE merch_local_url = 'merchant_beachtr_com.html'
[execution_time] => 0.00039887428283691
)
[1] => Array
(
[mysql_query] => UPDATE merchants SET clicks_current_day = clicks_current_day + 1 WHERE merch_id = '22087'
[execution_time] => 0.19668817520142
)
[2] => Array
(
[mysql_query] => SELECT merch_id FROM merchants WHERE merch_local_url = 'merchant_beachtr_com.html'
[execution_time] => 0.00060391426086426
)
[3] => Array
(
[mysql_query] => CREATE TEMPORARY TABLE `these_items` (
`item_id` int(11) NOT NULL AUTO_INCREMENT,
`item_title` varchar(400) NOT NULL,
`item_manufacturer` varchar(100) NOT NULL DEFAULT '0',
`merch_id` int(11) NOT NULL,
`item_key` varchar(255) NOT NULL,
`item_url` varchar(400) NOT NULL,
`item_image` varchar(400) NOT NULL,
`item_reg_price` decimal(8,2) NOT NULL,
`item_sale_price` decimal(8,2) NOT NULL,
`item_per_off` smallint(3) NOT NULL,
`item_added` int(10) NOT NULL,
`item_per_off_rev` int(11) NOT NULL DEFAULT '0',
`item_added_rev` int(11) NOT NULL DEFAULT '0',
`item_ending` int(10) NOT NULL DEFAULT '0',
`item_cat_1_id` smallint(2) NOT NULL DEFAULT '0',
`item_cat_2_id` smallint(2) NOT NULL DEFAULT '0',
`item_price_grp` tinyint(1) NOT NULL,
`item_per_grp` tinyint(1) NOT NULL,
`item_views` smallint(5) NOT NULL DEFAULT '0',
`item_hot_score` decimal(5,2) NOT NULL DEFAULT '0.00',
`key_matches_count` int(10) NOT NULL DEFAULT '0',
PRIMARY KEY (`item_id`),
UNIQUE KEY `item_unique` (`item_key`)
) ENGINE=Memory
[execution_time] => 0.0016260147094727
)
[4] => Array
(
[mysql_query] => INSERT `these_items`
SELECT *, 0 AS 'key_matches_count'
FROM items_dotd WHERE merch_id IN ( 22087 )
ORDER BY item_per_off_rev
ON DUPLICATE KEY UPDATE key_matches_count = key_matches_count + 1
[execution_time] => 0.00041294097900391
)
[5] => Array
(
[mysql_query] => INSERT `these_items`
SELECT *, 0 AS 'key_matches_count'
FROM items_reg WHERE merch_id IN ( 22087 )
ORDER BY item_per_off_rev
ON DUPLICATE KEY UPDATE key_matches_count = key_matches_count + 1
[execution_time] => 0.0051350593566895
)
[6] => Array
(
[mysql_query] => SELECT COUNT(*) AS total FROM these_items WHERE item_id > 0
[execution_time] => 0.00039386749267578
)
[7] => Array
(
[mysql_query] => SELECT item_key FROM these_items ORDER BY key_matches_count DESC, item_title DESC, LENGTH(item_title), item_added_rev LIMIT 0, 25
[execution_time] => 0.00059199333190918
)
[8] => Array
(
[mysql_query] => SELECT i.*, m.merch_name, m.merch_url, m.merch_can_ok, m.merch_google_rating, m.merch_google_reviews, m.merch_google_key, m.merch_local_url, m.merch_coupons_count FROM items_dotd i, merchants m WHERE m.merch_local_url = 'merchant_beachtr_com.html' AND m.merch_id = i.merch_id AND i.item_key IN ('330mmcarryingcasedeluxefilterfldkitpolarizersetuvzeikos','groundonlypersonalst10stationtransmitteryuneec','55scasefadeiphonemicroshieldxtrememac','1004axiscameradronehdlivequadcopterstreamingxdg6xflyerxtreme','1009bluetoothcarabinerhookpnkspeakersportwirelessxbs9xtreme','basicclothfibermicroscreenstylustouchxtreme','bluetoothbuiltmicrophoneresistentspeakerwaterxit','100clubd100golfhybridrescuestaffstiffwilson','bagcarrygolflouisnflramsstwilson','78507earmonitorpremiumw60westone','3eyeshadowhazepackpalettequadw7','2eyeshadowhazepackpalettequadw7','17bluetoothdectma3222speakervtechwireless','1002automationfihahomesmartplugvivitarwi','5lbatterycanoncbnb5lpackreplacementvivvivitar','301batterychargerdhdbtgoprovivitar','acbatterychchargerdceoslpe8rebelt2it3it5ivivitar','62mmfiltermulticoatedprotectiveuvvivitar','4pc900aaabatterieschargednimhprerechargeablevivitar','1000mah10a37vbatteryionlithiumreplacementsamsungsblslbvidpro','acbatterybk1chargerdcenel11li50bli78nikonolympuspentaxrapidsonyvidpro','blockknifepiecesetvictorinox','5bicyclebrightlaserledssafetysupertaillightvicehq','commuterrearsystemveglowearablex4','applebasicscasecobradualiphoneprotectivesiliconeurge') ORDER BY FIELD(i.item_key, '330mmcarryingcasedeluxefilterfldkitpolarizersetuvzeikos','groundonlypersonalst10stationtransmitteryuneec','55scasefadeiphonemicroshieldxtrememac','1004axiscameradronehdlivequadcopterstreamingxdg6xflyerxtreme','1009bluetoothcarabinerhookpnkspeakersportwirelessxbs9xtreme','basicclothfibermicroscreenstylustouchxtreme','bluetoothbuiltmicrophoneresistentspeakerwaterxit','100clubd100golfhybridrescuestaffstiffwilson','bagcarrygolflouisnflramsstwilson','78507earmonitorpremiumw60westone','3eyeshadowhazepackpalettequadw7','2eyeshadowhazepackpalettequadw7','17bluetoothdectma3222speakervtechwireless','1002automationfihahomesmartplugvivitarwi','5lbatterycanoncbnb5lpackreplacementvivvivitar','301batterychargerdhdbtgoprovivitar','acbatterychchargerdceoslpe8rebelt2it3it5ivivitar','62mmfiltermulticoatedprotectiveuvvivitar','4pc900aaabatterieschargednimhprerechargeablevivitar','1000mah10a37vbatteryionlithiumreplacementsamsungsblslbvidpro','acbatterybk1chargerdcenel11li50bli78nikonolympuspentaxrapidsonyvidpro','blockknifepiecesetvictorinox','5bicyclebrightlaserledssafetysupertaillightvicehq','commuterrearsystemveglowearablex4','applebasicscasecobradualiphoneprotectivesiliconeurge'), CASE i.item_per_off WHEN 0 THEN 1 ELSE 0 END, i.item_sale_price
[execution_time] => 0.00071382522583008
)
[9] => Array
(
[mysql_query] => SELECT i.*, m.merch_name, m.merch_url, m.merch_can_ok, m.merch_google_rating, m.merch_google_reviews, m.merch_google_key, m.merch_local_url, m.merch_coupons_count FROM items_reg i, merchants m WHERE m.merch_local_url = 'merchant_beachtr_com.html' AND m.merch_id = i.merch_id AND i.item_key IN ('330mmcarryingcasedeluxefilterfldkitpolarizersetuvzeikos','groundonlypersonalst10stationtransmitteryuneec','55scasefadeiphonemicroshieldxtrememac','1004axiscameradronehdlivequadcopterstreamingxdg6xflyerxtreme','1009bluetoothcarabinerhookpnkspeakersportwirelessxbs9xtreme','basicclothfibermicroscreenstylustouchxtreme','bluetoothbuiltmicrophoneresistentspeakerwaterxit','100clubd100golfhybridrescuestaffstiffwilson','bagcarrygolflouisnflramsstwilson','78507earmonitorpremiumw60westone','3eyeshadowhazepackpalettequadw7','2eyeshadowhazepackpalettequadw7','17bluetoothdectma3222speakervtechwireless','1002automationfihahomesmartplugvivitarwi','5lbatterycanoncbnb5lpackreplacementvivvivitar','301batterychargerdhdbtgoprovivitar','acbatterychchargerdceoslpe8rebelt2it3it5ivivitar','62mmfiltermulticoatedprotectiveuvvivitar','4pc900aaabatterieschargednimhprerechargeablevivitar','1000mah10a37vbatteryionlithiumreplacementsamsungsblslbvidpro','acbatterybk1chargerdcenel11li50bli78nikonolympuspentaxrapidsonyvidpro','blockknifepiecesetvictorinox','5bicyclebrightlaserledssafetysupertaillightvicehq','commuterrearsystemveglowearablex4','applebasicscasecobradualiphoneprotectivesiliconeurge') ORDER BY FIELD(i.item_key, '330mmcarryingcasedeluxefilterfldkitpolarizersetuvzeikos','groundonlypersonalst10stationtransmitteryuneec','55scasefadeiphonemicroshieldxtrememac','1004axiscameradronehdlivequadcopterstreamingxdg6xflyerxtreme','1009bluetoothcarabinerhookpnkspeakersportwirelessxbs9xtreme','basicclothfibermicroscreenstylustouchxtreme','bluetoothbuiltmicrophoneresistentspeakerwaterxit','100clubd100golfhybridrescuestaffstiffwilson','bagcarrygolflouisnflramsstwilson','78507earmonitorpremiumw60westone','3eyeshadowhazepackpalettequadw7','2eyeshadowhazepackpalettequadw7','17bluetoothdectma3222speakervtechwireless','1002automationfihahomesmartplugvivitarwi','5lbatterycanoncbnb5lpackreplacementvivvivitar','301batterychargerdhdbtgoprovivitar','acbatterychchargerdceoslpe8rebelt2it3it5ivivitar','62mmfiltermulticoatedprotectiveuvvivitar','4pc900aaabatterieschargednimhprerechargeablevivitar','1000mah10a37vbatteryionlithiumreplacementsamsungsblslbvidpro','acbatterybk1chargerdcenel11li50bli78nikonolympuspentaxrapidsonyvidpro','blockknifepiecesetvictorinox','5bicyclebrightlaserledssafetysupertaillightvicehq','commuterrearsystemveglowearablex4','applebasicscasecobradualiphoneprotectivesiliconeurge'), CASE i.item_per_off WHEN 0 THEN 1 ELSE 0 END, i.item_sale_price
[execution_time] => 0.0015270709991455
)
[10] => Array
(
[mysql_query] => DROP TABLE `these_items`
[execution_time] => 0.0001378059387207
)
)
)
[2] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&show_merchant_name=beachtr_com&do_get=get_merchant_info
[execution_time] => 0.0022118091583252
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT * FROM merchants WHERE merch_local_url = 'merchant_beachtr_com.html' LIMIT 1
[execution_time] => 0.00079894065856934
)
)
)
)