Advertisement
seniorihor

mysql_output_subquery

Dec 10th, 2015
390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 11.51 KB | None | 0 0
  1. ### MYSQL OUTPUT SUBQUERY
  2. 151210 15:18:18  2211 CONNECT   root@localhost ON mw_cgates
  3.          2211 Query SET SQL_AUTO_IS_NULL=0, NAMES 'utf8', @@wait_timeout = 2147483
  4.          2211 Query SHOW FIELDS FROM `configuration_parameters`
  5.          2211 Query SHOW TABLES
  6.          2211 Query SHOW FIELDS FROM `configuration_parameters`
  7.          2211 Query SHOW FIELDS FROM `configuration_parameters`
  8.          2211 Query SELECT  `configuration_parameters`.* FROM `configuration_parameters` WHERE `configuration_parameters`.`type` = 'Setting' AND `configuration_parameters`.`parameter` = 'allow_connection_without_ssl' LIMIT 1
  9.          2211 Query SHOW FIELDS FROM `configuration_parameters`
  10.          2211 Query SELECT  `configuration_parameters`.* FROM `configuration_parameters` WHERE `configuration_parameters`.`type` = 'Setting' AND `configuration_parameters`.`parameter` = 'allow_ssl_connection_without_cn' LIMIT 1
  11.          2211 Query SHOW FIELDS FROM `configuration_parameters`
  12.          2211 Query SELECT  `configuration_parameters`.* FROM `configuration_parameters` WHERE `configuration_parameters`.`type` = 'Setting' AND `configuration_parameters`.`parameter` = 'alternative_images_server' LIMIT 1
  13.          2211 Query SHOW FIELDS FROM `configuration_parameters`
  14.          2211 Query SELECT  `configuration_parameters`.* FROM `configuration_parameters` WHERE `configuration_parameters`.`type` = 'Setting' AND `configuration_parameters`.`parameter` = 'alternative_images_server' LIMIT 1
  15.          2211 Query SHOW FIELDS FROM `configuration_parameters`
  16.          2211 Query SELECT  `configuration_parameters`.* FROM `configuration_parameters` WHERE `configuration_parameters`.`type` = 'Setting' AND `configuration_parameters`.`parameter` = 'currency' LIMIT 1
  17.          2211 Query SHOW TABLES
  18.          2211 Query SHOW FIELDS FROM `entitlements`
  19.          2211 Query SHOW TABLES
  20.          2211 Query SHOW FIELDS FROM `device_models`
  21.          2211 Query SHOW TABLES
  22.          2211 Query SHOW TABLES
  23.          2211 Query SHOW FIELDS FROM `profiles`
  24.          2211 Query SHOW TABLES
  25.          2211 Query DESCRIBE `offers_products`
  26.          2211 Query DESCRIBE `categories_vods`
  27.          2211 Query DESCRIBE `categories_internet_radios`
  28.          2211 Query DESCRIBE `categories_vods`
  29.          2211 Query DESCRIBE `content_ratings_vods`
  30.          2211 Query DESCRIBE `genres_products`
  31.          2211 Query SHOW TABLES
  32.          2211 Query SHOW FIELDS FROM `area_codes`
  33.          2211 Query SHOW TABLES
  34.          2211 Query SHOW TABLES
  35.          2211 Query SHOW FIELDS FROM `content_servers`
  36.          2211 Query SHOW TABLES
  37.          2212 CONNECT   root@localhost ON mw_cgates
  38.          2212 Query SELECT * FROM configuration_parameters WHERE TYPE = 'Setting'
  39.          2212 Quit 
  40.          2211 Query SHOW TABLES
  41.          2211 Query SHOW FIELDS FROM `payments`
  42.          2211 Query SHOW TABLES
  43.          2211 Query SHOW FIELDS FROM `customers`
  44.          2211 Query SHOW TABLES
  45.          2211 Query DESCRIBE `customer_groups_customers`
  46.          2211 Query SHOW TABLES
  47.          2211 Query SHOW TABLES
  48.          2211 Query SHOW FIELDS FROM `addresses`
  49. 151210 15:18:19  2211 Query SHOW TABLES
  50.          2211 Query SHOW TABLES
  51.          2211 Query SHOW FIELDS FROM `advertisements`
  52.          2211 Query SHOW TABLES
  53.          2211 Query SHOW TABLES
  54.          2211 Query SHOW FIELDS FROM `customer_groups`
  55.          2211 Query SHOW TABLES
  56.          2211 Query DESCRIBE `customer_groups_customers`
  57.          2211 Query SHOW TABLES
  58.          2211 Query SHOW FIELDS FROM `offers`
  59.          2211 Query SHOW TABLES
  60.          2211 Query DESCRIBE `offers_products`
  61.          2211 Query SHOW TABLES
  62.          2211 Query DESCRIBE `offers_products`
  63.          2211 Query DESCRIBE `offers_products`
  64.          2211 Query DESCRIBE `offers_products`
  65.          2211 Query DESCRIBE `offers_products`
  66.          2211 Query DESCRIBE `offers_products`
  67.          2211 Query DESCRIBE `offers_products`
  68.          2211 Query DESCRIBE `package_offers_services`
  69.          2211 Query SHOW TABLES
  70.          2211 Query SHOW FIELDS FROM `devices`
  71.          2211 Query SHOW TABLES
  72.          2211 Query SHOW TABLES LIKE 'service_labels_products'
  73.          2211 Query DESCRIBE `service_labels_products`
  74.          2211 Query SHOW TABLES
  75.          2211 Query SHOW FIELDS FROM `epgs`
  76.          2211 Query SHOW TABLES
  77.          2211 Query DESCRIBE `genres_products`
  78.          2211 Query DESCRIBE `genres_products`
  79.          2211 Query DESCRIBE `epgs_genres`
  80.          2211 Query DESCRIBE `categories_catchup_events`
  81.          2211 Query DESCRIBE `categories_internet_radios`
  82.          2211 Query DESCRIBE `service_labels_products`
  83.          2211 Query DESCRIBE `service_labels_products`
  84.          2211 Query SHOW FIELDS FROM `configuration_parameters`
  85.          2211 Query SELECT  `configuration_parameters`.* FROM `configuration_parameters` WHERE `configuration_parameters`.`type` = 'Setting' AND `configuration_parameters`.`parameter` = 'entitlement_renewal_period' LIMIT 1
  86.          2211 Query SHOW FIELDS FROM `configuration_parameters`
  87.          2211 Query SELECT  `configuration_parameters`.* FROM `configuration_parameters` WHERE `configuration_parameters`.`type` = 'Setting' AND `configuration_parameters`.`parameter` = 'tenant' LIMIT 1
  88. 151210 15:18:20  2211 Query SHOW TABLES LIKE 'my_rentals_%'
  89.          2211 Query CREATE TABLE my_rentals_1449757100 LIKE my_rentals
  90.          2211 Query SELECT id
  91.           FROM customers
  92.           WHERE is_archived = 0
  93.           LIMIT 10000
  94.           OFFSET 0
  95.          2211 Query SELECT COUNT(*)
  96.         FROM
  97.           entitlements AS e
  98.         INNER JOIN
  99.           offers_products AS op ON e.offer_id = op.offer_id
  100.         INNER JOIN
  101.           offers AS o ON o.id = op.offer_id
  102.         INNER JOIN
  103.           products AS vods ON vods.id = op.product_id
  104.         INNER JOIN
  105.           (SELECT id
  106.           FROM customers
  107.           WHERE is_archived = 0
  108.           LIMIT 10000
  109.           OFFSET 10000) AS customer_ids
  110.           ON customer_ids.id = e.customer_id
  111.         WHERE
  112.           e.expires_at > UTC_TIMESTAMP()
  113.           AND o.STATUS = 'available'
  114.           AND COALESCE(o.available_till > UTC_TIMESTAMP(), TRUE)
  115.           AND COALESCE(o.available_from < UTC_TIMESTAMP(), TRUE)
  116.           AND vods.TYPE = 'Vod'
  117.           AND o.TYPE != 'PackageOffer'
  118. 151210 15:20:58  2213 CONNECT   root@localhost ON mw_cgates
  119.          2213 Query SELECT * FROM configuration_parameters WHERE TYPE = 'Setting'
  120.          2213 Quit 
  121.          2211 Query SELECT e.customer_id,op.offer_id,op.product_id,e.expires_at,vods.service_id
  122.         FROM
  123.           entitlements AS e
  124.         INNER JOIN
  125.           offers_products AS op ON e.offer_id = op.offer_id
  126.         INNER JOIN
  127.           offers AS o ON o.id = op.offer_id
  128.         INNER JOIN
  129.           products AS vods ON vods.id = op.product_id
  130.         INNER JOIN
  131.           (SELECT id
  132.           FROM customers
  133.           WHERE is_archived = 0
  134.           LIMIT 10000
  135.           OFFSET 0) AS customer_ids
  136.           ON customer_ids.id = e.customer_id
  137.         WHERE
  138.           e.expires_at > UTC_TIMESTAMP()
  139.           AND o.STATUS = 'available'
  140.           AND COALESCE(o.available_till > UTC_TIMESTAMP(), TRUE)
  141.           AND COALESCE(o.available_from < UTC_TIMESTAMP(), TRUE)
  142.           AND vods.TYPE = 'Vod'
  143.           AND o.TYPE != 'PackageOffer'
  144.        
  145.         LIMIT 200000
  146.         OFFSET 0
  147. 151210 15:27:07  2211 Query SELECT id
  148.           FROM customers
  149.           WHERE is_archived = 0
  150.           LIMIT 10000
  151.           OFFSET 10000
  152.          2214 CONNECT   root@localhost ON mw_cgates
  153.          2214 Query SELECT * FROM configuration_parameters WHERE TYPE = 'Setting'
  154.          2214 Quit 
  155.          2211 Query SELECT COUNT(*)
  156.         FROM
  157.           entitlements AS e
  158.         INNER JOIN
  159.           offers_products AS op ON e.offer_id = op.offer_id
  160.         INNER JOIN
  161.           offers AS o ON o.id = op.offer_id
  162.         INNER JOIN
  163.           products AS vods ON vods.id = op.product_id
  164.         INNER JOIN
  165.           (SELECT id
  166.           FROM customers
  167.           WHERE is_archived = 0
  168.           LIMIT 10000
  169.           OFFSET 20000) AS customer_ids
  170.           ON customer_ids.id = e.customer_id
  171.         WHERE
  172.           e.expires_at > UTC_TIMESTAMP()
  173.           AND o.STATUS = 'available'
  174.           AND COALESCE(o.available_till > UTC_TIMESTAMP(), TRUE)
  175.           AND COALESCE(o.available_from < UTC_TIMESTAMP(), TRUE)
  176.           AND vods.TYPE = 'Vod'
  177.           AND o.TYPE != 'PackageOffer'
  178. 151210 15:31:31  2215 CONNECT   root@localhost ON mw_cgates
  179.          2215 Query SELECT * FROM configuration_parameters WHERE TYPE = 'Setting'
  180.          2215 Quit 
  181.          2211 Query SELECT e.customer_id,op.offer_id,op.product_id,e.expires_at,vods.service_id
  182.         FROM
  183.           entitlements AS e
  184.         INNER JOIN
  185.           offers_products AS op ON e.offer_id = op.offer_id
  186.         INNER JOIN
  187.           offers AS o ON o.id = op.offer_id
  188.         INNER JOIN
  189.           products AS vods ON vods.id = op.product_id
  190.         INNER JOIN
  191.           (SELECT id
  192.           FROM customers
  193.           WHERE is_archived = 0
  194.           LIMIT 10000
  195.           OFFSET 0) AS customer_ids
  196.           ON customer_ids.id = e.customer_id
  197.         WHERE
  198.           e.expires_at > UTC_TIMESTAMP()
  199.           AND o.STATUS = 'available'
  200.           AND COALESCE(o.available_till > UTC_TIMESTAMP(), TRUE)
  201.           AND COALESCE(o.available_from < UTC_TIMESTAMP(), TRUE)
  202.           AND vods.TYPE = 'Vod'
  203.           AND o.TYPE != 'PackageOffer'
  204.        
  205.         LIMIT 200000
  206.         OFFSET 0
  207. 151210 15:37:32  2211 Query SELECT id
  208.           FROM customers
  209.           WHERE is_archived = 0
  210.           LIMIT 10000
  211.           OFFSET 20000
  212.          2216 CONNECT   root@localhost ON mw_cgates
  213.          2216 Query SELECT * FROM configuration_parameters WHERE TYPE = 'Setting'
  214.          2216 Quit 
  215.          2211 Query SELECT COUNT(*)
  216.         FROM
  217.           entitlements AS e
  218.         INNER JOIN
  219.           offers_products AS op ON e.offer_id = op.offer_id
  220.         INNER JOIN
  221.           offers AS o ON o.id = op.offer_id
  222.         INNER JOIN
  223.           products AS vods ON vods.id = op.product_id
  224.         INNER JOIN
  225.           (SELECT id
  226.           FROM customers
  227.           WHERE is_archived = 0
  228.           LIMIT 10000
  229.           OFFSET 30000) AS customer_ids
  230.           ON customer_ids.id = e.customer_id
  231.         WHERE
  232.           e.expires_at > UTC_TIMESTAMP()
  233.           AND o.STATUS = 'available'
  234.           AND COALESCE(o.available_till > UTC_TIMESTAMP(), TRUE)
  235.           AND COALESCE(o.available_from < UTC_TIMESTAMP(), TRUE)
  236.           AND vods.TYPE = 'Vod'
  237.           AND o.TYPE != 'PackageOffer'
  238.          2211 Query SELECT e.customer_id,op.offer_id,op.product_id,e.expires_at,vods.service_id
  239.         FROM
  240.           entitlements AS e
  241.         INNER JOIN
  242.           offers_products AS op ON e.offer_id = op.offer_id
  243.         INNER JOIN
  244.           offers AS o ON o.id = op.offer_id
  245.         INNER JOIN
  246.           products AS vods ON vods.id = op.product_id
  247.         INNER JOIN
  248.           (SELECT id
  249.           FROM customers
  250.           WHERE is_archived = 0
  251.           LIMIT 10000
  252.           OFFSET 0) AS customer_ids
  253.           ON customer_ids.id = e.customer_id
  254.         WHERE
  255.           e.expires_at > UTC_TIMESTAMP()
  256.           AND o.STATUS = 'available'
  257.           AND COALESCE(o.available_till > UTC_TIMESTAMP(), TRUE)
  258.           AND COALESCE(o.available_from < UTC_TIMESTAMP(), TRUE)
  259.           AND vods.TYPE = 'Vod'
  260.           AND o.TYPE != 'PackageOffer'
  261.        
  262.         LIMIT 200000
  263.         OFFSET 0
  264. 151210 15:43:40  2211 Query SELECT id
  265.           FROM customers
  266.           WHERE is_archived = 0
  267.           LIMIT 10000
  268.           OFFSET 30000
  269.          2211 Query SELECT DISTINCT
  270.             vods.id
  271.           FROM
  272.             products AS vods
  273.           INNER JOIN
  274.             categories_vods AS cv ON cv.vod_id = vods.id
  275.           INNER JOIN
  276.             categories AS c ON c.id = cv.category_id
  277.           WHERE
  278.             c.is_adult = 1
  279.           OR
  280.             vods.is_adult = 1
  281.          2211 Query RENAME TABLE my_rentals TO my_rentals_old, my_rentals_1449757100 TO my_rentals
  282.          2211 Query DROP TABLE IF EXISTS my_rentals_1449757100
  283.          2211 Query DROP TABLE IF EXISTS my_rentals_old
  284.          2211 Quit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement