| 4 |
14.32 ms |
SELECT p.post_id, p.user_id, p.content_id, p.public_key, p.search_field, p.cover, p.type, p.sexual_orientation, p.orientation, p.quality, p.noindex, p.nofollow, p.contents_num, p.duration, p.likes, p.dislikes, p.views, p.vote_rating, p.params, p.published_at, IFNULL(`r`.`title`, `f`.`title`) as `title`, IFNULL(`r`.`custom1`, `f`.`custom1`) as `custom1`, IFNULL(`r`.`custom2`, `f`.`custom2`) as `custom2` FROM post p LEFT JOIN post_translation f ON `p`.`post_id` = `f`.`post_id` AND `f`.`lang_id`=? LEFT JOIN post_translation r ON `p`.`post_id` = `r`.`post_id` AND `r`.`lang_id`=? WHERE p.post_id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Parameters: [
1
2
534273
603254
550437
566351
466821
489399
527947
606349
465967
547536
559569
451504
502808
465299
593347
624793
472142
471584
524883
644691
411946
452638
543924
457303
479772
500458
529312
526214
678805
602668
454256
482304
491418
462695
464534
486444
563134
483152
529315
563422
477200
566153
522619
522596
564292
597867
455151
524895
517073
459827
640687
533534
500467
527676
485759
493127
443148
554770
487343
531316
467053
477707
540688
514436
467031
388712
517067
461018
465525
454210
504481
616711
516744
480749
598653
504344
498019
549225
467009
522592
480290
515262
528538
549233
623487
517048
522616
523929
]
SELECT
p.post_id,
p.user_id,
p.content_id,
p.public_key,
p.search_field,
p.cover,
p.type,
p.sexual_orientation,
p.orientation,
p.quality,
p.noindex,
p.nofollow,
p.contents_num,
p.duration,
p.likes,
p.dislikes,
p.views,
p.vote_rating,
p.params,
p.published_at,
IFNULL(`r`.`title`, `f`.`title`) as `title`,
IFNULL(`r`.`custom1`, `f`.`custom1`) as `custom1`,
IFNULL(`r`.`custom2`, `f`.`custom2`) as `custom2`
FROM
post p
LEFT JOIN post_translation f ON `p`.`post_id` = `f`.`post_id`
AND `f`.`lang_id` = ?
LEFT JOIN post_translation r ON `p`.`post_id` = `r`.`post_id`
AND `r`.`lang_id` = ?
WHERE
p.post_id IN (
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?
)
SELECT p.post_id, p.user_id, p.content_id, p.public_key, p.search_field, p.cover, p.type, p.sexual_orientation, p.orientation, p.quality, p.noindex, p.nofollow, p.contents_num, p.duration, p.likes, p.dislikes, p.views, p.vote_rating, p.params, p.published_at, IFNULL(`r`.`title`, `f`.`title`) as `title`, IFNULL(`r`.`custom1`, `f`.`custom1`) as `custom1`, IFNULL(`r`.`custom2`, `f`.`custom2`) as `custom2` FROM post p LEFT JOIN post_translation f ON `p`.`post_id` = `f`.`post_id` AND `f`.`lang_id`=1 LEFT JOIN post_translation r ON `p`.`post_id` = `r`.`post_id` AND `r`.`lang_id`=2 WHERE p.post_id IN (534273, 603254, 550437, 566351, 466821, 489399, 527947, 606349, 465967, 547536, 559569, 451504, 502808, 465299, 593347, 624793, 472142, 471584, 524883, 644691, 411946, 452638, 543924, 457303, 479772, 500458, 529312, 526214, 678805, 602668, 454256, 482304, 491418, 462695, 464534, 486444, 563134, 483152, 529315, 563422, 477200, 566153, 522619, 522596, 564292, 597867, 455151, 524895, 517073, 459827, 640687, 533534, 500467, 527676, 485759, 493127, 443148, 554770, 487343, 531316, 467053, 477707, 540688, 514436, 467031, 388712, 517067, 461018, 465525, 454210, 504481, 616711, 516744, 480749, 598653, 504344, 498019, 549225, 467009, 522592, 480290, 515262, 528538, 549233, 623487, 517048, 522616, 523929);
|
| 5 |
2.44 ms |
SELECT pht.post_id, pht.tag_id, t.slug, IFNULL(`r`.`name`, `f`.`name`) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht.tag_id = t.tag_id AND t.enabled = 1 LEFT JOIN tag_translation f ON t.tag_id = f.tag_id AND f.lang_id=? LEFT JOIN tag_translation r ON `t`.`tag_id` = `r`.`tag_id` AND `r`.`lang_id`=? WHERE pht.post_id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Parameters: [
1
2
388712
411946
443148
451504
452638
454210
454256
455151
457303
459827
461018
462695
464534
465299
465525
465967
466821
467009
467031
467053
471584
472142
477200
477707
479772
480290
480749
482304
483152
485759
486444
487343
489399
491418
493127
498019
500458
500467
502808
504344
504481
514436
515262
516744
517048
517067
517073
522592
522596
522616
522619
523929
524883
524895
526214
527676
527947
528538
529312
529315
531316
533534
534273
540688
543924
547536
549225
549233
550437
554770
559569
563134
563422
564292
566153
566351
593347
597867
598653
602668
603254
606349
616711
623487
624793
640687
644691
678805
]
SELECT
pht.post_id,
pht.tag_id,
t.slug,
IFNULL(`r`.`name`, `f`.`name`) as `name`
FROM
post_has_tag pht
INNER JOIN tag t ON pht.tag_id = t.tag_id
AND t.enabled = 1
LEFT JOIN tag_translation f ON t.tag_id = f.tag_id
AND f.lang_id = ?
LEFT JOIN tag_translation r ON `t`.`tag_id` = `r`.`tag_id`
AND `r`.`lang_id` = ?
WHERE
pht.post_id IN (
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?
)
SELECT pht.post_id, pht.tag_id, t.slug, IFNULL(`r`.`name`, `f`.`name`) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht.tag_id = t.tag_id AND t.enabled = 1 LEFT JOIN tag_translation f ON t.tag_id = f.tag_id AND f.lang_id=1 LEFT JOIN tag_translation r ON `t`.`tag_id` = `r`.`tag_id` AND `r`.`lang_id`=2 WHERE pht.post_id IN (388712, 411946, 443148, 451504, 452638, 454210, 454256, 455151, 457303, 459827, 461018, 462695, 464534, 465299, 465525, 465967, 466821, 467009, 467031, 467053, 471584, 472142, 477200, 477707, 479772, 480290, 480749, 482304, 483152, 485759, 486444, 487343, 489399, 491418, 493127, 498019, 500458, 500467, 502808, 504344, 504481, 514436, 515262, 516744, 517048, 517067, 517073, 522592, 522596, 522616, 522619, 523929, 524883, 524895, 526214, 527676, 527947, 528538, 529312, 529315, 531316, 533534, 534273, 540688, 543924, 547536, 549225, 549233, 550437, 554770, 559569, 563134, 563422, 564292, 566153, 566351, 593347, 597867, 598653, 602668, 603254, 606349, 616711, 623487, 624793, 640687, 644691, 678805);
|
| 6 |
100.70 ms |
SELECT phc.post_id, phc.category_id, c.slug, IFNULL(`r`.`name`, `f`.`name`) as `name` FROM post_has_category phc INNER JOIN category c ON phc.category_id = c.category_id AND c.enabled = 1 LEFT JOIN category_translation f ON c.category_id = f.category_id AND f.lang_id=? LEFT JOIN category_translation r ON `c`.`category_id` = `r`.`category_id` AND `r`.`lang_id`=? WHERE phc.post_id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Parameters: [
1
2
388712
411946
443148
451504
452638
454210
454256
455151
457303
459827
461018
462695
464534
465299
465525
465967
466821
467009
467031
467053
471584
472142
477200
477707
479772
480290
480749
482304
483152
485759
486444
487343
489399
491418
493127
498019
500458
500467
502808
504344
504481
514436
515262
516744
517048
517067
517073
522592
522596
522616
522619
523929
524883
524895
526214
527676
527947
528538
529312
529315
531316
533534
534273
540688
543924
547536
549225
549233
550437
554770
559569
563134
563422
564292
566153
566351
593347
597867
598653
602668
603254
606349
616711
623487
624793
640687
644691
678805
]
SELECT
phc.post_id,
phc.category_id,
c.slug,
IFNULL(`r`.`name`, `f`.`name`) as `name`
FROM
post_has_category phc
INNER JOIN category c ON phc.category_id = c.category_id
AND c.enabled = 1
LEFT JOIN category_translation f ON c.category_id = f.category_id
AND f.lang_id = ?
LEFT JOIN category_translation r ON `c`.`category_id` = `r`.`category_id`
AND `r`.`lang_id` = ?
WHERE
phc.post_id IN (
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?
)
SELECT phc.post_id, phc.category_id, c.slug, IFNULL(`r`.`name`, `f`.`name`) as `name` FROM post_has_category phc INNER JOIN category c ON phc.category_id = c.category_id AND c.enabled = 1 LEFT JOIN category_translation f ON c.category_id = f.category_id AND f.lang_id=1 LEFT JOIN category_translation r ON `c`.`category_id` = `r`.`category_id` AND `r`.`lang_id`=2 WHERE phc.post_id IN (388712, 411946, 443148, 451504, 452638, 454210, 454256, 455151, 457303, 459827, 461018, 462695, 464534, 465299, 465525, 465967, 466821, 467009, 467031, 467053, 471584, 472142, 477200, 477707, 479772, 480290, 480749, 482304, 483152, 485759, 486444, 487343, 489399, 491418, 493127, 498019, 500458, 500467, 502808, 504344, 504481, 514436, 515262, 516744, 517048, 517067, 517073, 522592, 522596, 522616, 522619, 523929, 524883, 524895, 526214, 527676, 527947, 528538, 529312, 529315, 531316, 533534, 534273, 540688, 543924, 547536, 549225, 549233, 550437, 554770, 559569, 563134, 563422, 564292, 566153, 566351, 593347, 597867, 598653, 602668, 603254, 606349, 616711, 623487, 624793, 640687, 644691, 678805);
|