3
10.23 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
690059
823711
539238
688512
759244
742266
541355
657134
765422
589017
767294
737051
813703
767303
761857
664252
715457
765402
605203
617159
524444
723197
683407
703314
612240
565935
598692
594515
594271
452738
594218
605763
713705
493035
455698
612212
748064
480108
806882
766107
594535
495008
813757
766716
695908
449506
441192
521380
495588
749539
788402
575648
417464
445987
455635
605503
594518
457569
520325
463362
434557
513915
539280
403789
662896
]
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 (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ?
)
Copy
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 (690059 , 823711 , 539238 , 688512 , 759244 , 742266 , 541355 , 657134 , 765422 , 589017 , 767294 , 737051 , 813703 , 767303 , 761857 , 664252 , 715457 , 765402 , 605203 , 617159 , 524444 , 723197 , 683407 , 703314 , 612240 , 565935 , 598692 , 594515 , 594271 , 452738 , 594218 , 605763 , 713705 , 493035 , 455698 , 612212 , 748064 , 480108 , 806882 , 766107 , 594535 , 495008 , 813757 , 766716 , 695908 , 449506 , 441192 , 521380 , 495588 , 749539 , 788402 , 575648 , 417464 , 445987 , 455635 , 605503 , 594518 , 457569 , 520325 , 463362 , 434557 , 513915 , 539280 , 403789 , 662896 );
Copy
4
3.43 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
403789
417464
434557
441192
445987
449506
452738
455635
455698
457569
463362
480108
493035
495008
495588
513915
520325
521380
524444
539238
539280
541355
565935
575648
589017
594218
594271
594515
594518
594535
598692
605203
605503
605763
612212
612240
617159
657134
662896
664252
683407
688512
690059
695908
703314
713705
715457
723197
737051
742266
748064
749539
759244
761857
765402
765422
766107
766716
767294
767303
788402
806882
813703
813757
823711
]
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 (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ?
)
Copy
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 (403789 , 417464 , 434557 , 441192 , 445987 , 449506 , 452738 , 455635 , 455698 , 457569 , 463362 , 480108 , 493035 , 495008 , 495588 , 513915 , 520325 , 521380 , 524444 , 539238 , 539280 , 541355 , 565935 , 575648 , 589017 , 594218 , 594271 , 594515 , 594518 , 594535 , 598692 , 605203 , 605503 , 605763 , 612212 , 612240 , 617159 , 657134 , 662896 , 664252 , 683407 , 688512 , 690059 , 695908 , 703314 , 713705 , 715457 , 723197 , 737051 , 742266 , 748064 , 749539 , 759244 , 761857 , 765402 , 765422 , 766107 , 766716 , 767294 , 767303 , 788402 , 806882 , 813703 , 813757 , 823711 );
Copy
5
71.63 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
403789
417464
434557
441192
445987
449506
452738
455635
455698
457569
463362
480108
493035
495008
495588
513915
520325
521380
524444
539238
539280
541355
565935
575648
589017
594218
594271
594515
594518
594535
598692
605203
605503
605763
612212
612240
617159
657134
662896
664252
683407
688512
690059
695908
703314
713705
715457
723197
737051
742266
748064
749539
759244
761857
765402
765422
766107
766716
767294
767303
788402
806882
813703
813757
823711
]
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 (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ?
)
Copy
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 (403789 , 417464 , 434557 , 441192 , 445987 , 449506 , 452738 , 455635 , 455698 , 457569 , 463362 , 480108 , 493035 , 495008 , 495588 , 513915 , 520325 , 521380 , 524444 , 539238 , 539280 , 541355 , 565935 , 575648 , 589017 , 594218 , 594271 , 594515 , 594518 , 594535 , 598692 , 605203 , 605503 , 605763 , 612212 , 612240 , 617159 , 657134 , 662896 , 664252 , 683407 , 688512 , 690059 , 695908 , 703314 , 713705 , 715457 , 723197 , 737051 , 742266 , 748064 , 749539 , 759244 , 761857 , 765402 , 765422 , 766107 , 766716 , 767294 , 767303 , 788402 , 806882 , 813703 , 813757 , 823711 );
Copy