| 4 |
16.17 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
508865
122914
446370
558274
566581
576275
672488
692191
694010
698557
697263
556809
570732
582362
593354
803458
756388
603475
799019
805257
407313
468818
485305
524055
382954
388020
401248
405565
413471
441961
407266
443245
482163
685578
706946
685579
566642
641660
629304
601067
601928
601596
602602
805543
612386
629940
797634
459156
445404
472210
529181
498321
538198
389290
448320
493142
500740
567494
559986
578502
672551
661273
550586
589224
608338
624804
607100
724330
763522
779647
457953
519012
457784
526475
645327
712880
592313
603627
639253
477437
417897
526875
416772
540498
650016
598941
591345
483553
672469
408284
641856
673661
445416
558134
597186
597016
]
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 (508865, 122914, 446370, 558274, 566581, 576275, 672488, 692191, 694010, 698557, 697263, 556809, 570732, 582362, 593354, 803458, 756388, 603475, 799019, 805257, 407313, 468818, 485305, 524055, 382954, 388020, 401248, 405565, 413471, 441961, 407266, 443245, 482163, 685578, 706946, 685579, 566642, 641660, 629304, 601067, 601928, 601596, 602602, 805543, 612386, 629940, 797634, 459156, 445404, 472210, 529181, 498321, 538198, 389290, 448320, 493142, 500740, 567494, 559986, 578502, 672551, 661273, 550586, 589224, 608338, 624804, 607100, 724330, 763522, 779647, 457953, 519012, 457784, 526475, 645327, 712880, 592313, 603627, 639253, 477437, 417897, 526875, 416772, 540498, 650016, 598941, 591345, 483553, 672469, 408284, 641856, 673661, 445416, 558134, 597186, 597016);
|
| 5 |
3.03 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
122914
382954
388020
389290
401248
405565
407266
407313
408284
413471
416772
417897
441961
443245
445404
445416
446370
448320
457784
457953
459156
468818
472210
477437
482163
483553
485305
493142
498321
500740
508865
519012
524055
526475
526875
529181
538198
540498
550586
556809
558134
558274
559986
566581
566642
567494
570732
576275
578502
582362
589224
591345
592313
593354
597016
597186
598941
601067
601596
601928
602602
603475
603627
607100
608338
612386
624804
629304
629940
639253
641660
641856
645327
650016
661273
672469
672551
673661
685578
685579
692191
694010
697263
698557
706946
712880
724330
756388
763522
779647
797634
799019
803458
805257
805543
]
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 (122914, 382954, 388020, 389290, 401248, 405565, 407266, 407313, 408284, 413471, 416772, 417897, 441961, 443245, 445404, 445416, 446370, 448320, 457784, 457953, 459156, 468818, 472210, 477437, 482163, 483553, 485305, 493142, 498321, 500740, 508865, 519012, 524055, 526475, 526875, 529181, 538198, 540498, 550586, 556809, 558134, 558274, 559986, 566581, 566642, 567494, 570732, 576275, 578502, 582362, 589224, 591345, 592313, 593354, 597016, 597186, 598941, 601067, 601596, 601928, 602602, 603475, 603627, 607100, 608338, 612386, 624804, 629304, 629940, 639253, 641660, 641856, 645327, 650016, 661273, 672469, 672551, 673661, 685578, 685579, 692191, 694010, 697263, 698557, 706946, 712880, 724330, 756388, 763522, 779647, 797634, 799019, 803458, 805257, 805543);
|
| 6 |
122.44 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
122914
382954
388020
389290
401248
405565
407266
407313
408284
413471
416772
417897
441961
443245
445404
445416
446370
448320
457784
457953
459156
468818
472210
477437
482163
483553
485305
493142
498321
500740
508865
519012
524055
526475
526875
529181
538198
540498
550586
556809
558134
558274
559986
566581
566642
567494
570732
576275
578502
582362
589224
591345
592313
593354
597016
597186
598941
601067
601596
601928
602602
603475
603627
607100
608338
612386
624804
629304
629940
639253
641660
641856
645327
650016
661273
672469
672551
673661
685578
685579
692191
694010
697263
698557
706946
712880
724330
756388
763522
779647
797634
799019
803458
805257
805543
]
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 (122914, 382954, 388020, 389290, 401248, 405565, 407266, 407313, 408284, 413471, 416772, 417897, 441961, 443245, 445404, 445416, 446370, 448320, 457784, 457953, 459156, 468818, 472210, 477437, 482163, 483553, 485305, 493142, 498321, 500740, 508865, 519012, 524055, 526475, 526875, 529181, 538198, 540498, 550586, 556809, 558134, 558274, 559986, 566581, 566642, 567494, 570732, 576275, 578502, 582362, 589224, 591345, 592313, 593354, 597016, 597186, 598941, 601067, 601596, 601928, 602602, 603475, 603627, 607100, 608338, 612386, 624804, 629304, 629940, 639253, 641660, 641856, 645327, 650016, 661273, 672469, 672551, 673661, 685578, 685579, 692191, 694010, 697263, 698557, 706946, 712880, 724330, 756388, 763522, 779647, 797634, 799019, 803458, 805257, 805543);
|