Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&&search_start=0&search_limit=25&search_sort=1&do_get=get_online_deals&search_terms=hp+tablet
[execution_time] => 0.24395799636841
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT keyword_overide FROM past_searches_regular WHERE search_terms = 'hp tablet' LIMIT 1
[execution_time] => 0.00043797492980957
)
[1] => 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.00093293190002441
)
[2] => Array
(
[mysql_query] => INSERT `these_items`
SELECT *, 0 AS 'key_matches_count'
FROM items_reg WHERE MATCH (item_title) AGAINST ('+hp* +tablet*' IN BOOLEAN MODE)
ORDER BY item_per_off_rev
ON DUPLICATE KEY UPDATE key_matches_count = key_matches_count + 1
[execution_time] => 0.15582990646362
)
[3] => Array
(
[mysql_query] => SELECT MAX( item_per_off ) AS item_per_off FROM these_items
[execution_time] => 0.00026106834411621
)
[4] => Array
(
[mysql_query] => SELECT m.merch_name FROM these_items i, merchants m WHERE i.merch_id = m.merch_id GROUP BY i.merch_id ORDER BY i.item_per_off_rev LIMIT 3
[execution_time] => 0.00065112113952637
)
[5] => Array
(
[mysql_query] => SELECT COUNT(*) AS total FROM these_items WHERE item_id > 0
[execution_time] => 0.00027203559875488
)
[6] => 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.00041604042053223
)
[7] => 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 MATCH (i.item_title) AGAINST ('+hp* +tablet*' IN BOOLEAN MODE) AND m.merch_id = i.merch_id AND i.item_key IN ('10118ghz32gb3g900atomd3h89utelitepadfig1hphspaintellednetpcslatetabletwiz2760','bookcarryingcasefoldhppctablet','2105achargercompaniondcdelldevicehpipadipholaptopsorpcsmartphonetablettargususbv','batterybebusinesscompaqconnectedhourshplifeneednonotebookspcsproductivesacrstaytablettakeswhereverworkyour','101galaxyhpmoremotorolaprotectivesamsungsleevetabtablettabletstouchpadxoom','111v303175b253600mahbatterycompaqhpionlinotebookpcpowerpremiumseriestablettc1000tc11000','0886111820092102053747217388q192242054933038793843912100647381268029ag886111820092acadapteradaptersdchpkz6859pcpowerqc252aaqc252aaabarohstabletvyes','1211463g680umbacklightcorefighzhp3c4a3c3c3b2ai7intelledmotionpctabletwi','121146680umcorefighzhp3b2a3c3c3a2ai7intelledmotionpctabletwi','2atrienclosurehpmmfslatetablet','10242053813444014computerenglishhpkeyboardkeyboardskeypadslk752aaablminipnyqw2053rftabletusbwireless','10213859243146831412675843211706a3x55aaabaenglishhpkeyboardkeyboardskeypadsminipcrftabletususbwireless','100022ghz320gb3gbdvdrwhppctablettx2zx2','1211274nr22ghz4gb500gbdvdrwhptablettx2','100gb19ghz1gbdldvdrwhppctablettx1308nr','616625001hpmotherboardtablettouchsmart','611486001hpmotherboardtablettouchsmart','6050a2345301mba02hpmotherboardtablettouchsmart','bluetoothcomputerh4q44utabahothpkeykeyboardmultimediasslimtabletwireless','bluetoothcomputerh4q44aaabahothpkeykeyboardmultimediasslimtabletwireless','500audiodockinghdmihppcqq676utabaslatestationtabletusb','28007ina9armcomputercoredualhpprocessorscreenslatetablet','15ghz1xev289aatomb2a30utcdma2000doedgeevdofigprshphsdpahspaintellednetpcrevslatetabletumtswiz670','15ghz289inatomb2a28utfihpintellednetpcslatetabletwiz670','289b2a29uthpslatetablettouchscreen') ORDER BY FIELD(i.item_key, '10118ghz32gb3g900atomd3h89utelitepadfig1hphspaintellednetpcslatetabletwiz2760','bookcarryingcasefoldhppctablet','2105achargercompaniondcdelldevicehpipadipholaptopsorpcsmartphonetablettargususbv','batterybebusinesscompaqconnectedhourshplifeneednonotebookspcsproductivesacrstaytablettakeswhereverworkyour','101galaxyhpmoremotorolaprotectivesamsungsleevetabtablettabletstouchpadxoom','111v303175b253600mahbatterycompaqhpionlinotebookpcpowerpremiumseriestablettc1000tc11000','0886111820092102053747217388q192242054933038793843912100647381268029ag886111820092acadapteradaptersdchpkz6859pcpowerqc252aaqc252aaabarohstabletvyes','1211463g680umbacklightcorefighzhp3c4a3c3c3b2ai7intelledmotionpctabletwi','121146680umcorefighzhp3b2a3c3c3a2ai7intelledmotionpctabletwi','2atrienclosurehpmmfslatetablet','10242053813444014computerenglishhpkeyboardkeyboardskeypadslk752aaablminipnyqw2053rftabletusbwireless','10213859243146831412675843211706a3x55aaabaenglishhpkeyboardkeyboardskeypadsminipcrftabletususbwireless','100022ghz320gb3gbdvdrwhppctablettx2zx2','1211274nr22ghz4gb500gbdvdrwhptablettx2','100gb19ghz1gbdldvdrwhppctablettx1308nr','616625001hpmotherboardtablettouchsmart','611486001hpmotherboardtablettouchsmart','6050a2345301mba02hpmotherboardtablettouchsmart','bluetoothcomputerh4q44utabahothpkeykeyboardmultimediasslimtabletwireless','bluetoothcomputerh4q44aaabahothpkeykeyboardmultimediasslimtabletwireless','500audiodockinghdmihppcqq676utabaslatestationtabletusb','28007ina9armcomputercoredualhpprocessorscreenslatetablet','15ghz1xev289aatomb2a30utcdma2000doedgeevdofigprshphsdpahspaintellednetpcrevslatetabletumtswiz670','15ghz289inatomb2a28utfihpintellednetpcslatetabletwiz670','289b2a29uthpslatetablettouchscreen'), CASE i.item_per_off WHEN 0 THEN 1 ELSE 0 END, i.item_sale_price
[execution_time] => 0.078454971313477
)
[8] => Array
(
[mysql_query] => INSERT INTO past_searches_regular ( `search_add_date`, `search_terms`, `ad1`, `ad2` ) VALUES ( '1369236532', 'hp tablet', '', '' ) ON DUPLICATE KEY UPDATE search_add_date = '1369236532', search_clicks = search_clicks+1, no_results = '0'
[execution_time] => 0.00052785873413086
)
[9] => Array
(
[mysql_query] => DROP TABLE `these_items`
[execution_time] => 0.00020289421081543
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&search_limit=10&do_get=get_related&search_terms=hp tablet
[execution_time] => 0.0035228729248047
[from_api] => Array
(
)
)
)